',{ + 'class' : 'jRatingInfos', + html : getNote(relativeX)+' / '+opts.rateMax+'', + css : { + top: (e.pageY + opts.rateInfosY), + left: (e.pageX + opts.rateInfosX) + } + }).appendTo('body').show(); + }, + mouseover : function(e){ + $(this).css('cursor','pointer'); + }, + mouseout : function(){ + $(this).css('cursor','default'); + if(hasRated) average.width(globalWidth); + else average.width(0); + }, + mousemove : function(e){ + var realOffsetLeft = findRealLeft(this); + var relativeX = e.pageX - realOffsetLeft; + if(opts.step) newWidth = Math.floor(relativeX/starWidth)*starWidth + starWidth; + else newWidth = relativeX; + average.width(newWidth); + if (opts.showRateInfo) + $("p.jRatingInfos") + .css({ + left: (e.pageX + opts.rateInfosX) + }) + .html(getNote(newWidth) +' / '+opts.rateMax+''); + }, + mouseleave : function(){ + $("p.jRatingInfos").remove(); + }, + click : function(e){ + var flag = confirm("纭畾璇勫垎锛"); + if(!flag) + { + e.cancel(); + } + + + var element = this; + + /*set vars*/ + hasRated = true; + globalWidth = newWidth; + nbOfRates--; + + if(!opts.canRateAgain || parseInt(nbOfRates) <= 0) $(this).unbind().css('cursor','default').addClass('jDisabled'); + + if (opts.showRateInfo) $("p.jRatingInfos").fadeOut('fast',function(){$(this).remove();}); + e.preventDefault(); + var rate = getNote(newWidth); + average.width(newWidth); + + + $.post(defaults.path, + { + idBox : idBox, + rate : rate, + kls : kls, + dimension : dimension + /** action : 'rating' **/ + }, + function(data) { + if(!data.error) + { + /** Here you can display an alert box, + or use the jNotify Plugin :) http://www.myqjqueryplugins.com/jNotify + exemple : */ + if(opts.onSuccess) opts.onSuccess( element, rate ); + } + else + { + + /** Here you can display an alert box, + or use the jNotify Plugin :) http://www.myqjqueryplugins.com/jNotify + exemple : */ + if(opts.onError) opts.onError( element, rate ); + } + }, + 'json' + ); + } + }); + + function getNote(relativeX) { + var noteBrut = parseFloat((relativeX*100/widthRatingContainer)*opts.rateMax/100); + switch(opts.decimalLength) { + case 1 : + var note = Math.round(noteBrut*10)/10; + break; + case 2 : + var note = Math.round(noteBrut*100)/100; + break; + case 3 : + var note = Math.round(noteBrut*1000)/1000; + break; + default : + var note = Math.round(noteBrut*1)/1; + } + return note; + }; + + function getStarWidth(){ + switch(opts.type) { + case 'small' : + starWidth = 12; // width of the picture small.png + starHeight = 10; // height of the picture small.png + bgPath = opts.smallStarsPath; + break; + default : + starWidth = 23; // width of the picture stars.png + starHeight = 20; // height of the picture stars.png + bgPath = opts.bigStarsPath; + } + }; + + function findRealLeft(obj) { + if( !obj ) return 0; + return obj.offsetLeft + findRealLeft( obj.offsetParent ); + }; + }); + + } +})(jQuery); diff --git a/public/cache/AC2/A80/60567173164aa1f75c0f9517835ebc2fd5eb0ec5 b/public/cache/AC2/A80/60567173164aa1f75c0f9517835ebc2fd5eb0ec5 new file mode 100644 index 000000000..3b564199a Binary files /dev/null and b/public/cache/AC2/A80/60567173164aa1f75c0f9517835ebc2fd5eb0ec5 differ diff --git a/public/cache/AC9/C70/bbefbac7540e09e1955cb47321965813266c7a8e b/public/cache/AC9/C70/bbefbac7540e09e1955cb47321965813266c7a8e new file mode 100644 index 000000000..866f94664 --- /dev/null +++ b/public/cache/AC9/C70/bbefbac7540e09e1955cb47321965813266c7a8e @@ -0,0 +1,69 @@ +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420532735.222791:@value"6[".(function () { + window.onload = function(){ + function fixedBar(id, options){ + var ele = document.getElementById(id); + if(!ele) return; + if(/msie (\d+\.\d+)/i.test(navigator.userAgent)){ + var pageHeight=window.innerHeight; + var d=document; + if(typeof pageHeight!="number"){ + if(document.compatMode=="CSS1Compat"){ + pageHeight=document.documentElement.clientHeight; + }else{ + pageHeight=document.body.clientHeight; + } + } + var ieScrollTop=window.pageYOffset || d.documentElement.scrollTop || d.body.scrollTop; + if(options.addclass) ele.className = options.addclass; + ele.style.position= 'absolute'; + + if(options.show){ + ele.style.top = 0 + "px"; + ele.style.display= 'block'; + } + + window.attachEvent('onscroll' , function (){ + + var ieScrollTop=window.pageYOffset || d.documentElement.scrollTop || d.body.scrollTop; + + ele.style.top = 0 + "px"; + if(options.autoHidden){ + if(ieScrollTop==0){ + ele.style.display="none"; + }else{ + ele.style.display="block"; + } + } + }); + }else{ + var ele = document.getElementById(id); + if(typeof pageHeight!="number"){ + if(document.compatMode=="CSS1Compat"){ + pageHeight=document.documentElement.clientHeight; + }else{ + pageHeight=document.body.clientHeight; + } + } + if(options.show) ele.style.display= 'block'; + ele.style.top = 0 +'px'; + window.addEventListener('scroll',function (){ + if(options.autoHidden){ + if(baidu.page.getScrollTop()==0){ + ele.style.display="none"; + }else{ + ele.style.display="block"; + } + } + },false); + } + } + + fixedBar('backTopBtn' , {autoHidden: true, top : 186}); + fixedBar('identifier-pannel' , {autoHidden: false , top : 956 , show : true}); + //淇敼寰俊鎵爜鏍峰紡甯冨眬鍚庢坊鍔犲井淇℃壂鐮佽窡闅忔粴鍔ㄥ鐞 + $(window).scroll(function(){ + var vtop=$(document).scrollTop(); + $("#identifier-pannel").css('top',vtop+"px"); + }) + } +})(); \ No newline at end of file diff --git a/public/cache/AFF/300/57a7c6d86d2ad09012bac99d46b38f9f33a970a8 b/public/cache/AFF/300/57a7c6d86d2ad09012bac99d46b38f9f33a970a8 new file mode 100644 index 000000000..1e70f7d5d --- /dev/null +++ b/public/cache/AFF/300/57a7c6d86d2ad09012bac99d46b38f9f33a970a8 @@ -0,0 +1,6 @@ +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420532735.051782:@value" +["// leanModal v1.1 by Ray Stone - http://finelysliced.com.au +// Dual licensed under the MIT and GPL + +(function($){$.fn.extend({leanModal:function(options){var defaults={top:100,overlay:0.5,closeButton:null};var overlay=$("
");$("body").append(overlay);options=$.extend(defaults,options);return this.each(function(){var o=options;$(this).click(function(e){var modal_id=$(this).attr("href");$("#lean_overlay").click(function(){close_modal(modal_id)});$(o.closeButton).click(function(){close_modal(modal_id)});var modal_height=$(modal_id).outerHeight();var modal_width=$(modal_id).outerWidth(); +$("#lean_overlay").css({"display":"block",opacity:0});$("#lean_overlay").fadeTo(200,o.overlay);$(modal_id).css({"display":"block","position":"fixed","opacity":0,"z-index":100,"left":50+"%","margin-left":-(modal_width/2)+"px","top":o.top+"px"});$(modal_id).fadeTo(200,1);e.preventDefault()})});function close_modal(modal_id){$("#lean_overlay").fadeOut(200);$(modal_id).css({"display":"none"})}}})})(jQuery); diff --git a/public/cache/B2D/650/88eae75bf7b81a196ba38d86bf54e7162ab274c1 b/public/cache/B2D/650/88eae75bf7b81a196ba38d86bf54e7162ab274c1 new file mode 100644 index 000000000..fdbb70040 Binary files /dev/null and b/public/cache/B2D/650/88eae75bf7b81a196ba38d86bf54e7162ab274c1 differ diff --git a/public/cache/B3B/DA0/e9938e23e7a85ff3d431e045384ccd84dea93ce8 b/public/cache/B3B/DA0/e9938e23e7a85ff3d431e045384ccd84dea93ce8 new file mode 100644 index 000000000..675388492 Binary files /dev/null and b/public/cache/B3B/DA0/e9938e23e7a85ff3d431e045384ccd84dea93ce8 differ diff --git a/public/cache/B4F/E50/afc8c0ba867511cd69e8b5d43542aad5a2e716c6 b/public/cache/B4F/E50/afc8c0ba867511cd69e8b5d43542aad5a2e716c6 new file mode 100644 index 000000000..800a1f0bd Binary files /dev/null and b/public/cache/B4F/E50/afc8c0ba867511cd69e8b5d43542aad5a2e716c6 differ diff --git a/public/cache/B54/AB0/213cd47b5ee47b691425e1fcb6dffb207c707d8c b/public/cache/B54/AB0/213cd47b5ee47b691425e1fcb6dffb207c707d8c new file mode 100644 index 000000000..884419b66 Binary files /dev/null and b/public/cache/B54/AB0/213cd47b5ee47b691425e1fcb6dffb207c707d8c differ diff --git a/public/cache/B6B/0E0/6d2710e981a7dd596afcc77e54ff43b9d7f75cb2 b/public/cache/B6B/0E0/6d2710e981a7dd596afcc77e54ff43b9d7f75cb2 new file mode 100644 index 000000000..d6cb37900 Binary files /dev/null and b/public/cache/B6B/0E0/6d2710e981a7dd596afcc77e54ff43b9d7f75cb2 differ diff --git a/public/cache/B76/7F1/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fjquery%2Fjquery-ui-1.9.2.css%3F1420357855%3D b/public/cache/B76/7F1/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fjquery%2Fjquery-ui-1.9.2.css%3F1420357855%3D new file mode 100644 index 000000000..b5d794c29 Binary files /dev/null and b/public/cache/B76/7F1/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fjquery%2Fjquery-ui-1.9.2.css%3F1420357855%3D differ diff --git a/public/cache/B7C/511/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fjquery-1.8.3-ui-1.9.2-ujs-2.0.3.js%3F1420357855%3D b/public/cache/B7C/511/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fjquery-1.8.3-ui-1.9.2-ujs-2.0.3.js%3F1420357855%3D new file mode 100644 index 000000000..313bdc57a Binary files /dev/null and b/public/cache/B7C/511/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fjquery-1.8.3-ui-1.9.2-ujs-2.0.3.js%3F1420357855%3D differ diff --git a/public/cache/B7E/7C0/0e09a16c714ce54739affa1a4e945aa699b4baae b/public/cache/B7E/7C0/0e09a16c714ce54739affa1a4e945aa699b4baae new file mode 100644 index 000000000..de9fe3690 Binary files /dev/null and b/public/cache/B7E/7C0/0e09a16c714ce54739affa1a4e945aa699b4baae differ diff --git a/public/cache/B8A/F50/dd147f7301bf4217fcb61f9e99d343f4f6ffbb1a b/public/cache/B8A/F50/dd147f7301bf4217fcb61f9e99d343f4f6ffbb1a new file mode 100644 index 000000000..982932afa Binary files /dev/null and b/public/cache/B8A/F50/dd147f7301bf4217fcb61f9e99d343f4f6ffbb1a differ diff --git a/public/cache/BB1/DF0/f743173130fefc074fc3faadc21911a5f8ed7eff b/public/cache/BB1/DF0/f743173130fefc074fc3faadc21911a5f8ed7eff new file mode 100644 index 000000000..e522ffa21 Binary files /dev/null and b/public/cache/BB1/DF0/f743173130fefc074fc3faadc21911a5f8ed7eff differ diff --git a/public/cache/BE0/BD0/0917fc42cb8dfbd8bc5add2088e60feb41c28e0f b/public/cache/BE0/BD0/0917fc42cb8dfbd8bc5add2088e60feb41c28e0f new file mode 100644 index 000000000..50be99779 Binary files /dev/null and b/public/cache/BE0/BD0/0917fc42cb8dfbd8bc5add2088e60feb41c28e0f differ diff --git a/public/cache/C12/DE1/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fseems_rateable%2FjRating.js%3F1420357855%3D b/public/cache/C12/DE1/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fseems_rateable%2FjRating.js%3F1420357855%3D new file mode 100644 index 000000000..98b7931ca Binary files /dev/null and b/public/cache/C12/DE1/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fseems_rateable%2FjRating.js%3F1420357855%3D differ diff --git a/public/cache/C83/011/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fseems_rateable%2Frateable.js%3F1420357855%3D b/public/cache/C83/011/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fseems_rateable%2Frateable.js%3F1420357855%3D new file mode 100644 index 000000000..d92ebe496 Binary files /dev/null and b/public/cache/C83/011/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fseems_rateable%2Frateable.js%3F1420357855%3D differ