Difference between revisions of "Widget:Homepage"

From LINKS Community Center
Jump to: navigation, search
Line 258: Line 258:
 
         </div>
 
         </div>
  
         <div id="snippets"></div>
+
         <div id="hp-main">
 +
            <div id="snippets"></div>
  
        <div id="hp-main">
 
 
             <form class="hp-search form-inline w-100" onsubmit="search(event)">
 
             <form class="hp-search form-inline w-100" onsubmit="search(event)">
 
                 <input id="hp-search-input" class="form-control form-control-lg flex-grow-1" type="text"
 
                 <input id="hp-search-input" class="form-control form-control-lg flex-grow-1" type="text"
Line 499: Line 499:
 
                 const snippet = snippets[index];
 
                 const snippet = snippets[index];
 
                 let el = '<a class="snippet ' + snippet.product + '" href="' + snippet.action + '">';
 
                 let el = '<a class="snippet ' + snippet.product + '" href="' + snippet.action + '">';
 +
                    el += '<div class="snippet-inner">';
 
                     el += '<div class="snippet-header">' + snippet.title + '</div>';
 
                     el += '<div class="snippet-header">' + snippet.title + '</div>';
 
                     el += '<div class="snippet-body">' + snippet.body + '</div>';
 
                     el += '<div class="snippet-body">' + snippet.body + '</div>';
                     el += '</a>';
+
                     el += '</div></a>';
 
                 container.innerHTML += el;
 
                 container.innerHTML += el;
 
             }
 
             }
 
         </script>
 
         </script>
 
</includeonly>
 
</includeonly>

Revision as of 17:08, 27 October 2023

Second version of the LINKS Community Center homepage.
Do not modify!