Last active
August 5, 2019 18:43
-
-
Save ottograjeda/afee2e1878e2d69f8e4fda587526bfd1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--! | |
Filename: gist.6a = dynamicPage.html | |
Built for performance; is responsive & small in file size. | |
Above means: all comments+whitespace removed. CS/JS minified. | |
Toolbox = Gulp, Plain JavaScript & more. Hosted on Google Cloud. | |
Copyright (c) 2018-2019 Otto Grajeda. All rights reserved. | |
Contact info: [email protected]. See additional disclaimers below. | |
NOTE 1: Code is NOT Open Source or Production Ready. It is working sample code. | |
NOTE 2: For support or code questions search keywords @ Google or Stack Overflow. | |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - | |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | |
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | |
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | |
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - | |
--> | |
<blog> | |
<!-- NOTE: Because GitHub uses JS to process Gists, the JS template below may be dis colored --> | |
<section id="aHero" class="leading hero"> | |
<script id="template_aHero" type="text/x-dot-template"> | |
<img class="text-centered" src="../../images/not_supported.svg" | |
srcset="{{=dot.baseurl}}{{=dot.articlephoto}}_s320.jpg 320w, {{=dot.baseurl}}{{=dot.articlephoto}}_s414.jpg 414w, | |
{{=dot.baseurl}}{{=dot.articlephoto}}_s768.jpg 768w, {{=dot.baseurl}}{{=dot.articlephoto}}_s900.jpg 900w, | |
{{=dot.baseurl}}{{=dot.articlephoto}}_s1366.jpg 1366w" | |
sizes="(max-width: 321px) 320px, | |
(max-width: 415px) 414px, | |
(max-width: 769px) 768px, | |
(max-width: 901px) 900px, | |
(max-width: 1367px) 1366px" | |
alt="{{=dot.imagealt}}" onerror="this.className='imgError text-centered'; this.src='../../images/not_available.svg';"/> | |
</script> | |
</section> | |
<div id="aHeading" class="featuresCenter"> | |
<div id="theNotice" class="showError hide">Error: Network error. Please try again later. Thanks</div> | |
<script id="template_aHeading" type="text/x-dot-template"> | |
<h1>{{=dot.title}}</h1> | |
<h2>{{=dot.headline}}</h2> | |
</script> | |
</div> | |
<section id="aContent" class=""> | |
<div class=""> | |
<script id="template_aContent" type="text/x-dot-template"> | |
{{ for(var n in dot) { }} | |
<p>{{=dot[n]["content"] }}</p> | |
{{ } }} | |
</script> | |
</div> | |
</section> | |
</blog> |
Author
ottograjeda
commented
Feb 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment