SHARE
TWEET

Untitled

a guest May 26th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function(){
  2.                         if( $("#profile-container").width() == 750 ){
  3.                             var offset = $("body").width() - $("#scroller > div").width();
  4.                             $("#scroller").css("padding-left", offset);
  5.                         }
  6.                     });
  7.  
  8. function killCopy(e){
  9. return false
  10. }
  11. function reEnable(){
  12. return true
  13. }
  14. document.onselectstart=new Function ("return false")
  15. if (window.sidebar) {
  16. document.onmousedown=killCopy
  17. document.onclick=reEnable
  18. }
  19. function nrcIE() {
  20.         if (document.all) {
  21.             return false;
  22.         }
  23. }
  24.  
  25. function nrcNS(e) {
  26.         if (document.layers || (document.getElementById && ! document.all)) {
  27.             if (e.which == 2 || e.which == 3) {
  28.                 return false;
  29.             }
  30.         }
  31. }
  32.  
  33. if (document.layers) {
  34.     document.captureEvents(Event.MOUSEDOWN);
  35.     document.onmousedown = nrcNS;
  36. }else {
  37.     document.onmouseup = nrcNS;
  38.     document.oncontextmenu = nrcIE;
  39. }
  40. document.oncontextmenu = new Function("return false");
  41. WebFontConfig = {
  42.     google: { families: [ 'Quintessential::latin', 'BenchNine::latin' ] }
  43.   };
  44.   (function() {
  45.     var wf = document.createElement('script');
  46.     wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
  47.     wf.type = 'text/javascript';
  48.     wf.async = 'true';
  49.     var s = document.getElementsByTagName('script')[0];
  50.     s.parentNode.insertBefore(wf, s);
  51.   })();
  52.  
  53.  
  54.   function tooltip() {
  55.     var title = $(this).attr("title");
  56.     $(this).removeAttr("title");
  57.    
  58.     this.TooltipMessage = $("<div/>", {class: "tooltipMessage", style: "display: none;"});
  59.     this.TooltipMessage.html("<span>" + title + "</span>");
  60.     $("body").append(this.TooltipMessage);
  61.    
  62.  
  63.     if ($(this).hasClass("tooltipLeft")) {
  64.         this.TooltipMessage.addClass("left");
  65.     }
  66.  
  67.     $(this).hover(tooltipFadeIn, tooltipFadeOut);
  68.     $(this).mousemove(tooltipMousemove);
  69. }
  70.  
  71. function tooltipFadeIn() {
  72.     this.TooltipMessage.stop(true, false).fadeIn();
  73. }
  74.  
  75. function tooltipFadeOut() {
  76.     this.TooltipMessage.stop(true, false).fadeOut();
  77. }
  78.  
  79. function tooltipMousemove(e) {
  80.     var offset = {
  81.         left: e.pageX,
  82.         top: e.pageY + 10,
  83.     };
  84.  
  85.     if (this.TooltipMessage.hasClass("left")) {
  86.         offset.left -= this.TooltipMessage.width() + 0;
  87.     } else {
  88.         offset.left -= 0;
  89.        
  90.     }
  91.     this.TooltipMessage.offset(offset);
  92. }
  93.  
  94. $(function (e) {
  95.     $(".tooltip").each(tooltip);
  96. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top