index.xsl 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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 Secchione.
  8. Secchione 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. Secchione 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 Secchione. If not, see <https://www.gnu.org/licenses/>.
  18. index.xsl
  19. Secchione 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 lives, works, contacts, ..</TITLE>
  27. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
  28. <meta name="description" content="Welcome to my personal website!"/>
  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.1.0.min.js" type="text/javascript"></script>
  32. <script language="text/javascript">
  33. <![CDATA[
  34. ]]>
  35. </script>
  36. <style>
  37. .header {
  38. height: 65px;
  39. vertical-align: middle;
  40. border-bottom: 1px solid #2c2f34;
  41. padding: 8px;
  42. }
  43. </style>
  44. </HEAD>
  45. <BODY style="background-color:#FFFFFF">
  46. <div id="HCsplash" style="padding-top: 160px; text-align:center;color:#ffffff;display:none;">
  47. <div id="myh1"><H1>Secchione</H1></div><br/>
  48. <img src="/res/logo.png" style="width:310px;"/>
  49. </div>
  50. <div class="header">
  51. <a id="burger-menu" href="#" style="display:none;"><img src="/res/burger-menu2.png" style="width:58px;"/></a><a id="ahome" href="http://secchi.one" target="_blank" style="color:black; text-decoration: none;"><img id="logo-secc" src="/res/logo.png" style="width:48px;vertical-align:middle;"/>&#8201; Secchione</a>&#8201; &#8201; &#8201; &#8201; &#8201; &#8201; &#8201;<a id="agithub" href="https://github.com/par7133/Secchione" style="color:#000000"><span style="color:#119fe2">on</span> github</a>&#8201;&#8201;&#8201;&#8201;&#8201;&#8201;<a id="afeedback" href="mailto:info@secchi.one" 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</a>
  52. </div>
  53. <br/><br/>
  54. <div style="max-height:350px;" align="center">
  55. <table border="0" style="width:100%;height:349px;">
  56. <tr>
  57. <td halign="center" style="height:300px">
  58. <p align="center">
  59. <a>
  60. <xsl:attribute name="target">_blank</xsl:attribute>
  61. <xsl:attribute name="href"><xsl:value-of select="LINK[TYPE='personal-image']/ADDRESS"/></xsl:attribute>
  62. <img >
  63. <xsl:attribute name="border">0</xsl:attribute>
  64. <xsl:attribute name="src"><xsl:value-of select="LINK[TYPE='personal-image']/IMAGE/ADDRESS"/></xsl:attribute>
  65. <xsl:attribute name="width"><xsl:value-of select="LINK[TYPE='personal-image']/IMAGE/WIDTH"/></xsl:attribute>
  66. <xsl:attribute name="height"><xsl:value-of select="LINK[TYPE='personal-image']/IMAGE/HEIGHT"/></xsl:attribute>
  67. </img>
  68. </a>
  69. </p>
  70. <p align="center">
  71. <xsl:for-each select="LINK[TYPE='resume']">
  72. <xsl:sort select="INDEX" data-type="number" order="ascending"/>
  73. <H1><a>
  74. <xsl:attribute name="target">_blank</xsl:attribute>
  75. <xsl:attribute name="style">font-family: sans-serif; color: #000000</xsl:attribute>
  76. <xsl:attribute name="href"><xsl:value-of select="ADDRESS"/></xsl:attribute>
  77. <xsl:attribute name="title"><xsl:value-of select="TITLE"/></xsl:attribute>
  78. <xsl:value-of select="TEXT"/>
  79. </a></H1>
  80. </xsl:for-each>
  81. <br/><br/>
  82. <div style="max-width: 300px; height: fit-content; font-size:11px;">
  83. <!-- short description -->
  84. </div>
  85. </p>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td valign="top" align="center" style="height:30%">
  90. <xsl:for-each select="LINK[TYPE='footer']">
  91. <xsl:sort select="INDEX" data-type="number" order="ascending"/>
  92. <xsl:choose>
  93. <xsl:when test="TEXT!=''">
  94. <a>
  95. <xsl:attribute name="target">_blank</xsl:attribute>
  96. <xsl:attribute name="style">font-family: sans-serif; color: #a01406; font-size: 9px</xsl:attribute>
  97. <xsl:attribute name="href"><xsl:value-of select="ADDRESS"/></xsl:attribute>
  98. <xsl:attribute name="title"><xsl:value-of select="TITLE"/></xsl:attribute>
  99. <xsl:value-of select="TEXT"/>
  100. </a>&#8201;
  101. </xsl:when>
  102. <xsl:otherwise>
  103. <a>
  104. <xsl:attribute name="target">_blank</xsl:attribute>
  105. <xsl:attribute name="href"><xsl:value-of select="ADDRESS"/></xsl:attribute>
  106. <xsl:attribute name="title"><xsl:value-of select="TITLE"/></xsl:attribute>
  107. <img >
  108. <xsl:attribute name="border">0</xsl:attribute>
  109. <xsl:attribute name="src"><xsl:value-of select="IMAGE/ADDRESS"/></xsl:attribute>
  110. <xsl:attribute name="width"><xsl:value-of select="IMAGE/WIDTH"/></xsl:attribute>
  111. <xsl:attribute name="height"><xsl:value-of select="IMAGE/HEIGHT"/></xsl:attribute>
  112. </img>
  113. </a>&#8201;
  114. </xsl:otherwise>
  115. </xsl:choose>
  116. </xsl:for-each>
  117. <br/><br/>
  118. <br/><br/>
  119. <SPAN STYLE="font-family: sans-serif; color: #000000; font-size: 9px;">
  120. <![CDATA[
  121. < Copyrights
  122. ]]>
  123. </SPAN>
  124. <a>
  125. <xsl:attribute name="target">_blank</xsl:attribute>
  126. <xsl:attribute name="style">font-family: sans-serif; color: #000000; font-size: 9px</xsl:attribute>
  127. <xsl:attribute name="href"><xsl:value-of select="LINK[TYPE='sponsor']/ADDRESS"/></xsl:attribute>
  128. <xsl:attribute name="title"><xsl:value-of select="LINK[TYPE='sponsor']/TITLE"/></xsl:attribute>
  129. <xsl:value-of select="LINK[TYPE='sponsor']/TEXT"/>
  130. </a>
  131. <SPAN STYLE="font-family: sans-serif; color: #000000; font-size: 9px;">
  132. <![CDATA[
  133. 2021, 2024 - All rights reserved >
  134. ]]>
  135. </SPAN>
  136. <br/><br/>
  137. <a>
  138. <xsl:attribute name="target">_blank</xsl:attribute>
  139. <xsl:attribute name="href"><xsl:value-of select="LINK[TYPE='sponsor']/ADDRESS"/></xsl:attribute>
  140. <xsl:attribute name="title"><xsl:value-of select="LINK[TYPE='sponsor']/TITLE"/></xsl:attribute>
  141. <img >
  142. <xsl:attribute name="border">0</xsl:attribute>
  143. <xsl:attribute name="src"><xsl:value-of select="LINK[TYPE='sponsor']/IMAGE/ADDRESS"/></xsl:attribute>
  144. <xsl:attribute name="width"><xsl:value-of select="LINK[TYPE='sponsor']/IMAGE/WIDTH"/></xsl:attribute>
  145. <xsl:attribute name="height"><xsl:value-of select="LINK[TYPE='sponsor']/IMAGE/HEIGHT"/></xsl:attribute>
  146. </img>
  147. </a>
  148. </td>
  149. </tr>
  150. </table>
  151. </div>
  152. <script language="text/javascript">
  153. <![CDATA[
  154. function hideTitle() {
  155. $("#myh1").hide("slow");
  156. }
  157. function startApp() {
  158. $("#HCsplash").hide("slow");
  159. $(document.body).css("background","#ffffff");
  160. $("#frmHC").show();
  161. }
  162. window.addEventListener("load", function() {
  163. $(document.body).css("background","#000000");
  164. $("#HCsplash").show("slow");
  165. setTimeout("hideTitle()", 2000);
  166. setTimeout("startApp()", 4000);
  167. }, true);
  168. ]]>
  169. </script>
  170. <br/><br/><br/><br/><br/>
  171. </BODY>
  172. </HTML>
  173. </xsl:template>
  174. </xsl:stylesheet>