Advertisement
kmajumder

Untitled

Apr 2nd, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 25.24 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <title>Call For Code India Virtual Hackathon 2020</title>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
  7. <link rel="stylesheet"
  8.      href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans">
  9. <link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-black.css">
  10. <link rel="stylesheet"
  11.      href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
  12.      integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
  13.      crossorigin="anonymous">
  14. <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
  15.        integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
  16.        crossorigin="anonymous"></script>
  17. <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
  18.        integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
  19.        crossorigin="anonymous"></script>
  20. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
  21.        integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
  22.        crossorigin="anonymous"></script>
  23.  
  24.  
  25. <link rel="stylesheet"
  26.      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  27.  
  28. <body>
  29.  
  30. <!-- Header -->
  31.  
  32. <div class="w3-bar w3-theme">
  33.     <a href="http://localhost:6003/" class="w3-bar-item w3-padding-16">
  34.         <img src="images/logo-in.png" width="100px" height="74px"></a>
  35.  
  36. </div>
  37.  
  38. <hr>
  39.  
  40. <!--<div class="w3-content w3-display-container">-->
  41.  
  42. <!--&lt;!&ndash; Slideshow container &ndash;&gt;-->
  43. <!--<div class="slideshow-container">-->
  44.  
  45. <!--&lt;!&ndash; Full-width images with number and caption text &ndash;&gt;-->
  46. <!--<div class="w3-content w3-display-container mySlides fade">-->
  47. <!--<img src="images/bg.png" style="width:100%">-->
  48. <!--<div class="text w3-display-bottomleft w3-container ">-->
  49. <!--<h2>Answer the call. <br> Build solutions that fight back.</h2>-->
  50. <!--<p style="max-width: 550px;"> Mitigate the impact of COVID-19-->
  51. <!--and climate change by creating sustainable solutions using-->
  52. <!--open source technology. Get the details on the 2020 Call-->
  53. <!--for Code Global Challenge, understand its two tracks, and-->
  54. <!--start building today.<br><br></p>-->
  55. <!--</div>-->
  56. <!--</div>-->
  57.  
  58. <!--<div class="w3-content w3-display-container mySlides fade">-->
  59. <!--<img src="images/bg1.jpg" style="width:100%">-->
  60. <!--<div class="text w3-display-bottomleft w3-container ">-->
  61. <!--<h2>Answer the call. <br> Build solutions that fight back.</h2>-->
  62. <!--<p style="max-width: 550px;"> Mitigate the impact of COVID-19-->
  63. <!--and climate change by creating sustainable solutions using-->
  64. <!--open source technology. Get the details on the 2020 Call-->
  65. <!--for Code Global Challenge, understand its two tracks, and-->
  66. <!--start building today.<br><br></p>-->
  67. <!--</div>-->
  68. <!--</div>-->
  69.  
  70. <!--</div>-->
  71. <div class="container">
  72.     <div id="carouselExampleIndicators" class="carousel slide"
  73.         data-ride="carousel">
  74.         <ol class="carousel-indicators">
  75.             <li data-target="#carouselExampleIndicators" data-slide-to="0"
  76.                class="active"></li>
  77.             <li data-target="#carouselExampleIndicators"
  78.                data-slide-to="1"></li>
  79.  
  80.         </ol>
  81.         <div class="carousel-inner carousel-fade">
  82.             <div class="carousel-item active">
  83.                 <img class="d-block w-100" src="images/bg.png"
  84.                     alt="First slide">
  85.                 <div class="carousel-caption d-none d-md-block">
  86.                     <h2>Answer the call. <br> Build solutions that fight back.
  87.                     </h2>
  88.                     <p>Mitigate the impact of COVID-19
  89.                         and climate change by creating sustainable solutions
  90.                         using open source technology.
  91.                         Get the details on the 2020 Call
  92.                         for Code Global Challenge, understand its two tracks,
  93.                         and
  94.                         start building today.</p>
  95.                 </div>
  96.             </div>
  97.             <div class="carousel-item">
  98.                 <img class="d-block w-100" src="images/bg1.jpg"
  99.                     alt="Third slide">
  100.                 <h2>
  101.                     <h2>
  102.                         <p></p>
  103.             </div>
  104.         </div>
  105.         <a class="carousel-control-prev" href="#carouselExampleIndicators"
  106.           role="button" data-slide="prev">
  107.             <span class="carousel-control-prev-icon" aria-hidden="true"></span>
  108.             <span class="sr-only">Previous</span>
  109.         </a>
  110.         <a class="carousel-control-next" href="#carouselExampleIndicators"
  111.           role="button" data-slide="next">
  112.             <span class="carousel-control-next-icon" aria-hidden="true"></span>
  113.             <span class="sr-only">Next</span>
  114.         </a>
  115.     </div>
  116. </div>
  117. <!--<div class="w3-center w3-section w3-large w3-text-white w3-display-middle"-->
  118. <!--style="width:100%">-->
  119. <!--<div class="w3-left w3-padding-left w3-hover-text-khaki"-->
  120. <!--onclick="showDivs(-1)">&#10094;-->
  121. <!--</div>-->
  122. <!--<div class="w3-right w3-padding-right w3-hover-text-khaki"-->
  123. <!--onclick="showDivs(1)">&#10095;-->
  124. <!--</div>-->
  125. <!--<span class="w3-badge demo w3-border w3-transparent w3-hover-white"-->
  126. <!--onclick="currentDiv(1)"></span>-->
  127. <!--<span class="w3-badge demo w3-border w3-transparent w3-hover-white"-->
  128. <!--onclick="currentDiv(2)"></span>-->
  129. <!--&lt;!&ndash; <span class="w3-badge demo w3-border w3-transparent w3-hover-white" onclick="currentDiv(3)"></span> &ndash;&gt;-->
  130. <!--</div>-->
  131. </div>
  132.  
  133.  
  134. <!-- Page content -->
  135. <div class="w3-content" style="max-width:2000px;margin-top:46px">
  136.  
  137.     <hr>
  138.     <div class="w3-container w3-content w3-center w3-padding-20"
  139.         style="max-width:800px" id="band">
  140.  
  141.         <h1 class="w3-center">Call for Code India Virtual Hack 2020</h1>
  142.  
  143.         <button onclick="myAccFunc('Demo1')"
  144.                class="w3-padding-16 w3-theme w3-button w3-block w3-left-align">
  145.             FAQ
  146.         </button>
  147.         <div id="Demo1" class="w3-hide">
  148.             <div class="w3-container">
  149.                 <h3 id="what-is-call-for-code-">What is Call for Code?</h3>
  150.                 <p>Call for Code asks innovators to create practical,
  151.                     effective, and high-quality applications based on one or
  152.                     more IBM Cloud™ services (for example, web, mobile, data,
  153.                     analytics, AI, IoT, or weather) that can have an immediate
  154.                     and lasting impact on humanitarian issues. Teams of
  155.                     developers, data scientists, designers, business analysts,
  156.                     subject matter experts and more are challenged to build
  157.                     solutions to mitigate the impact of COVID-19 and climate
  158.                     change. </p>
  159.                 <p>This year the competition will have two tracks. One track is
  160.                     for solutions that help halt and reverse the impact of
  161.                     climate change. The second track is for solutions to
  162.                     mitigate the impact of global pandemics like COVID-19 on
  163.                     communities around the world. Winning solutions are
  164.                     deployed in communities that need the most help.</p>
  165.                 <h3 id="what-is-call-for-code-india-virtual-hack-">What is Call
  166.                     for Code India Virtual Hack?</h3>
  167.                 <p>Every year as a part of the global challenge, we organize
  168.                     regional hackathons for India where teams are mentored by
  169.                     seasoned developer advocates from IBM. Similarly, this
  170.                     event is a subsidiary of the global challenge. But as you
  171.                     know with the recent increase in the number of cases for
  172.                     COVID-19 and light of the measures declared by our
  173.                     Government for a 21 days lockdown, we are taking the
  174.                     challenge to your doorstep virtually.</p>
  175.                 <h3 id="is-it-different-from-the-global-challenge-">Is it
  176.                     different from the Global Challenge?</h3>
  177.                 <p>No, it is a part of the global challenge.</p>
  178.                 <h3 id="how-will-it-affect-my-chances-of-participation-in-the-global-challenge-">
  179.                     How will it affect my chances of participation in the
  180.                     global challenge?</h3>
  181.                 <p>With the Call for Code India Hackathon, you will be able to
  182.                     get in touch with developers who are at the heart of
  183.                     technology every day, you will be able to refine and send
  184.                     in a matured submission with an increased chance of getting
  185.                     to the finish line.</p>
  186.                 <h3 id="will-willing-the-india-challenge-guarantee-a-regional-win-for-the-global-challenge-">
  187.                     Will willing the India challenge guarantee a regional win
  188.                     for the Global Challenge?</h3>
  189.                 <p>No. The India challenge though a subsidiary of the global
  190.                     challenge, it does not affect or change your submission to
  191.                     the global challenge.</p>
  192.                 <h3 id="will-i-need-to-do-a-separate-submission-to-the-global-challenge-">
  193.                     Will I need to do a separate submission to the global
  194.                     challenge?</h3>
  195.                 <p>As stated earlier, India challenge submissions will only be
  196.                     considered for the Call for Code India Virtual Hack. You
  197.                     will need to create a separate submission to the global
  198.                     challenge as given in the portal. <a
  199.                            href="https://callforcode.org/submit/">https://callforcode.org/submit/</a>
  200.                 </p>
  201.             </div>
  202.         </div>
  203.  
  204.         <!-- <button onclick="myAccFunc('Demo2')" class="w3-padding-16 w3-theme w3-button w3-block w3-left-align">Resources</button>
  205.        <div id="Demo2" class="w3-hide">
  206.          <div class="w3-container">
  207.                <p>Please refer to the <a href="https://developer.ibm.com/callforcode/technical-library/#start-coding?cm_mmc=OSocial_Blog-_-Audience+Developer_Developer+Conversation-_-WW_WW-_-cfc-2020-cfcorg-resources_ov75914&amp;cm_mmca1=000039JL&amp;cm_mmca2=10008917">global resources</a></p>
  208.          </div>
  209.        </div> -->
  210.  
  211.         <button onclick="myAccFunc('Demo3')"
  212.                class="w3-padding-16 w3-theme w3-button w3-block w3-left-align">
  213.             Timeline
  214.         </button>
  215.         <div id="Demo3" class="w3-hide">
  216.             <div class="w3-container">
  217.                 <ol>
  218.                     <li>Registration begins on April 1st, 2020, closes April
  219.                         7th.
  220.                     </li>
  221.                     <li>Technical webcast and enablement for registered
  222.                         participants on April 8th, 2020.
  223.                     </li>
  224.                     <li>Submissions for the hackathon begin on April 8th, 2020
  225.                         and end on April 15th, 2020.
  226.                     </li>
  227.                     <li>Evaluation begins on April 15th, results announced on
  228.                         April 20th, 2020.
  229.                     </li>
  230.                 </ol>
  231.             </div>
  232.         </div>
  233.  
  234.  
  235.         <button onclick="myAccFunc('Demo4')"
  236.                class="w3-padding-16 w3-theme w3-button w3-block w3-left-align">
  237.             Submission Guidelines
  238.         </button>
  239.         <div id="Demo4" class="w3-hide">
  240.             <div class="w3-container">
  241.                 <ol>
  242.                     <li>Submission name- Enter the name for your solution or
  243.                         team in about five words.
  244.                     </li>
  245.                     <li>Submission track- Select the track or tracks you want
  246.                         to submit to. You can submit the core application to
  247.                         both tracks, but you will have to submit it to each
  248.                         track independently, and the descriptions and other
  249.                         details should be tailored towards the specific track.
  250.                         (Climate Change or COVID-19)
  251.                     </li>
  252.                     <li>Short description- Describe your team’s solution in
  253.                         about ten words.
  254.                     </li>
  255.                     <li>Long description- Write about 500 words, or around one
  256.                         page of text, that covers the solution in more detail.
  257.                         Please include the real-world problem you identified,
  258.                         describe the technology project you created, and
  259.                         explain why it’s better than any existing solution. You
  260.                         can supply additional documentation in your source code
  261.                         repository link below
  262.                     </li>
  263.                     <li>Solution roadmap- Create a document or image that shows
  264.                         how mature your solution is today and how you would
  265.                         like to improve it in the future. This can include
  266.                         information on the business model, funding needs, and a
  267.                         sustainability plan.
  268.                     </li>
  269.                     <li>Link to publicly accessible GitHub repository- (or
  270.                         other location such as GitLab or Box) where the judges
  271.                         can download, examine, and evaluate the source code
  272.                         behind the solution. You can provide additional
  273.                         descriptions and diagrams in the repository. Hint:
  274.                         Review the judging criteria and rules: 2020 Call for
  275.                         Code Global Challenge.
  276.                     </li>
  277.                     <li>Link to a three-minute demo video- Record a demo of
  278.                         your project, upload it to YouTube or Vimeo and share
  279.                         the URL. Three minutes is the maximum length. You can
  280.                         link to longer versions from your source code
  281.                         repository. Keep in mind that non-technical judges may
  282.                         rely on this more than technical documentation.
  283.                     </li>
  284.                     <li>List of one or more IBM Cloud Services or IBM Systems
  285.                         used in the solution- Join the Challenge Community to
  286.                         get an IBM Cloud account. Your application can use
  287.                         additional data sets, libraries, and externally-hosted
  288.                         services to complement the IBM Cloud services or IBM
  289.                         Systems.
  290.                     </li>
  291.                     <li>Your email address and the email addresses of up to
  292.                         four additional team members- Each team member needs to
  293.                         accept the Participation Agreement. You can only be
  294.                         part of one team of up to 5 members, and your team can
  295.                         only submit one application.
  296.                     </li>
  297.                 </ol>
  298.                 <p>Additional details - The team leader who submitted the
  299.                     solution will receive a confirmation comment on the
  300.                     repository by the mentor team. The last entry before 12.00
  301.                     AM on date will be considered as the final submission.</p>
  302.             </div>
  303.         </div>
  304.  
  305.         <button onclick="myAccFunc('Demo5')"
  306.                class="w3-padding-16 w3-theme w3-button w3-block w3-left-align">
  307.             Judgement Criteria
  308.         </button>
  309.         <div id="Demo5" class="w3-hide">
  310.             <div class="w3-container">
  311.                 <p>Submissions will be judged equally across 4 primary criteria
  312.                     which evaluate whether the solution solves a real-world
  313.                     problem and uses technology effectively.</p>
  314.                 <ul>
  315.                     <li><p><em>Completeness and transferability</em>
  316.                         How fully has the idea been implemented? Can it achieve
  317.                         an impact on the field? Can it be transferred
  318.                         elsewhere?</p>
  319.                     </li>
  320.                     <li><p><em>Effectiveness and efficiency</em>
  321.                         Does the solution address a high priority area? Does it
  322.                         achieve its goal effectively and efficiently? Can it
  323.                         scale? </p>
  324.                     </li>
  325.                     <li><p><em>Design and usability</em>
  326.                         How good are the design, user experience, and ease of
  327.                         use of the solution? How quickly can it be put to use?
  328.                     </p>
  329.                     </li>
  330.                     <li><p><em>Creativity and innovation</em>
  331.                         How unique was the approach to solving a long-standing
  332.                         or previously intractable problem?</p>
  333.                     </li>
  334.                 </ul>
  335.             </div>
  336.         </div>
  337.  
  338.         <button onclick="myAccFunc('Demo6')"
  339.                class="w3-padding-16 w3-theme w3-button w3-block w3-left-align">
  340.             Rules
  341.         </button>
  342.         <div id="Demo6" class="w3-hide">
  343.             <div class="w3-container">
  344.                 <ol>
  345.                     <li>Submissions – Submissions must use one or more <a
  346.                            href="https://callforcode.org/participation-agreement">IBM
  347.                         Cloud services</a> or <a
  348.                            href="https://ibm.com/systems">IBM Systems</a>. The
  349.                         use of sponsor or affiliate APIs and open source
  350.                         libraries is also encouraged.
  351.                     </li>
  352.                     <li>Team Size – Teams of up to five (5) participants, each
  353.                         at least 18 years old, are allowed.
  354.                     </li>
  355.                     <li>Joining teams –</li>
  356.                     <li>A participant may not be part of multiple teams.</li>
  357.                     <li>Participation agreement –All team members must have
  358.                         accepted the <a
  359.                                href="https://callforcode.org/participation-agreement">2020
  360.                             Participation Agreement</a> at the time they submit
  361.                         to be eligible.
  362.                     </li>
  363.                     <li>Application standards – Applications must be new and
  364.                         built for the 2020 competition, but they may use code
  365.                         that was open-sourced and publicly available to all
  366.                         other participants as of February 26, 2020.
  367.                     </li>
  368.                     <li>Winners – Winning teams will be subject to a code
  369.                         review after submissions close.
  370.                     </li>
  371.                 </ol>
  372.             </div>
  373.         </div>
  374.  
  375.     </div>
  376.  
  377.     <hr>
  378.  
  379.  
  380.     <!-- COVID-19 Resources -->
  381.     <div class="w3-black" id="tour">
  382.         <div class="w3-container w3-content w3-padding-64"
  383.             style="max-width:800px">
  384.             <h2 class="w3-wide w3-center">COVID-19 Resources</h2>
  385.             <!-- <p class="w3-opacity w3-center"><i>Remember to book your tickets!</i></p><br>  -->
  386.  
  387.             <div class="w3-row-padding w3-padding-32" style="margin:0 -16px">
  388.                 <div class="w3-third w3-margin-bottom">
  389.                     <img src="/images/crisis.jpg" alt="New York"
  390.                         style="width:100%" class="w3-hover-opacity">
  391.                     <div class="w3-container w3-white">
  392.                         <p>Crisis communications</p>
  393.  
  394.                         <button class="w3-button w3-black w3-margin-bottom"
  395.                                onclick="document.location = 'https://developer.ibm.com/callforcode/getstarted/covid-19/crisis-communication/'">
  396.                             See more
  397.                         </button>
  398.                     </div>
  399.                 </div>
  400.                 <div class="w3-third w3-margin-bottom">
  401.                     <img src="/images/remote.jpg" alt="Paris"
  402.                         style="width:100%" class="w3-hover-opacity">
  403.                     <div class="w3-container w3-white">
  404.                         <p>Remote Education</p>
  405.  
  406.                         <button class="w3-button w3-black w3-margin-bottom"
  407.                                onclick="document.location ='https://developer.ibm.com/callforcode/getstarted/covid-19/remote-education/'">
  408.                             See more
  409.                         </button>
  410.                     </div>
  411.                 </div>
  412.                 <div class="w3-third w3-margin-bottom">
  413.                     <img src="/images/community.jpg" alt="San Francisco"
  414.                         style="width:100%" class="w3-hover-opacity">
  415.                     <div class="w3-container w3-white">
  416.                         <p>Community Coorperation</p>
  417.  
  418.                         <button class="w3-button w3-black w3-margin-bottom"
  419.                                onclick="document.location ='https://developer.ibm.com/callforcode/getstarted/covid-19/community-cooperation/'">
  420.                             See more
  421.                         </button>
  422.                     </div>
  423.                 </div>
  424.             </div>
  425.         </div>
  426.     </div>
  427. </div>
  428.  
  429. <hr>
  430.  
  431. <!-- Climate Change Resources -->
  432. <div class="w3-black" id="tour">
  433.     <div class="w3-container w3-content w3-padding-64" style="max-width:800px">
  434.         <h2 class="w3-wide w3-center">Climate Change Resources</h2>
  435.         <!-- <p class="w3-opacity w3-center"><i>Remember to book your tickets!</i></p><br>  -->
  436.  
  437.         <div class="w3-row-padding w3-padding-32" style="margin:0 -16px">
  438.             <div class="w3-third w3-margin-bottom">
  439.                 <img src="/images/water.png" alt="New York" style="width:100%"
  440.                     class="w3-hover-opacity">
  441.                 <div class="w3-container w3-white">
  442.                     <p>Water sustainability</p>
  443.  
  444.                     <button class="w3-button w3-black w3-margin-bottom"
  445.                            onclick="document.location = 'https://developer.ibm.com/callforcode/getstarted/climate-change/water-sustainability'">
  446.                         See more
  447.                     </button>
  448.                 </div>
  449.             </div>
  450.             <div class="w3-third w3-margin-bottom">
  451.                 <img src="/images/energy.png" alt="Paris" style="width:100%"
  452.                     class="w3-hover-opacity">
  453.                 <div class="w3-container w3-white">
  454.                     <p>Energy sustainability</p>
  455.  
  456.                     <button class="w3-button w3-black w3-margin-bottom"
  457.                            onclick="document.location ='https://developer.ibm.com/callforcode/getstarted/climate-change/energy-sustainability'">
  458.                         See more
  459.                     </button>
  460.                 </div>
  461.             </div>
  462.             <div class="w3-third w3-margin-bottom">
  463.                 <img src="/images/disaster.png" alt="San Francisco"
  464.                     style="width:100%" class="w3-hover-opacity">
  465.                 <div class="w3-container w3-white">
  466.                     <p>Disaster resiliency</p>
  467.  
  468.                     <button class="w3-button w3-black w3-margin-bottom"
  469.                            onclick="document.location ='https://developer.ibm.com/callforcode/getstarted/climate-change/disaster-resiliency'">
  470.                         See more
  471.                     </button>
  472.                 </div>
  473.             </div>
  474.         </div>
  475.     </div>
  476. </div>
  477. </div>
  478.  
  479. <!-- The Contact Section -->
  480.  
  481.  
  482. <!-- End Page Content -->
  483.  
  484.  
  485. <!-- Image of location/map -->
  486. <!-- <img src="/w3images/map.jpg" class="w3-image w3-greyscale-min" style="width:100%"> -->
  487.  
  488. <!-- Footer -->
  489. <footer class="w3-container w3-padding-64 w3-center w3-opacity w3-light-grey w3-xlarge">
  490.     <i class="fa fa-facebook-official w3-hover-opacity href=" https://www.facebook.com/IBMDeveloper"
  491.    "></i>
  492.     <i class="fa fa-twitter w3-hover-opacity href=" https://twitter.com/IBMDeveloper""></i>
  493.     <i class="fa fa-linkedin w3-hover-opacity href=" https://www.linkedin.com/showcase/ibmdeveloper/"
  494.    "></i>
  495. </footer>
  496.  
  497. <script>
  498.  
  499.  
  500. // Used to toggle the menu on small screens when clicking on the menu button
  501. function myFunction() {
  502.   var x = document.getElementById("navDemo");
  503.   if (x.className.indexOf("w3-show") == -1) {
  504.     x.className += " w3-show";
  505.   } else {
  506.     x.className = x.className.replace(" w3-show", "");
  507.   }
  508. }
  509.  
  510. // When the user clicks anywhere outside of the modal, close it
  511. var modal = document.getElementById('ticketModal');
  512. window.onclick = function(event) {
  513.   if (event.target == modal) {
  514.     modal.style.display = "none";
  515.   }
  516. }
  517.  
  518.  
  519. // Accordions
  520. function myAccFunc(id) {
  521.   var x = document.getElementById(id);
  522.   if (x.className.indexOf("w3-show") == -1) {
  523.     x.className += " w3-show";
  524.   } else {
  525.     x.className = x.className.replace(" w3-show", "");
  526.   }
  527. }
  528.  
  529. // Slideshow
  530. var slideIndex = 1;
  531. showDivs(slideIndex);
  532.  
  533. function currentDiv(n) {
  534.   showDivs(slideIndex = n);
  535. }
  536.  
  537. function showDivs(n) {
  538.   var i;
  539.   var x = document.getElementsByClassName("mySlides");
  540.   var dots = document.getElementsByClassName("demo");
  541.   if (n > x.length) {slideIndex = 1}
  542.   if (n < 1) {slideIndex = x.length} ;
  543.  for (i = 0; i < x.length; i++) {
  544.     x[i].style.display = "none";
  545.  }
  546.  for (i = 0; i < dots.length; i++) {
  547.     dots[i].className = dots[i].className.replace(" w3-white", "");
  548.  }
  549.  x[slideIndex-1].style.display = "block";
  550.  dots[slideIndex-1].className += " w3-white";
  551. }
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558. </script>
  559.  
  560.  
  561. </body>
  562. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement