service.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <!--
  2. This file is part of centurio.work/commands.
  3. centurio.work/commands is free software: you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or (at your
  6. option) any later version.
  7. centurio.work/commands is distributed in the hope that it will be useful, but
  8. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  9. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  10. more details.
  11. You should have received a copy of the GNU General Public License along with
  12. centurio.work/commands (file COPYING in the main directory). If not, see
  13. <http://www.gnu.org/licenses/>.
  14. -->
  15. <!DOCTYPE html>
  16. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  17. <head>
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  19. <title>Design</title>
  20. <!-- libs, do not modify. When local than load local libs. -->
  21. <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
  22. <script type="text/javascript" src="/js_libs/jquery.browser.js"></script>
  23. <link rel="icon" href="favicon.ico">
  24. <link rel="icon" type="image/png" sizes="96x96" href="favicon-96x96.png">
  25. <style>
  26. :root {
  27. --color: #1e90ff;
  28. --backgroundcolor: fff;
  29. --fontcolor: 000;
  30. }
  31. body {
  32. color: var(--fontcolor);
  33. background-color: var(--backgroundcolor);
  34. }
  35. body{
  36. background-repeat: no-repeat;
  37. background-size: auto 80%;
  38. background-position: calc(100% - 18px);;
  39. }
  40. .outer{
  41. width:100%
  42. }
  43. .left{
  44. display: table;
  45. margin: 0 0;
  46. }
  47. .center{
  48. display: table;
  49. margin: 0 auto;
  50. }
  51. .right{
  52. display: table;
  53. margin: 0px 0px 0px auto;
  54. }
  55. .rendered-form {
  56. position: absolute;
  57. top: 50%;
  58. margin: -1.7em;
  59. }
  60. a { margin: 5em; border: 0.3em solid black; border-radius: 50%; background-color: rgb(252, 229, 0); font-weight: bold; font-size: 1.3em; padding: 0.8em 1em 0.8em 1em;}
  61. a, a:link, a:visited, a:hover, a:active {
  62. text-decoration: none;
  63. color: black;
  64. }
  65. </style>
  66. </head>
  67. <script>
  68. $(document).ready(function() {
  69. const queryString = window.location.search;
  70. const urlParams = new URLSearchParams(queryString);
  71. const text = urlParams.get('text')
  72. const type = urlParams.get('type')
  73. const color = urlParams.get('color')
  74. const backgroundcolor = urlParams.get('backgroundcolor')
  75. const fontcolor = urlParams.get('fontcolor')
  76. const backgroundImage = urlParams.get('backgroundImage')
  77. const backgroundPosition = urlParams.get('backgroundPosition')
  78. var r = document.documentElement;
  79. if(color != null){
  80. r.style.setProperty('--color', "#" + color);
  81. }
  82. if(backgroundcolor != null){
  83. r.style.setProperty('--backgroundcolor', "#" + backgroundcolor);
  84. }
  85. if(fontcolor != null){
  86. r.style.setProperty('--fontcolor', "#" + fontcolor);
  87. }
  88. if(text != null){
  89. document.getElementById("header").innerHTML=text;
  90. }
  91. if(backgroundImage != null){
  92. document.body.style.backgroundImage = "url('" + backgroundImage +"')";
  93. }
  94. if(backgroundPosition != null){
  95. if(backgroundPosition == "left"){
  96. document.body.style.backgroundPosition = "18px";
  97. }
  98. else if(backgroundPosition == "left100size"){
  99. document.body.style.backgroundPosition = "18px";
  100. document.querySelector('html').style.setProperty('height', '100%')
  101. }
  102. else if(backgroundPosition == "right100size"){
  103. document.body.style.backgroundPosition = "calc(100% - 18px)";
  104. document.querySelector('html').style.setProperty('height', '100%')
  105. }
  106. else{
  107. document.body.style.backgroundPosition = "calc(100% - 18px)";
  108. }
  109. }
  110. if(type != null){
  111. document.getElementById("header").classList.add(type);
  112. }
  113. });
  114. </script>
  115. <body >
  116. <!-- Animator taken from https://loading.io/css/ -->
  117. <!-- loading icons provided in this page are released under CC0 License -->
  118. <div class="outer">
  119. <div id="header" >
  120. </div>
  121. </div>
  122. </div>
  123. </body>
  124. </html>