Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.78 KB | None | 0 0
  1. // [][][][][][][][][][][][][][][][][][][][][][][][][] PHP [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
  2.  
  3. <?php
  4. include_once('inc/admin/management.php'); // Include management file.
  5. ?>
  6. <!doctype html>
  7. <html>
  8. <head>
  9. <meta charset="UTF-8">
  10. <title><?php echo $arr2[3] . " | " . $arr1[0] . " of " . $arr2[0]; ?></title>
  11. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  12. <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
  13. <link rel="stylesheet" href="inc/styling/css/index.css?version=10" type="text/css">
  14. <link rel="stylesheet" href="inc/styling/css/swoopie.css" type="text/css">
  15. </head>
  16. <body>
  17. <div id="container">
  18. <!-- Page 2 -->
  19. <div id="page_0">
  20. <div class="stdP_wrap">
  21. <h2>Page 0</h2>
  22. </div>
  23. </div>
  24.  
  25. <!-- Page 1 -->
  26. <div id="page_1">
  27. <div class="stdP_wrap">
  28. <h2>Page 1</h2>
  29. <button class="stdBtn">Btn1</button>
  30. </div>
  31. </div>
  32.  
  33. <!-- Page 2 -->
  34. <div id="page_2">
  35. <div class="stdP_wrap">
  36. <h2>Page 2</h2>
  37. <button class="stdBtn">Btn2</button>
  38. </div>
  39. </div>
  40.  
  41. <!-- Page 3 -->
  42. <div id="page_3">
  43. <div class="stdP_wrap">
  44. <h2>Page 3</h2>
  45. <button class="stdBtn">Btn3</button>
  46. </div>
  47. </div>
  48.  
  49. <!-- Page 4 -->
  50. <div id="page_4">
  51. <div class="stdP_wrap">
  52. <h2>Page 4</h2>
  53. <button class="stdBtn">Btn4</button>
  54. </div>
  55. </div>
  56.  
  57. <!-- Page 5 -->
  58. <div id="page_5">
  59. <div class="stdP_wrap">
  60. <h2>Page 5</h2>
  61. <button class="stdBtn">Btn5</button>
  62. </div>
  63. </div>
  64. </div>
  65. <script type="text/javascript">
  66. // Variables & arrays
  67. var pageId = 0;
  68. var atPage = Array("#page_1", "#page_2", "#page_3", "#page_4", "#page_5");
  69. var sBool = false;
  70.  
  71. $(window).on("scroll touchmove", function() {
  72. $(atPage[pageId]).addClass("stdAnimationCallPageSlideOut").on("webkitAnimationEnd", function(){
  73. var $nypos = $(atPage[pageId]).parent().children('*:first-child');
  74. $(atPage[pageId]).insertBefore($nypos).removeClass("stdAnimationCallPageSlideOut");
  75. if(!sBool) {
  76. $(atPage[pageId]).css("opacity", "0");
  77. sBool = !sBool;
  78. }
  79. if(pageId >= 4) {
  80. pageId = 0;
  81. } else {
  82. pageId++;
  83. }
  84. $(atPage[pageId]).css("opacity", "1");
  85. sBool = !sBool;
  86. });
  87. });
  88. </script>
  89. </body>
  90. </html>
  91.  
  92.  
  93. // [][][][][][][][][][][][][][][][][][][][][][][][][] CSS [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
  94. @charset "UTF-8";
  95. /* CSS Document */
  96.  
  97. /* Common */
  98.  
  99. * {
  100. margin: 0;
  101. padding: 0;
  102. }
  103.  
  104. h1, h2, h3 {
  105. font-family: helvetica neue, verdana;
  106. }
  107.  
  108. /* Use of multiple */
  109. #page_1, #page_2, #page_3, #page_4, #page_5 {
  110. height: 903.5px;
  111. width: 100%;
  112. position: fixed;
  113. top: 0;
  114. left: 0;
  115. opacity: 0;
  116. background-color: grey;
  117. color: white;
  118.  
  119. }
  120.  
  121. /* Page 0 */
  122. #page_0 {
  123. height: 1000px;
  124. z-index: -100;
  125. background-color: transparent;
  126. }
  127.  
  128. #page_0 h2 {
  129. color: white;
  130. }
  131.  
  132. /* Page 1 */
  133. #page_1 {
  134. border: 1px solid red;
  135. opacity: 1;
  136. }
  137.  
  138. // [][][][][][][][][][][][][][][][][][][][][][][][][] SWOOPIE [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
  139.  
  140. @charset "UTF-8";
  141. /* CSS Document */
  142.  
  143. /* Wrappings */
  144. .stdP_wrap {
  145. max-width: 1280px;
  146. margin: 0 auto;
  147. }
  148.  
  149. /* Buttons */
  150. .stdBtn {
  151. padding-left: 30px;
  152. padding-right: 30px;
  153. padding-top: 10px;
  154. padding-bottom: 10px;
  155. background-color: transparent;
  156. border: 1px solid black;
  157. border-radius: 0px;
  158. font-size: 16px;
  159. }
  160.  
  161. .stdBtn:hover {
  162. background-color: black;
  163. color: white;
  164. }
  165.  
  166. /* Animations */
  167. @keyframes stdAnimationPageSlideOut { /* Fading out full web pages */
  168. 0% { -webkit-opacity: 1; -webkit-transform: translate(0, 0) rotate(0deg); }
  169. 35% { -webkit-transform: translate(100%, 0) rotate(90deg); }
  170. 70% { -webkit-transform: translate(100%, 100px) rotate(90deg); -webkit-opacity: 0; }
  171. 100% { -webkit-transform: translate(0, 0) rotate(0deg); -webkit-opacity: 0; }
  172. }
  173.  
  174. /* Calling animations */
  175. .stdAnimationCallPageSlideOut {
  176. -webkit-animation: 1s stdAnimationPageSlideOut forwards;
  177. }
  178.  
  179. // [][][][][][][][][][][][][][][][][][][][][][][][][] MANAGEMENT [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
  180.  
  181. <?php
  182. $host = "localhost"; // Server host.
  183. $user = "root"; // Username for phpmyadmin.
  184. $pass = ""; // Password for phpmyadmin.
  185. $base = "swoop_login"; // Database.
  186.  
  187. $connect = mysqli_connect($host, $user, $pass, $base);
  188. if(mysqli_connect_error()){ echo mysqli_connect_errno(); } // Checking database connection.
  189.  
  190. // [][][][][][][][][][][][] - Edit - [][][][][][][][][][][][]
  191. $arr1 = array("Home", "Register", "Login", "Me"); // Webpage titles.
  192. $arr2 = array("Swoop", "Swoop", "Swoop", "Swoopie.xyz"); // Webpage infomation.
  193. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement