View txt.js
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
/*! txt.js Copyright (C) 2014 guest271314 license http://opensource.org/licenses/BSD-2-Clause | |
* reference : http://stackoverflow.com/questions/24587514/how-to-use-a-text-files-contents-in-html-as-text | |
* usage 1 : `p[0].innerText = _$.txt.p0;` , | |
* usage 2 : `_$.txt.add(1, "p1");` , | |
* usage 3 : `for (var i = 2; i < p.length; i++) { _$.txt.add(i, "p" + i);};` , | |
* usage 4 : `var elem = document.createElement("p"); elem.id = p.length; document.body.appendChild(elem); | |
* usage 4, cont. : `_$.txt.add(5, "text\n"+ txt.p4);` | |
* jsfiddle : http://jsfiddle.net/guest271314/xCFP5/ , http://jsfiddle.net/guest271314/xF3A8/ | |
*/ | |
(function(w, el) { |
View a.json
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
["abc"] |
View d.js
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
(function() { window.txtFile = {"data1":"Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem, quia voluptas sit, aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum, quia dolor sit amet consectetur adipisci[ng] velit, sed quia non numquam [do] eius modi tempora inci[di]dunt, ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur?\n At vero eos et accusamus et iusto odio dignissimos ducimus, qui blanditiis praesentium volupt |
View cycle.js
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
/*! cycle.js Copyright (c) 2014 guest271314 http://opensource.org/licenses/BSD-2-Clause | |
`html` | |
<div id="cycle"> | |
<img src="" alt="" /> | |
<img src="" alt="" /> | |
<img src="" alt="" /> | |
<img src="" alt="" /> | |
</div> |
View content.json
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
callback({"result":"<p>something that I need to add</p>"}) |
View file.csv
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
Year | Make | Model | Description | Price | |
---|---|---|---|---|---|
1997 | Ford | E350 | ac, abs, moon | 3000.00 | |
1999 | Chevy | Venture "Extended Edition" | 4900.00 | ||
1999 | Chevy | Venture "Extended Edition, Very Large" | 5000.00 | ||
1996 | Jeep | Grand Cherokee | MUST SELL! air, moon roof, loaded | 4799.00 |
View abc.txt
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
abc123 |
View js
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
(function(_self) { | |
_self.gist = 1; | |
return _self.gist | |
}(window)) |
View get.txt
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
"%3Cimg%20src%3D%22empty.gif%22%20onerror%3D%22alert('get')%3Bthis.parentNode.removeChild(this)%3B%22%20%2F%3E" |
OlderNewer