index.html 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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-foss.eu" 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:code@gaox.io" style="color:#000000;"><span style="color:#119fe2">for</span> feedback</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="tel:+39-378-0812391" 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. <a href="https://github.com/par7133/MacSwap/archive/refs/tags/v1.2.1.zip">Rel. 1.2.1 (zip)</a><br>
  87. <a href="https://github.com/par7133/MacSwap//archive/refs/tags/v1.2.1.tar.gz">Rel. 1.2.1 (tar.gz)</a><br>
  88. </div>
  89. <br><br>
  90. <img src="Public/res/MSgenius.png" alt="MS Genius" title="MS Genius" style="position:relative; left:+6px; width:90%; border: 1px dashed #EEEEEE;">
  91. &nbsp;<br><br><br>
  92. &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>
  93. &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>
  94. &nbsp;<a href="#" onclick="showEncodedPassword();" style="position:relative; left:-2px; top:+5px; color:#000000; font-size:12px;">Hash Me!</a>
  95. <br><br><br>
  96. </div>
  97. <div style="float:left; width:85%;height:100%; padding:8px; border-left: 1px solid #2c2f34;">
  98. <div id="splash" style="border-radius:20px; position:relative; left:+3px; width:98%; background-color: #f0f8fb; padding: 20px; margin-bottom:8px;">
  99. <button type="button" class="close" aria-label="Close" onclick="close-Splash();" style="position:relative; left:-10px;">
  100. <span aria-hidden="true">&times;</span>
  101. </button>
  102. Hello and welcome to MacSwap!<br><br>
  103. MacSwap is a light, simple, "peer-to-peer" software on premise for swapping your own stuff with others.<br><br>
  104. MacSwap is released under GPLv3 license, it is supplied AS-IS and we do not take any responsibility for its misusage.<br><br>
  105. 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>
  106. 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>
  107. <ol>
  108. <li>Check the write permissions of your "data" folder in your web app private path; and set its path in the config file.</li>
  109. <li>Set the default Business Type, City and Country of the stuff your are going to swap.</li>
  110. <li>Set the MAX_BURGERS value stating the max number of burgers the app is going to manage.</li>
  111. <li>Set the Editor Password of your burgers. This will be important to confirm your burger upload by dropping it and saving it.</li>
  112. <li>In Public/js/cube-code.js, in mystart class method, check if you are using 'http' or 'https'.</li>
  113. </ol>
  114. <br>
  115. <b>Attention:</b> version 1.1.5 > is not retrocompatible.
  116. <br><br>
  117. Feedback: <a href="mailto:code@gaox.io">code@gaox.io</a>
  118. <br><br><br><br><br>
  119. </div>
  120. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  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. </div>
  127. </form>
  128. <div id="originsDisplay" style="display:none">
  129. <br>
  130. &nbsp;<span class="originLabel">Coding:</span>&nbsp;Italy<br>
  131. &nbsp;<span class="originLabel">Server:</span>&nbsp;United States&nbsp;<br>
  132. &nbsp;<span class="originLabel"><a href="http://metrica.yandex.com" class="bbb">Metrics</a>:</span>&nbsp;Russia&nbsp;<br>
  133. <br>
  134. </div>
  135. <div class="footer">
  136. <div id="footerCont">&nbsp;</div>
  137. <div id="footer"><span style="background:#E1E1E1;color:black;opacity:1.0;margin-right:10px;">&nbsp;&nbsp;<a href="https://5mode.com/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. CC&nbsp;&nbsp;</span></div>
  138. </div>
  139. <script>
  140. function setFooterPos2() {
  141. if (document.getElementById("footerCont")) {
  142. //if ($("#Password").val() === "") {
  143. // tollerance = 48;
  144. // } else {
  145. // tollerance = 15;
  146. //}
  147. tollerance = 22;
  148. $("#footerCont").css("top", parseInt( window.innerHeight - $("#footerCont").height() - tollerance ) + "px");
  149. $("#footer").css("top", parseInt( window.innerHeight - $("#footer").height() - tollerance + 6) + "px");
  150. }
  151. }
  152. setFooterPos2();
  153. //window.addEventListener("load", function() {
  154. //
  155. // setTimeout("setFooterPos2()", 4000);
  156. //
  157. //}, true);
  158. </script>
  159. </body>
  160. </html>