bootstrap-page.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="robots" content="noindex" />
  8. <title>{function="t('ZeroBin')"}</title>
  9. <link type="text/css" rel="stylesheet" href="css/bootstrap/bootstrap-3.3.5.css" />
  10. <link type="text/css" rel="stylesheet" href="css/bootstrap/bootstrap-theme-3.3.5.css" />
  11. <link type="text/css" rel="stylesheet" href="css/bootstrap/zerobin.css?{$VERSION|rawurlencode}" />{if="$SYNTAXHIGHLIGHTING"}
  12. <link type="text/css" rel="stylesheet" href="css/prettify/prettify.css?{$VERSION|rawurlencode}" />{if="strlen($SYNTAXHIGHLIGHTINGTHEME)"}
  13. <link type="text/css" rel="stylesheet" href="css/prettify/{$SYNTAXHIGHLIGHTINGTHEME}.css?{$VERSION|rawurlencode}" />{/if}{/if}
  14. <script type="text/javascript" src="js/jquery-1.11.3.js"></script>
  15. <script type="text/javascript" src="js/sjcl-1.0.2.js"></script>
  16. <script type="text/javascript" src="js/base64-{$BASE64JSVERSION}.js"></script>
  17. <script type="text/javascript" src="js/rawdeflate-0.5.js"></script>
  18. <script type="text/javascript" src="js/rawinflate-0.3.js"></script>
  19. <script type="text/javascript" src="js/bootstrap-3.3.5.js"></script>{if="$SYNTAXHIGHLIGHTING"}
  20. <script type="text/javascript" src="js/prettify.js?{$VERSION|rawurlencode}"></script>{/if}{if="$MARKDOWN"}
  21. <script type="text/javascript" src="js/showdown.js?{$VERSION|rawurlencode}"></script>{/if}
  22. <script type="text/javascript" src="js/zerobin.js?{$VERSION|rawurlencode}"></script>
  23. <!--[if lt IE 10]>
  24. <style type="text/css">#ienotice {display:block !important;} #oldienotice {display:block !important;}</style>
  25. <![endif]-->
  26. </head>
  27. <body role="document">
  28. <nav class="navbar navbar-default navbar-static-top">
  29. <div class="navbar-header">
  30. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  31. <span class="sr-only">{function="t('Toggle navigation')"}</span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. <span class="icon-bar"></span>
  35. </button>
  36. <a class="reloadlink navbar-brand" href="/">{function="t('ZeroBin')"}</a>
  37. </div>
  38. <div id="navbar" class="navbar-collapse collapse">
  39. <ul class="nav navbar-nav">
  40. <li>
  41. <button id="sendbutton" type="button" class="hidden btn btn-default navbar-btn">
  42. <span class="glyphicon glyphicon-upload" aria-hidden="true"></span> {function="t('Send')"}
  43. </button>{if="$EXPIRECLONE"}
  44. <button id="clonebutton" type="button" class="hidden btn btn-default navbar-btn">
  45. <span class="glyphicon glyphicon-duplicate" aria-hidden="true"></span> {function="t('Clone')"}
  46. </button>{/if}
  47. <button id="rawtextbutton" type="button" class="hidden btn btn-default navbar-btn">
  48. <span class="glyphicon glyphicon-text-background" aria-hidden="true"></span> {function="t('Raw text')"}
  49. </button>
  50. </li>
  51. <li class="dropdown">
  52. <select id="pasteExpiration" name="pasteExpiration" class="hidden">
  53. {loop="EXPIRE"}
  54. <option value="{$key}"{if="$key == $EXPIREDEFAULT"} selected="selected"{/if}>{$value}</option>{/loop}
  55. </select>
  56. <a id="expiration" href="#" class="hidden dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{function="t('Expires')"}: <span id="pasteExpirationDisplay">{$EXPIRE[$EXPIREDEFAULT]}</span> <span class="caret"></span></a>
  57. <ul class="dropdown-menu">
  58. {loop="EXPIRE"}
  59. <li>
  60. <a href="#" onclick="$('#pasteExpiration').val('{$key}');$('#pasteExpirationDisplay').text('{$value}');return false;">
  61. {$value}
  62. </a>
  63. </li>{/loop}
  64. </ul>
  65. </li>
  66. <li>
  67. <div id="burnafterreadingoption" class="navbar-text checkbox hidden">
  68. <label>
  69. <input type="checkbox" id="burnafterreading" name="burnafterreading" {if="$BURNAFTERREADINGSELECTED"} checked="checked"{/if} />
  70. {function="t('Burn after reading')"}
  71. </label>
  72. </div>
  73. </li>{if="$DISCUSSION"}
  74. <li>
  75. <div id="opendisc" class="navbar-text checkbox hidden">
  76. <label>
  77. <input type="checkbox" id="opendiscussion" name="opendiscussion" {if="$OPENDISCUSSION"} checked="checked"{/if} />
  78. {function="t('Open discussion')"}
  79. </label>
  80. </div>
  81. </li>{/if}{if="$PASSWORD"}
  82. <li>
  83. <div id="password" class="navbar-form hidden">
  84. <input type="password" id="passwordinput" placeholder="{function="t('Password (recommended)')"}" class="form-control" size="19"/>
  85. </div>
  86. </li>{/if}{if="$FILEUPLOAD"}
  87. <li id="attach" class="hidden dropdown">
  88. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{function="t('Attach a file')"} <span class="caret"></span></a>
  89. <ul class="dropdown-menu">
  90. <li id="filewrap">
  91. <div>
  92. <input type="file" id="file" name="file" />
  93. </div>
  94. </li>
  95. <li>
  96. <a id="fileremovebutton" href="#">
  97. {function="t('Remove attachment')"}
  98. </a>
  99. </li>
  100. </ul>
  101. </li>{/if}
  102. <li class="dropdown">
  103. <select id="pasteFormatter" name="pasteFormatter" class="hidden">
  104. {loop="FORMATTER"}
  105. <option value="{$key}"{if="$key == $FORMATTERDEFAULT"} selected="selected"{/if}>{$value}</option>{/loop}
  106. </select>
  107. <a id="formatter" href="#" class="hidden dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{function="t('Format')"}: <span id="pasteFormatterDisplay">{$FORMATTER[$FORMATTERDEFAULT]}</span> <span class="caret"></span></a>
  108. <ul class="dropdown-menu">
  109. {loop="FORMATTER"}
  110. <li>
  111. <a href="#" onclick="$('#pasteFormatter').val('{$key}');$('#pasteFormatterDisplay').text('{$value}');return false;">
  112. {$value}
  113. </a>
  114. </li>{/loop}
  115. </ul>
  116. </li>
  117. </ul>
  118. <ul class="nav navbar-nav pull-right">{if="strlen($LANGUAGESELECTION)"}
  119. <li id="language" class="dropdown">
  120. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-flag" aria-hidden="true"></span> {$LANGUAGES[$LANGUAGESELECTION][0]} <span class="caret"></span></a>
  121. <ul class="dropdown-menu">
  122. {loop="LANGUAGES"}
  123. <li>
  124. <a href="#" class="reloadlink" onclick="document.cookie='lang={$key}';">
  125. {$value[0]} ({$value[1]})
  126. </a>
  127. </li>{/loop}
  128. </ul>
  129. </li>{/if}
  130. <li>
  131. <button id="newbutton" type="button" class="reloadlink hidden btn btn-default navbar-btn">
  132. <span class="glyphicon glyphicon-file" aria-hidden="true"></span> {function="t('New')"}
  133. </button>
  134. </li>
  135. </ul>
  136. </div>
  137. </nav>
  138. <header class="container">{if="strlen($NOTICE)"}
  139. <div role="alert" class="alert alert-info">
  140. <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> {$NOTICE|htmlspecialchars}
  141. </div>{/if}
  142. <div id="remainingtime" role="alert" class="hidden alert alert-info">
  143. <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
  144. </div>{if="$FILEUPLOAD"}
  145. <div id="attachment" role="alert" class="hidden alert alert-info">
  146. <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> <a>{function="t('Download attachment')"}</a> <span id="clonedfile" class="hidden">{function="t('Cloned file attached.')"}</span>
  147. </div>{/if}{if="strlen($STATUS)"}
  148. <div id="status" role="alert" class="alert alert-success">
  149. <span class="glyphicon glyphicon-ok" aria-hidden="true"></span> {$STATUS|htmlspecialchars}
  150. </div>{/if}
  151. <div id="errormessage" role="alert" class="{if="!strlen($ERROR)"}hidden {/if}alert alert-danger"><span class="glyphicon glyphicon-alert" aria-hidden="true"></span> {$ERROR|htmlspecialchars}</div>
  152. <div id="noscript" role="alert" class="nonworking alert alert-warning"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> {function="t('Javascript is required for ZeroBin to work.<br />Sorry for the inconvenience.')"}</div>
  153. <div id="oldienotice" role="alert" class="hidden nonworking alert alert-danger"><span class="glyphicon glyphicon-alert" aria-hidden="true"></span> {function="t('ZeroBin requires a modern browser to work.')"}</div>
  154. <div id="ienotice" role="alert" class="hidden alert alert-warning"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span> {function="t('Still using Internet Explorer? Do yourself a favor, switch to a modern browser:')"}
  155. <a href="http://www.mozilla.org/firefox/">Firefox</a>,
  156. <a href="http://www.opera.com/">Opera</a>,
  157. <a href="http://www.google.com/chrome">Chrome</a>,
  158. <a href="http://www.apple.com/safari">Safari</a>...
  159. </div>
  160. <div id="pasteresult" role="alert" class="hidden alert alert-success">
  161. <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
  162. <div id="deletelink"></div>
  163. <div id="pastelink"></div>
  164. </div>
  165. </header>
  166. <section class="container">
  167. <article class="row">
  168. <div id="image" class="col-md-12 text-center hidden"></div>
  169. <div id="prettymessage" class="col-md-12 hidden">
  170. <pre id="prettyprint" class="col-md-12 prettyprint linenums:1"></pre>
  171. </div>
  172. <div id="cleartext" class="col-md-12 hidden"></div>
  173. <p class="col-md-12"><textarea id="message" name="message" cols="80" rows="25" class="form-control hidden"></textarea></p>
  174. </article>
  175. </section>
  176. <section class="container">
  177. <div id="discussion" class="hidden">
  178. <h4>{function="t('Discussion')"}</h4>
  179. <div id="comments"></div>
  180. </div>
  181. </section>
  182. <footer class="container">
  183. <div class="row">
  184. <h4 class="col-md-5 col-xs-8">{function="t('ZeroBin')"} <small>- {function="t('Because ignorance is bliss')"}</small></h4>
  185. <p class="col-md-1 col-xs-4 text-center">{$VERSION}</p>
  186. <p id="aboutbox" class="col-md-6 col-xs-12">
  187. {function="t('ZeroBin is a minimalist, opensource online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href="https://github.com/elrido/ZeroBin/wiki">project page</a>.')"}
  188. </p>
  189. </div>
  190. </footer>
  191. <div id="cipherdata" class="hidden">{$CIPHERDATA}</div>
  192. </body>
  193. </html>