forked from max-mapper/requirebin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (89 loc) · 4.94 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>RequireBin</title>
<meta charset="utf-8">
<link rel='shortcut icon' href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="css/codemirror.css"/>
<link rel="stylesheet" type="text/css" href="css/theme.css"/>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="flatui/css/flat-ui.css">
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body>
<a href="/"><img class="logo" src="img/logo-black.png"></a>
<div class="loading hidden">
<img src="img/cube.gif"><div>LOADING...</div>
</div>
<select class="actionsMenu" value="Actions" tabindex="1">
<option value="noop" selected="selected">Actions</option>
<option value="save">Save Gist</option>
<option value="save-private">Save Private Gist</option>
<option value="howto">See instructions</option>
<option value="share">Share/Embed</option>
</select>
<div class="btn-toolbar actionsButtons">
<div class="btn-group">
<a data-action="edit" class="btn btn-primary active"><i class="fui-new-16"></i>Edit</a>
<a data-action="play" class="btn btn-primary"><i class="fui-eye-16"></i>Run</a>
</div>
</div>
<div id="play" class="large hidden">
<div id="crosshair"></div>
</div>
<div id="paint" class="large hidden">
</div>
<div id="edit" class="large">
<div id="share" class="hidden">
<p id="shareDisabled">You have to save your project before you can embed it.</p>
<div id="shareInstructions" class="hidden">
<p>HTML Embed code:</p>
<textarea id="shareTextarea"></textarea>
<p>HTML Embed example:</p>
<p><a href="/embed?gist=6264704" target="_blank">requirebin.com/embed?gist=6264704</a></p>
<p>Share Badge Markdown code:</p>
<textarea id="shareBadgeTextarea"></textarea>
<p>Markdown Share Badge image code:</p>
<textarea id="markdownShareBadgeTextarea"></textarea>
<p>Share Badge example:</p>
<a class="requirebin-link" target="_blank"><div class="requirebin-badge"></div></a>
</div>
</div>
<div id="howto" class="">
<p>Shareable JavaScript programs using modules from <a href="http://npmjs.org" target="_blank"><span class="npm"></span></a>.
</p>
<p>Node.js style modular code gets transformed into code that can run client-side using <a href="http://browserify.org/" target="_blank">browserify</a> via <a target="_blank" href="http://wzrd.in.nyud.net/" target="_blank">browserify-cdn</a>.</p>
<p>Want to see an example? <a target="_blank" href="/?gist=juliangruber/6264704">requirebin.com/?gist=juliangruber/6264704</a></p>
<p>They are also embeddable <a target="_blank" href="/embed?gist=juliangruber/6264704">requirebin.com/embed?gist=juliangruber/6264704</a></p>
<p>Here are <a href="https://gist.github.com/maxogden/9425694">a bunch more examples to play with</a>.</p>
<p>Need HTML or CSS? Check out <a target="_blank" href="http://requirebin.com/?gist=maxogden/9842648">insert-css and domify</a>.</p>
<p>The <span class="view-icon"></span> buttons run the code from the current bin.</p>
<div class="col-xs-3"><a class="run-btn btn btn-block btn-lg btn-primary"><i class="fui-eye-16"></i> Run This Bin</a></div>
<div class="attribution">
<p>View the source or report bugs <a href="https://github.com/maxogden/requirebin" target="_blank">on Github</a>.</p>
<p><strong>Need Help?</strong> Send a question via tweet to <a href="http://twitter.com/maxogden" target="_blank">@maxogden</a></p>
<a href="http://thenounproject.com/noun/recycle-bin/#icon-No12230" target="_blank">Recycle Bin</a> icon designed by <a href="http://thenounproject.com/jjaysonn" target="_blank">jayson lim</a> from The Noun Project
</div>
</div>
<div class="packagejson">
<h6>Modules In Use</h6>
<div id="tagsinput" class="tagsinput" />
<div class="tagsinput-add">No Modules Required Yet</div>
</div>
</div>
</div>
<script id="template" type="text/template">// try requiring some modules from NPM and then hit Run
require('cat-picture')</script>
<script type="text/javascript" src="flatui-deps.js"></script>
<script type="text/javascript" src="bundle.js"></script>
<script type="text/javascript" src="uglifyjs2-browser-minify.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42274004-1', 'requirebin.com');
ga('send', 'pageview');
</script>
</body>
</html>