index.html 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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 MacSwap.
  10. MacSwap 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. MacSwap 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 MacSwap. If not, see <https://www.gnu.org/licenses/>.
  20. -->
  21. <title>MacSwap: Swapping everything but burgers..</title>
  22. <link rel="shortcut icon" href="Public/favicon.ico" />
  23. <meta name="description" content="Welcome to MacSwap"/>
  24. <meta name="author" content="5 Mode"/>
  25. <meta name="keywords" content="MacSwap,swap,swapping,p2p,peer-to-peer,digital,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. <script src="Public/js/home.js" type="text/javascript" defer></script>
  31. <link href="Public/css/bootstrap.min.css" type="text/css" rel="stylesheet">
  32. <link href="Public/css/style.css?v=16318275566" type="text/css" rel="stylesheet">
  33. <script>
  34. function hideTitle() {
  35. $("#myh1").hide("slow");
  36. }
  37. function setOriginsPos() {
  38. h=parseInt(window.innerHeight);
  39. w=parseInt(window.innerWidth);
  40. mytop = parseInt(window.innerHeight - ($("#originsDisplay").height() + 60));
  41. $("#originsDisplay").css("top", mytop+"px");
  42. setTimeout("hideOrigins()",15000);
  43. }
  44. function hideOrigins() {
  45. $("#originsDisplay").css("visibility","hidden");
  46. }
  47. function startApp() {
  48. $("#vplayer").get(0).pause();
  49. $("#HCsplash").css("display","none");
  50. $("#originsDisplay").show();
  51. //$("#HCsplash").hide("slow");
  52. $(document.body).css("background","#ffffff");
  53. $("#frmHC").show();
  54. }
  55. function _startApp() {
  56. setTimeout("startApp()", 1000);
  57. }
  58. window.addEventListener("load", function() {
  59. $("#frmHC").hide();
  60. setTimeout("setOriginsPos()", 500);
  61. //Splash
  62. $("#HCsplash").show();
  63. $("#vplayer").get(0).play();
  64. }, true);
  65. window.addEventListener("load", function() {
  66. // Fisnished the Intro load the app..
  67. //document.getElementById("vplayer").onended=_startApp;
  68. setTimeout("_startApp()", 6000);
  69. });
  70. </script>
  71. </head>
  72. <body style="background:#0d0d0d;">
  73. <div id="HCsplash" style="padding-top: 40px; text-align:center;color:#FFFFFF;c-olor:#d4b0dc;font-family:'Rampart One';">
  74. <div id="myh1" style="position:relative; top:80px;"><H1>MacSwap</H1></div><br><br>
  75. <video id="vplayer" loop="1">
  76. <source src="Public/res/macswap.mp4" type="video/mp4">
  77. </video>
  78. <div style="margin-bottom:80px;"><H3>&nbsp;</H3></div><br><br>
  79. </div>
  80. <form id="frmHC" method="POST" target="_self" enctype="multipart/form-data" style="display:none;">
  81. <div class="header" style="margin-top:18px;margin-bottom:18px;">
  82. <a href="http://macswap.5mode.com" target="_self" style="color:#000000; text-decoration: none;">&nbsp;<img src="Public/res/1burger_1w.png" style="width:22px;">&nbsp;MacSwap</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://github.com/par7133/MacSwap" style="color:#000000;"><span style="color:#119fe2">on</span> github</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:posta@elettronica.lol" 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>
  83. </div>
  84. <div style="clear:both; float:left; padding:8px; width:15%; height:100%; text-align:center;">
  85. <div style="padding-left:10px;text-align: left;">
  86. &nbsp;Download<br>
  87. &nbsp;<a href="https://github.com/par7133/MacSwap/archive/refs/tags/v1.1.8.zip">Release 1.1.8 (zip)</a><br>
  88. &nbsp;<a href="https://github.com/par7133/MacSwap//archive/refs/tags/v1.1.8.tar.gz">Release 1.1.8 (tar.gz)</a><br>
  89. </div>
  90. <br><br>
  91. <img src="Public/res/MSgenius.png" alt="MS Genius" title="MS Genius" style="position:relative; left:+6px; width:90%; border: 1px dashed #EEEEEE;">
  92. &nbsp;<br><br><br>
  93. &nbsp;<input type="text" id="Password" name="Password" placeholder="password" style="font-size:10px; background:#393939; color:#ffffff; width: 90%; height:30px; border-radius:3px;" value="" autocomplete="off"><br>
  94. &nbsp;<input type="text" id="Salt" placeholder="salt" style="position:relative; top:+5px; font-size:10px; background:#393939; color:#ffffff; width: 90%; height:30px; border-radius:3px;" autocomplete="off"><br>
  95. &nbsp;<a href="#" onclick="showEncodedPassword();" style="position:relative; left:-2px; top:+5px; color:#000000; font-size:12px;">Hash Me!</a>
  96. <br><br><br>
  97. </div>
  98. <div style="float:left; width:85%;height:100%; padding:8px; border-left: 1px solid #2c2f34;">
  99. <div id="splash" style="border-radius:20px; position:relative; left:+3px; width:98%; background-color: #f0f8fb; padding: 20px; margin-bottom:8px;">
  100. <button type="button" class="close" aria-label="Close" onclick="close-Splash();" style="position:relative; left:-10px;">
  101. <span aria-hidden="true">&times;</span>
  102. </button>
  103. Hello and welcome to MacSwap!<br><br>
  104. MacSwap is a light, simple, "peer-to-peer" software on premise for swapping your own stuff with others.<br><br>
  105. MacSwap is released under GPLv3 license, it is supplied AS-IS and we do not take any responsibility for its misusage.<br><br>
  106. First step, use the left side panel password and salt fields to create the hash to insert in the config file. Remember to manually set there also the salt value.<br><br>
  107. As you are going to run MacSwap 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>
  108. <ol>
  109. <li>Check the write permissions of your "data" folder in your web app private path; and set its path in the config file.</li>
  110. <li>Set the default Business Type, City and Country of the stuff your are going to swap.</li>
  111. <li>Set the MAX_BURGERS value stating the max number of burgers the app is going to manage.</li>
  112. <li>Set the Editor Password of your burgers. This will be important to confirm your burger upload by dropping it and saving it.</li>
  113. <li>In Public/js/cube-code.js, in mystart class method, check if you are using 'http' or 'https'.</li>
  114. </ol>
  115. <br>
  116. <b>Attention:</b> version 1.1.5 > is not retrocompatible.
  117. <br><br>
  118. Hope you can enjoy it and let us know about any feedback: <a href="mailto:my25mb@aol.com">my25mb@aol.com</a>
  119. <br><br><br><br><br>
  120. </div>
  121. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  122. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  123. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  124. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  125. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  126. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  127. </div>
  128. </form>
  129. <div id="originsDisplay">
  130. <br>
  131. &nbsp;<span class="originLabel">Coding:</span>&nbsp;Italy<br>
  132. &nbsp;<span class="originLabel">Server:</span>&nbsp;United States&nbsp;<br>
  133. &nbsp;<span class="originLabel"><a href="http://metrica.yandex.com" class="bbb">Metrics</a>:</span>&nbsp;Russia&nbsp;<br>
  134. <br>
  135. </div>
  136. <div class="footer">
  137. <div id="footerCont">&nbsp;</div>
  138. <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>
  139. </div>
  140. <script>
  141. function setFooterPos2() {
  142. if (document.getElementById("footerCont")) {
  143. //if ($("#Password").val() === "") {
  144. // tollerance = 48;
  145. // } else {
  146. // tollerance = 15;
  147. //}
  148. tollerance = 22;
  149. $("#footerCont").css("top", parseInt( window.innerHeight - $("#footerCont").height() - tollerance ) + "px");
  150. $("#footer").css("top", parseInt( window.innerHeight - $("#footer").height() - tollerance + 6) + "px");
  151. }
  152. }
  153. setFooterPos2();
  154. //window.addEventListener("load", function() {
  155. //
  156. // setTimeout("setFooterPos2()", 4000);
  157. //
  158. //}, true);
  159. </script>
  160. <!-- Yandex.Metrika counter -->
  161. <script type="text/javascript" >
  162. (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
  163. 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)})
  164. (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
  165. ym(88085185, "init", {
  166. clickmap:true,
  167. trackLinks:true,
  168. accurateTrackBounce:true
  169. });
  170. </script>
  171. <noscript><div><img src="https://mc.yandex.ru/watch/88085185" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
  172. <!-- /Yandex.Metrika counter -->
  173. </body>
  174. </html>