1/** 2 * Handle: easySpoiler 3 * Version: 1.2 4 * Enqueue: true 5 * 6 * Author: dyerware 7 * Author URI: http://www.dyerware.com 8 * Copyright © 2009, 2010, 2011 dyerware 9 * Support: [email protected] 10 */ 11 12///////////////////////////////////////////////////////////////////////////// 13function wpSpoilerToggle(id, doAnim, showName, hideName, speed, doIframes) 14{ 15 var myName = id + '_action'; 16 var b = document.getElementById(myName); 17 var e = document.getElementById(id); 18 19 if(e.style.display == 'block') 20 { 21 if (doAnim) 22 {jQuery("#" + id).slideUp(speed);} 23 else 24 {e.style.display = 'none';} 25 26 27 b.nodeValue=showName; 28 b.innerText=showName; 29 30 if (navigator.userAgent.indexOf("Firefox")!=-1) 31 { 32 b.firstChild.nodeValue=showName; 33 } 34 35 } 36 else 37 { 38 if (doAnim) 39 {jQuery("#" + id).fadeIn(speed);} 40 e.style.display = 'block'; 41 42 b.value=hideName; 43 b.innerText=hideName; 44 45 if (navigator.userAgent.indexOf("Firefox")!=-1) 46 { 47 b.firstChild.nodeValue=hideName; 48 } 49 50 if (doIframes && doIframes != "false") 51 { 52 jQuery("#" + id).find('iframe').each(function(i) {autoResize(this);}); 53 //jQuery("#" + id).find('iframe').each(function(i) {this.src = this.src;}); 54 } 55 } 56 57 return false; 58} 59 60///////////////////////////////////////////////////////////////////////////// 61function autoResize(iframe) 62{ 63 iframe.height = iframe.contentWindow.document.body.scrollHeight; 64 iframe.width = iframe.contentWindow.document.body.scrollWidth; 65} 66 67///////////////////////////////////////////////////////////////////////////// 68function wpSpoilerHide(id, doAnim, showName, speed) 69{ 70 var myName = id + '_action'; 71 var me = document.getElementById(myName); 72 var e = document.getElementById(id); 73 74 if(e.style.display == 'block') 75 { 76 if (doAnim) 77 {jQuery("#" + id).slideUp(speed);} 78 e.style.display = 'none'; 79 80 me.value=showName; 81 me.innerText=showName; 82 83 if (navigator.userAgent.indexOf("Firefox")!=-1) 84 { 85 me.firstChild.nodeValue=showName; 86 } 87 } 88} 89 90///////////////////////////////////////////////////////////////////////////// 91function wpSpoilerSelect(objId) 92{ 93 if (document.selection) 94 { 95 document.selection.empty(); 96 } 97 else 98 { 99 if (window.getSelection) 100 { 101 window.getSelection().removeAllRanges(); 102 } 103 } 104 105 if (document.selection) 106 { 107 var range = document.body.createTextRange(); 108 range.moveToElementText(document.getElementById(objId)); 109 range.select(); 110 } 111 else if (window.getSelection) 112 { 113 var range = document.createRange(); 114 range.selectNode(document.getElementById(objId)); 115 window.getSelection().addRange(range); 116 } 117} 118
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.