Changeset 654330
- Timestamp:
- 01/17/2013 04:06:29 PM (13 years ago)
- Location:
- mysmark/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
js/mysmscript.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mysmark/trunk/README.txt
r630133 r654330 4 4 Requires at least: 3.0 5 5 Tested up to: 3.4.2 6 Stable tag: 1.0. 76 Stable tag: 1.0.8 7 7 License: GPLv2 or later (http://www.gnu.org/licenses/gpl-2.0.html) 8 8 … … 57 57 58 58 == Changelog == 59 = 1.0.8 = 60 * Fixed: warning message in old Internet Explorer versions 61 59 62 = 1.0.7 = 60 63 * Added: Now it is possible to choose for each post if you want to enable the MySmark widget/button. -
mysmark/trunk/js/mysmscript.js
r538568 r654330 1 window.addEventListener( "message", 2 function (e) {3 4 if(e.origin !== "https://www.mysmark.com"){ return; }1 if (document.addEventListener) 2 window.addEventListener( "message", function (e) { 3 if(e.origin !== "https://www.mysmark.com") 4 return; 5 5 var size = e.data.split('|'); 6 6 document.getElementById('mySmarkFrame').style.height = (parseInt(size[0])+20)+"px"; 7 7 document.getElementById('mySmarkFrame').style.width = (parseInt(size[1])+20)+"px"; 8 }, 9 false); 8 }, false); 9 else 10 window.attachEvent( "message", function (e) { 11 if(!e.origin || e.origin !== "https://www.mysmark.com") 12 return; 13 var size = e.data.split('|'); 14 document.getElementById('mySmarkFrame').style.height = (parseInt(size[0])+20)+"px"; 15 document.getElementById('mySmarkFrame').style.width = (parseInt(size[1])+20)+"px"; 16 });
Note: See TracChangeset
for help on using the changeset viewer.