index.xsl 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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. </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>Secchione</H1></div><br/>
  40. <img src="/res/logo.png" style="width:310px;"/>
  41. </div>
  42. <div class="header">
  43. <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;"/>&#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>
  44. </div>
  45. <br/><br/><br/>
  46. <div style="max-height:450px;" align="center">
  47. <table border="0" width="100%" height="449px">
  48. <tr>
  49. <td height="70%" align="center">
  50. <p align="center">
  51. <a>
  52. <xsl:attribute name="target">_blank</xsl:attribute>
  53. <xsl:attribute name="href"><xsl:value-of select="LINK[TYPE='personal-image']/ADDRESS"/></xsl:attribute>
  54. <img >
  55. <xsl:attribute name="border">0</xsl:attribute>
  56. <xsl:attribute name="src"><xsl:value-of select="LINK[TYPE='personal-image']/IMAGE/ADDRESS"/></xsl:attribute>
  57. <xsl:attribute name="width"><xsl:value-of select="LINK[TYPE='personal-image']/IMAGE/WIDTH"/></xsl:attribute>
  58. <xsl:attribute name="height"><xsl:value-of select="LINK[TYPE='personal-image']/IMAGE/HEIGHT"/></xsl:attribute>
  59. </img>
  60. </a>
  61. </p>
  62. <p align="center">
  63. <xsl:for-each select="LINK[TYPE='resume']">
  64. <xsl:sort select="INDEX" data-type="number" order="ascending"/>
  65. <H1><a>
  66. <xsl:attribute name="target">_blank</xsl:attribute>
  67. <xsl:attribute name="style">font-family: sans-serif; color: #000000</xsl:attribute>
  68. <xsl:attribute name="href"><xsl:value-of select="ADDRESS"/></xsl:attribute>
  69. <xsl:attribute name="title"><xsl:value-of select="TITLE"/></xsl:attribute>
  70. <xsl:value-of select="TEXT"/>
  71. </a></H1>
  72. </xsl:for-each>
  73. <br/><br/>
  74. <div style="max-width: 300px; height: 50px; max-height: 50px; font-size:11px;">
  75. <!-- short description -->
  76. </div>
  77. </p>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td valign="top" align="center">
  82. <br/><br/>
  83. <xsl:for-each select="LINK[TYPE='footer']">
  84. <xsl:sort select="INDEX" data-type="number" order="ascending"/>
  85. <xsl:choose>
  86. <xsl:when test="TEXT!=''">
  87. <a>
  88. <xsl:attribute name="target">_blank</xsl:attribute>
  89. <xsl:attribute name="style">font-family: sans-serif; color: #a01406; font-size: 9px</xsl:attribute>
  90. <xsl:attribute name="href"><xsl:value-of select="ADDRESS"/></xsl:attribute>
  91. <xsl:attribute name="title"><xsl:value-of select="TITLE"/></xsl:attribute>
  92. <xsl:value-of select="TEXT"/>
  93. </a>&#8201;
  94. </xsl:when>
  95. <xsl:otherwise>
  96. <a>
  97. <xsl:attribute name="target">_blank</xsl:attribute>
  98. <xsl:attribute name="href"><xsl:value-of select="ADDRESS"/></xsl:attribute>
  99. <xsl:attribute name="title"><xsl:value-of select="TITLE"/></xsl:attribute>
  100. <img >
  101. <xsl:attribute name="border">0</xsl:attribute>
  102. <xsl:attribute name="src"><xsl:value-of select="IMAGE/ADDRESS"/></xsl:attribute>
  103. <xsl:attribute name="width"><xsl:value-of select="IMAGE/WIDTH"/></xsl:attribute>
  104. <xsl:attribute name="height"><xsl:value-of select="IMAGE/HEIGHT"/></xsl:attribute>
  105. </img>
  106. </a>&#8201;
  107. </xsl:otherwise>
  108. </xsl:choose>
  109. </xsl:for-each>
  110. <br/><br/>
  111. <br/><br/>
  112. <SPAN STYLE="font-family: sans-serif; color: #000000; font-size: 9px;">
  113. <![CDATA[
  114. < Copyrights
  115. ]]>
  116. </SPAN>
  117. <a>
  118. <xsl:attribute name="target">_blank</xsl:attribute>
  119. <xsl:attribute name="style">font-family: sans-serif; color: #000000; font-size: 9px</xsl:attribute>
  120. <xsl:attribute name="href"><xsl:value-of select="LINK[TYPE='sponsor']/ADDRESS"/></xsl:attribute>
  121. <xsl:attribute name="title"><xsl:value-of select="LINK[TYPE='sponsor']/TITLE"/></xsl:attribute>
  122. <xsl:value-of select="LINK[TYPE='sponsor']/TEXT"/>
  123. </a>
  124. <SPAN STYLE="font-family: sans-serif; color: #000000; font-size: 9px;">
  125. <![CDATA[
  126. 2021, 2024 - All rights reserved >
  127. ]]>
  128. </SPAN>
  129. <br/><br/>
  130. <a>
  131. <xsl:attribute name="target">_blank</xsl:attribute>
  132. <xsl:attribute name="href"><xsl:value-of select="LINK[TYPE='sponsor']/ADDRESS"/></xsl:attribute>
  133. <xsl:attribute name="title"><xsl:value-of select="LINK[TYPE='sponsor']/TITLE"/></xsl:attribute>
  134. <img >
  135. <xsl:attribute name="border">0</xsl:attribute>
  136. <xsl:attribute name="src"><xsl:value-of select="LINK[TYPE='sponsor']/IMAGE/ADDRESS"/></xsl:attribute>
  137. <xsl:attribute name="width"><xsl:value-of select="LINK[TYPE='sponsor']/IMAGE/WIDTH"/></xsl:attribute>
  138. <xsl:attribute name="height"><xsl:value-of select="LINK[TYPE='sponsor']/IMAGE/HEIGHT"/></xsl:attribute>
  139. </img>
  140. </a>
  141. </td>
  142. </tr>
  143. </table>
  144. </div>
  145. <script language="text/javascript">
  146. <![CDATA[
  147. function hideTitle() {
  148. $("#myh1").hide("slow");
  149. }
  150. function startApp() {
  151. $("#HCsplash").hide("slow");
  152. $(document.body).css("background","#ffffff");
  153. $("#frmHC").show();
  154. }
  155. window.addEventListener("load", function() {
  156. $(document.body).css("background","#000000");
  157. $("#HCsplash").show("slow");
  158. setTimeout("hideTitle()", 2000);
  159. setTimeout("startApp()", 4000);
  160. }, true);
  161. ]]>
  162. </script>
  163. <br/><br/><br/><br/><br/>
  164. </BODY>
  165. </HTML>
  166. </xsl:template>
  167. </xsl:stylesheet>