This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
1. save this file in ui/data folder with a name | |
for example if its reader discussion ajax reader_discussion_ajax.js | |
2. go to reader.js or builder.js | |
3. require this new file add | |
var newAwesomeFile = require('ui/reader_discussion_ajax'); | |
4. in the initialize in reader.js attach this file to a DOM node. | |
if its global add it to document | |
example: | |
newAwesomeFile.attachTo('#yourParentSelector'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hasFlash = false; | |
try { | |
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); | |
if(fo) hasFlash = true; | |
}catch(e){ | |
if(navigator.mimeTypes ["application/x-shockwave-flash"] != undefined) hasFlash = true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
سمَـَّوُوُحخ ̷̴̐خ ̷̴̐خ ̷̴̐خ امارتيخ ̷̴̐خ |
NewerOlder