index.html 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <!DOCTYPE html>
  2. <html lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <meta name="style" content="day1"/>
  6. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  7. <!--
  8. Copyright 2021, 2024 5 Mode
  9. This file is part of SnipSwap.
  10. SnipSwap is free software: you can redistribute it and/or modify
  11. it under the terms of the GNU General Public License as published by
  12. the Free Software Foundation, either version 3 of the License, or
  13. (at your option) any later version.
  14. SnipSwap is distributed in the hope that it will be useful,
  15. but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. GNU General Public License for more details.
  18. You should have received a copy of the GNU General Public License
  19. along with SnipSwap. If not, see <https://www.gnu.org/licenses/>.
  20. -->
  21. <title>SnipSwap: Swapping code like burgers..</title>
  22. <link rel="shortcut icon" href="Public/favicon.ico" />
  23. <meta name="description" content="Welcome to SnipSwap"/>
  24. <meta name="author" content="5 Mode"/>
  25. <meta name="keywords" content="SnipSwap,snippet,code,swap.swapping,on,premise,solution"/>
  26. <script src="Public/js/jquery-3.6.0.min.js" type="text/javascript"></script>
  27. <script src="Public/js/common.js" type="text/javascript"></script>
  28. <script src="Public/js/bootstrap.min.js" type="text/javascript"></script>
  29. <script src="Public/js/sha.js" type="text/javascript"></script>
  30. <link href="Public/css/bootstrap.min.css" type="text/css" rel="stylesheet">
  31. <link href="Public/css/style.css?v=1631827555" type="text/css" rel="stylesheet">
  32. <script>
  33. function showEncodedPassword() {
  34. if ($("#Password").val() === "") {
  35. $("#Password").addClass("emptyfield");
  36. return;
  37. }
  38. passw = encryptSha2( $("#Password").val() );
  39. msg = "Please set your new pasword in the config file with this value:";
  40. alert(msg + "\n\n" + passw);
  41. }
  42. function hideTitle() {
  43. $("#myh1").hide("slow");
  44. }
  45. function startApp() {
  46. $("#HCsplash").css("display","none");
  47. //$("#HCsplash").hide("slow");
  48. $(document.body).css("background","#ffffff");
  49. $("#frmHC").show();
  50. }
  51. function _startApp() {
  52. setTimeout("startApp()", 1000);
  53. }
  54. window.addEventListener("load", function() {
  55. $("#frmHC").hide();
  56. //Splash
  57. $("#HCsplash").show();
  58. //$(document.body).css("background","#000000");
  59. //$("#HCsplash").show("slow");
  60. //setTimeout("hideTitle()", 2000);
  61. //setTimeout("startApp()", 4000);
  62. }, true);
  63. window.addEventListener("load", function() {
  64. // Fisnished the Intro load the app..
  65. //document.getElementById("vplayer").onended=_startApp;
  66. setTimeout("_startApp()", 6000);
  67. });
  68. </script>
  69. </head>
  70. <body style="background:#0d0d0d;">
  71. <div id="HCsplash" style="padding-top: 40px; text-align:center;color:#d4b0dc;font-family:'Bungee Hairline';">
  72. <div id="myh1" style="position:relative; top:80px;"><H1>SnipSwap</H1></div><br><br>
  73. <img src="Public/res/code.png" style="width:310px;">
  74. </div>
  75. <form id="frmHC" method="POST" target="_self" enctype="multipart/form-data" style="display:none;">
  76. <div class="header" style="margin-top:18px;">
  77. <a href="http://snipwap.org" target="_self" style="color:#000000; text-decoration: none;">&nbsp;<img src="Public/res/code.png" style="width:22px;">&nbsp;SnipSwap</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://github.com/par7133/SnipSwap" style="color:#000000;"><span style="color:#119fe2">on</span> github</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:info@snipswap.org" style="color:#000000;"><span style="color:#119fe2">for</span> feedback</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="tel:+39-331-4029415" style="font-size:13px;background-color:#15c60b;border:2px solid #15c60b;color:#000000;height:27px;text-decoration:none;">&nbsp;&nbsp;get support&nbsp;&nbsp;</a>
  78. </div>
  79. <div style="clear:both; float:left; padding:8px; width:15%; height:100%; text-align:center;">
  80. <div style="padding-left:10px;text-align: left;">
  81. &nbsp;Download<br>
  82. &nbsp;<a href="https://github.com/par7133/SnipSwap/archive/refs/tags/v1.0.5.zip">Release 1.0.5 (zip)</a><br>
  83. &nbsp;<a href="https://github.com/par7133/SnipSwap//archive/refs/tags/v1.0.5.tar.gz">Release 1.0.5 (tar.gz)</a><br>
  84. </div>
  85. <br><br>
  86. <img src="Public/res/SSgenius.png" alt="SS Genius" title="SS Genius" style="position:relative; left:+6px; width:90%; border: 1px dashed #EEEEEE;">
  87. &nbsp;<br><br><br>
  88. &nbsp;<input type="text" id="Password" name="Password" placeholder="password" style="font-size:10px; background:#393939; color:#ffffff; width: 90%; border-radius:3px;" value="" autocomplete="off"><br>
  89. &nbsp;<a href="#" onclick="showEncodedPassword();" style="position:relative; left:-2px; top:+5px; color:#000000; font-size:12px;">Hash Me!</a>
  90. <br><br><br>
  91. </div>
  92. <div style="float:left; width:85%;height:100%; padding:8px; border-left: 1px solid #2c2f34;">
  93. <div id="splash" style="border-radius:20px; position:relative; left:+3px; width:98%; background-color: #33aced; padding: 20px; margin-bottom:8px;">
  94. <button type="button" class="close" aria-label="Close" onclick="close-Splash();" style="position:relative; left:-10px;">
  95. <span aria-hidden="true">&times;</span>
  96. </button>
  97. Hello and welcome to SnipSwap!<br><br>
  98. SnipSwap is a light, simple, "peer-to-peer" software on premise for swapping your snippets of code with others.<br><br>
  99. SnipSwap is released under GPLv3 license, it is supplied AS-IS and we do not take any responsibility for its misusage.<br><br>
  100. First step, use the left side panel password field to create the hashed password to insert in the config file.<br><br>
  101. As you are going to run SnipSwap in the PHP process context, using a limited web server or phpfpm user, you must follow some simple directives for an optimal first setup:<br>
  102. <ol>
  103. <li>Check the write permissions of your "data" (repo) folder in your web app private path; and set its path in the config file.</li>
  104. <li>Set the default Business Label, Link and Email of the stuff your are going to swap.</li>
  105. <li>Set the MAX_DFT_NEW_SNIP value stating the max number of snippet the app is going to initially create.</li>
  106. <li>In Public/js/cube-code.js, in mystart class method, check if you are using 'http' or 'https'.</li>
  107. </ol>
  108. <br>
  109. Hope you can enjoy it and let us know about any feedback: <a href="mailto:info@snipswap.org" style="color:#e6d236;">info@snipswap.org</a>
  110. </div>
  111. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  112. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  113. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  114. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  115. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  116. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  117. </div>
  118. </form>
  119. <div class="footer">
  120. <div id="footerCont">&nbsp;</div>
  121. <div id="footer"><span style="background:#E1E1E1;color:black;opacity:1.0;margin-right:10px;">&nbsp;&nbsp;<a href="dd.html">Disclaimer</a>&nbsp;&nbsp;A <a href="http://5mode.com">5 Mode</a> project and <a href="http://demo.5mode.com">WYSIWYG</a> system. Some rights reserved.</span></div>
  122. </div>
  123. <script>
  124. function setFooterPos2() {
  125. if (document.getElementById("footerCont")) {
  126. //if ($("#Password").val() === "") {
  127. // tollerance = 48;
  128. // } else {
  129. // tollerance = 15;
  130. //}
  131. tollerance = 22;
  132. $("#footerCont").css("top", parseInt( window.innerHeight - $("#footerCont").height() - tollerance ) + "px");
  133. $("#footer").css("top", parseInt( window.innerHeight - $("#footer").height() - tollerance + 6) + "px");
  134. }
  135. }
  136. setFooterPos2();
  137. //window.addEventListener("load", function() {
  138. //
  139. // setTimeout("setFooterPos2()", 4000);
  140. //
  141. //}, true);
  142. </script>
  143. <!-- Yandex.Metrika counter -->
  144. <script type="text/javascript" >
  145. (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
  146. m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
  147. (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
  148. ym(88085185, "init", {
  149. clickmap:true,
  150. trackLinks:true,
  151. accurateTrackBounce:true
  152. });
  153. </script>
  154. <noscript><div><img src="https://mc.yandex.ru/watch/88085185" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
  155. <!-- /Yandex.Metrika counter -->
  156. </body>
  157. </html>