index.xsl 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  2. xmlns:xlink="http://www.w3.org/1999/xlink"
  3. version="1.0">
  4. <xsl:output method="html" version="4"/>
  5. <!-- File name: index.xsl
  6. Copyright 2021, 2024 5 Mode
  7. This file is part of Shifu Page.
  8. Shifu Page is free software: you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation, either version 3 of the License, or
  11. (at your option) any later version.
  12. Shifu Page is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16. You should have received a copy of the GNU General Public License
  17. along with Shifu Page. If not, see <https://www.gnu.org/licenses/>.
  18. index.xsl
  19. Shifu Page stylesheet.
  20. @author Daniele Bonini <my25mb@aol.com>
  21. @copyrights (c) 2021, 2024, 5 Mode
  22. -->
  23. <xsl:template match="CONTENT">
  24. <HTML>
  25. <HEAD>
  26. <TITLE>My artisans with desc and contact, ..</TITLE>
  27. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
  28. <meta name="description" content="Welcome to my artisan page!"/>
  29. <link rel="shortcut icon" href="/res/favicon.ico"/>
  30. <link href="/css/style.css" type="text/css" rel="stylesheet"></link>
  31. <script src="/js/jquery-3.6.0.min.js" type="text/javascript"></script>
  32. <script>
  33. <![CDATA[
  34. ]]>
  35. </script>
  36. </HEAD>
  37. <BODY style="background-color:#FFFFFF">
  38. <div id="HCsplash" style="padding-top: 160px; text-align:center;color:#ffffff;display:none;">
  39. <div id="myh1"><H1>Shifu Page</H1></div><br/>
  40. <img src="/res/logo.png" style="width:310px;"/>
  41. </div>
  42. <div id="content" style="max-height:350px;display:none;" align="center">
  43. <div class="header">
  44. <a id="burger-menu" href="#" style="display:none;"><img src="/res/burger-menu2.png" style="width:58px;"/></a><a id="ahome" href="/" target="_blank" style="color:black; text-decoration: none;"><img id="logo-secc" src="/res/logo.png" style="width:48px;vertical-align:middle;"/>&#8201; Shifu Page</a>&#8201; &#8201; &#8201; &#8201; &#8201; &#8201; &#8201;<a id="agithub" href="https://github.com/par7133/Shifu" style="color:#000000"><span style="color:#119fe2">on</span> github</a>&#8201; &#8201; &#8201; &#8201; &#8201; &#8201; <a id="afeedback" href="mailto:posta@elettronica.lol" style="color:#000000"><span style="color:#119fe2">for</span> feedback</a>&#8201; &#8201; &#8201; &#8201; &#8201; <a id="asupport" href="tel:+39-331-4029415" style="font-size:13px;background-color:#15c60b;border:2px solid #15c60b;color:black;height:27px;text-decoration:none;">&#8201; &#8201; get support&#8201; &#8201; </a>
  45. </div>
  46. <br/><br/><br/><br/><br/>
  47. <table border="0" style="width:80%; max-width:550px;">
  48. <xsl:for-each select="LINK[TYPE='artisan']">
  49. <xsl:sort select="INDEX" data-type="number" order="ascending"/>
  50. <tr>
  51. <td halign="center" style="max-height:120px; text-align:left; border-bottom: 3px solid transparent;">
  52. <p align="left" style="border: 1px solid lightgray; border-bottom: 0px solid lightgray; padding:10px; font-size:11px;">
  53. <img>
  54. <xsl:attribute name="border">0</xsl:attribute>
  55. <xsl:attribute name="src"><xsl:value-of select="IMAGE/ADDRESS"/></xsl:attribute>
  56. <xsl:attribute name="width"><xsl:value-of select="IMAGE/WIDTH"/></xsl:attribute>
  57. <xsl:attribute name="height">120px</xsl:attribute>
  58. <xsl:attribute name="style">float:left;margin:12px;</xsl:attribute>
  59. </img>
  60. <br/>
  61. <b>Name:</b>&#8201; &#8201;<i><xsl:value-of select="NAME"/></i><br/>
  62. <b>Gender:</b>&#8201; &#8201;<xsl:value-of select="GENDER"/><br/>
  63. <b>Mansion:</b>&#8201; &#8201;<xsl:value-of select="PROFESSION"/><br/>
  64. <br/>
  65. <xsl:value-of select="DESC"/>&#8201;
  66. <a>
  67. <xsl:attribute name="target">_self</xsl:attribute>
  68. <xsl:attribute name="href"><xsl:value-of select="URI"/></xsl:attribute>
  69. Contact
  70. </a>
  71. <br/><br/>
  72. </p>
  73. </td>
  74. </tr>
  75. </xsl:for-each>
  76. <tr>
  77. <td halign="center" style="text-align:center;">
  78. <br/><br/>
  79. <br/><br/>
  80. <SPAN STYLE="font-family: sans-serif; color: #000000; font-size: 9px;">
  81. <![CDATA[
  82. Copyrights
  83. ]]>
  84. </SPAN>
  85. <a>
  86. <xsl:attribute name="target">_blank</xsl:attribute>
  87. <xsl:attribute name="style">font-family: sans-serif; color: #000000; font-size: 9px</xsl:attribute>
  88. <xsl:attribute name="href">http://5mode.com</xsl:attribute>
  89. <xsl:attribute name="title">5 Mode</xsl:attribute>
  90. 5 Mode
  91. </a>
  92. <SPAN STYLE="font-family: sans-serif; color: #000000; font-size: 9px;">
  93. <![CDATA[
  94. 2021, 2024 - All rights reserved
  95. ]]>
  96. </SPAN>
  97. <br/><br/>
  98. <a>
  99. <xsl:attribute name="target">_blank</xsl:attribute>
  100. <xsl:attribute name="href">http://5mode.com</xsl:attribute>
  101. <xsl:attribute name="title">5 Mode</xsl:attribute>
  102. <img >
  103. <xsl:attribute name="border">0</xsl:attribute>
  104. <xsl:attribute name="src">/res/5mode.png</xsl:attribute>
  105. <xsl:attribute name="width">80</xsl:attribute>
  106. <xsl:attribute name="height"></xsl:attribute>
  107. </img>
  108. </a>
  109. <br/><br/><br/><br/><br/><br/><br/><br/><br/>
  110. </td>
  111. </tr>
  112. </table>
  113. </div>
  114. <script>
  115. <![CDATA[
  116. function hideTitle() {
  117. $("#myh1").hide("slow");
  118. }
  119. function startApp() {
  120. $("#HCsplash").hide("slow");
  121. $(document.body).css("background","#ffffff");
  122. $("#content").show();
  123. }
  124. window.addEventListener("load", function() {
  125. $(document.body).css("background","#ffffff");
  126. $("#HCsplash").css("color","#000000");
  127. $("#HCsplash").show("slow");
  128. setTimeout("hideTitle()", 2000);
  129. setTimeout("startApp()", 4000);
  130. }, true);
  131. window.addEventListener("load", function() {
  132. if (window.innerWidth<850) {
  133. $("p").css("font-size","1.5vw");
  134. } else {
  135. $("p").css("font-size","11px");
  136. }
  137. }, true);
  138. window.addEventListener("resize", function() {
  139. if (window.innerWidth<850) {
  140. $("p").css("font-size","1.5vw");
  141. } else {
  142. $("p").css("font-size","11px");
  143. }
  144. }, true);
  145. ]]>
  146. </script>
  147. </BODY>
  148. </HTML>
  149. </xsl:template>
  150. </xsl:stylesheet>