Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- if( $("#profile-container").width() == 750 ){
- var offset = $("body").width() - $("#scroller > div").width();
- $("#scroller").css("padding-left", offset);
- }
- });
- function killCopy(e){
- return false
- }
- function reEnable(){
- return true
- }
- document.onselectstart=new Function ("return false")
- if (window.sidebar) {
- document.onmousedown=killCopy
- document.onclick=reEnable
- }
- function nrcIE() {
- if (document.all) {
- return false;
- }
- }
- function nrcNS(e) {
- if (document.layers || (document.getElementById && ! document.all)) {
- if (e.which == 2 || e.which == 3) {
- return false;
- }
- }
- }
- if (document.layers) {
- document.captureEvents(Event.MOUSEDOWN);
- document.onmousedown = nrcNS;
- }else {
- document.onmouseup = nrcNS;
- document.oncontextmenu = nrcIE;
- }
- document.oncontextmenu = new Function("return false");
- WebFontConfig = {
- google: { families: [ 'Quintessential::latin', 'BenchNine::latin' ] }
- };
- (function() {
- var wf = document.createElement('script');
- wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
- wf.type = 'text/javascript';
- wf.async = 'true';
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(wf, s);
- })();
- function tooltip() {
- var title = $(this).attr("title");
- $(this).removeAttr("title");
- this.TooltipMessage = $("<div/>", {class: "tooltipMessage", style: "display: none;"});
- this.TooltipMessage.html("<span>" + title + "</span>");
- $("body").append(this.TooltipMessage);
- if ($(this).hasClass("tooltipLeft")) {
- this.TooltipMessage.addClass("left");
- }
- $(this).hover(tooltipFadeIn, tooltipFadeOut);
- $(this).mousemove(tooltipMousemove);
- }
- function tooltipFadeIn() {
- this.TooltipMessage.stop(true, false).fadeIn();
- }
- function tooltipFadeOut() {
- this.TooltipMessage.stop(true, false).fadeOut();
- }
- function tooltipMousemove(e) {
- var offset = {
- left: e.pageX,
- top: e.pageY + 10,
- };
- if (this.TooltipMessage.hasClass("left")) {
- offset.left -= this.TooltipMessage.width() + 0;
- } else {
- offset.left -= 0;
- }
- this.TooltipMessage.offset(offset);
- }
- $(function (e) {
- $(".tooltip").each(tooltip);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement