-
-
Notifications
You must be signed in to change notification settings - Fork 137
Upgrade JavaScript code Using ES6 Concepts #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Keerthivardhan1
wants to merge
8
commits into
creativecommons:main
Choose a base branch
from
Keerthivardhan1:Optimize-Javascript-Code
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4b4a86f
Fix all the html errors
Keerthivardhan1 3dbf359
Fix's indentation.
Keerthivardhan1 5b82d4f
Optimize JavaScript code using ES6 Concepts
Keerthivardhan1 6018542
Document Google Analytics
Keerthivardhan1 ceca21d
Merge branch 'main' into Optimize-Javascript-Code
Keerthivardhan1 17ada78
resolved suggested changes in resources.html
Keerthivardhan1 ac924b1
Resolve Conversation of @digi-booster
Keerthivardhan1 4a07f20
Change .preview to #preview.
Keerthivardhan1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,108 +1,105 @@ | ||
| <html> | ||
| <head> | ||
| <title>{{ page.title }} | Creative Commons</title> | ||
| <html xmlns:dct="http://www.w3.org/1999/xhtml"> | ||
| <head> | ||
| <title>{{ page.title }} | Creative Commons</title> | ||
|
|
||
| <script> | ||
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
| m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
| })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
| <script> | ||
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
| m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
| })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
|
|
||
| ga('create', 'UA-2010376-29', 'auto'); | ||
| ga('send', 'pageview'); | ||
| ga('create', 'UA-2010376-29', 'auto'); | ||
| ga('send', 'pageview'); | ||
|
|
||
| </script> | ||
| </script> | ||
|
|
||
| <link rel="stylesheet" type="text/css" href="/style.css" /> | ||
| {% if page.downloadurl %} | ||
| <link rel="stylesheet" type="text/css" href="/style.css" /> | ||
| {% if page.downloadurl %} | ||
| {% if page.repourl %} | ||
| <style>#downloadbuttonholder { width: 440px; }</style> | ||
| <style>#downloadbuttonholder { width: 440px; }</style> | ||
| {% else %} | ||
| <style>#downloadbuttonholder { width: 220px; }</style> | ||
| <style>#downloadbuttonholder { width: 220px; }</style> | ||
| {% endif %} | ||
| {% elsif page.repourl %} | ||
| {% elsif page.repourl %} | ||
| <style>#downloadbuttonholder { width: 220px; }</style> | ||
| {% endif %} | ||
| {% endif %} | ||
|
|
||
| {% if page.repourl contains 'layervault.com' %} | ||
| {% if page.repourl contains 'layervault.com' %} | ||
| <style>.downloadbutton.repository {background-image: url("/images/layervault.png")}</style> | ||
| {% endif %} | ||
| {% if page.repourl contains 'github.com' %} | ||
| {% endif %} | ||
|
|
||
| {% if page.repourl contains 'github.com' %} | ||
| <style>.downloadbutton.repository {background-image: url("/images/github.png")}</style> | ||
| {% endif %} | ||
| {% endif %} | ||
|
|
||
| </head> | ||
| <body> | ||
| </head> | ||
| <body> | ||
|
|
||
| {% include header.html %} | ||
| {% include header.html %} | ||
|
|
||
| <h1><a href="/">Creative Commons Resource Archive</a></h1> | ||
| <h1><a href="/">Creative Commons Resource Archive</a></h1> | ||
|
|
||
| <h2 style="text-align: center; ">{{ page.title }}</a></h3> | ||
| <h2 style="text-align: center; "><a>{{ page.title }}</a></h2> | ||
Keerthivardhan1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| {% if page.embed %} | ||
| <div align="center">{{ page.embed }}</div> | ||
| {% else %} | ||
| {% if page.downloadurl %} | ||
| <a href="{{ page.downloadurl }}" target="_blank"> | ||
| {% endif %} | ||
| {% if page.embed %} | ||
| <div align="center">{{ page.embed }}</div> | ||
| {% else %} | ||
| {% if page.downloadurl %} | ||
| <a href="{{ page.downloadurl }}" target="_blank"></a> | ||
| {% endif %} | ||
|
|
||
| {% if page.image-full %} | ||
| <div id="preview" style="background-image: url({{page.image-full}})"></div> | ||
| {% else %} | ||
| <div id="preview"></div> | ||
| {% endif %} | ||
| {% if page.image-full %} | ||
| <div class="preview" style="background-image: url({{page.image-full}})"></div> | ||
Keerthivardhan1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| {% else %} | ||
| <div class="preview"></div> | ||
| {% endif %} | ||
|
|
||
| {% if page.downloadurl %} | ||
| {% if page.downloadurl %} | ||
| </a> | ||
| {% endif %} | ||
| {% endif %} | ||
| {% if page.downloadurl or page.repourl %} | ||
| <div id="downloadbuttonholder"> | ||
| {% endif %} | ||
|
|
||
| {% if page.downloadurl %} | ||
| <a href="{{ page.downloadurl }}" target="_blank"> | ||
| <div class="downloadbutton"> | ||
| {% if page.medium == "website" or page.medium == "course" %} | ||
| <p>Visit</p> | ||
| {% else %} | ||
| <p>Download</p> | ||
| {% endif %} | ||
| {% endif %} | ||
| {% if page.downloadurl or page.repourl %} | ||
| <div id="downloadbuttonholder"> | ||
| {% endif %} | ||
|
|
||
| {% if page.downloadurl %} | ||
| <a href="{{ page.downloadurl }}" target="_blank"> | ||
| <div class="downloadbutton"> | ||
| {% if page.medium == "website" or page.medium == "course" %} | ||
| <p>Visit</p> | ||
| {% else %} | ||
| <p>Download</p> | ||
| {% endif %} | ||
| </div> | ||
| </a> | ||
| {% endif %} | ||
|
|
||
|
|
||
| {% if page.downloadurl or page.repourl %} | ||
| </div> | ||
| </a> | ||
| {% endif %} | ||
| {% endif %} | ||
|
|
||
| <div style="clear: both;"></div> | ||
|
|
||
| {% if page.downloadurl or page.repourl %} | ||
| <div id="longdescription"> | ||
| {{content}} | ||
| </div> | ||
| {% endif %} | ||
|
|
||
| <div style="clear: both;"></div> | ||
|
|
||
| <div id="longdescription"> | ||
| {{content}} | ||
| </div> | ||
|
|
||
|
|
||
| {% if page.license %} | ||
|
|
||
|
|
||
| {% if page.license %} | ||
| {% if page.license == 'CC0' %} | ||
| <p align="center"><a rel="license" href="http://creativecommons.org/publicdomain/zero/1.0/"><img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0" /></a> | ||
| <br /> | ||
| To the extent possible under law, <span property="dct:publisher">{{ page.author }}</span> has waived all copyright and related or neighboring rights to <a href="{{ page.downloadurl}}"dct:title">{{ page.title }}</a>.</p> | ||
|
|
||
| <p align="center"><a rel="license" href="http://creativecommons.org/publicdomain/zero/1.0/"><img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0" /></a><br /> | ||
| To the extent possible under law, <span property="dct:publisher">{{ page.author }}</span> has waived all copyright and related or neighboring rights to <a href="{{ page.downloadurl}}" dct:title="{{ page.title }}">{{ page.title }}</a>. | ||
| </p> | ||
| {% else %} | ||
|
|
||
| <p align="center"><a rel="license" href="http://creativecommons.org/licenses/{{ page.license | remove: 'CC ' | downcase | replace: ' ', '/' }}/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/{{ page.license | remove: 'CC ' | downcase | replace: ' ', '/' }}/88x31.png" /></a><br /> | ||
|
|
||
| {% if page.downloadurl %}<a href="{{ page.downloadurl }}" rel="cc:attributionURL">{% endif %}<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">{{ page.title }}</span>{% if page.downloadurl %}</a>{% endif %}{% if page.author %} by <span xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName" >{{ page.author }}</span>{% endif %} is licensed under <a rel="license" href="http://creativecommons.org/licenses/{{ page.license | remove: 'CC ' | downcase | replace: ' ', '/' }}/">{{ page.license }}</a>.</p> | ||
| <p align="center"><a rel="license" href="http://creativecommons.org/licenses/{{ page.license | remove: 'CC ' | downcase | replace: ' ', '/' }}/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/{{ page.license | remove: 'CC ' | downcase | replace: ' ', '/' }}/88x31.png" /></a><br /> | ||
| {% if page.downloadurl %}<a href="{{ page.downloadurl }}" rel="cc:attributionURL">{% endif %}<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">{{ page.title }}</span>{% if page.downloadurl %}</a>{% endif %}{% if page.author %} by <span xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName" >{{ page.author }}</span>{% endif %} is licensed under <a rel="license" href="http://creativecommons.org/licenses/{{ page.license | remove: 'CC ' | downcase | replace: ' ', '/' }}/">{{ page.license }}</a>. | ||
| </p> | ||
|
|
||
| {% endif %} | ||
| {% endif %} | ||
| {% endif %} | ||
|
|
||
|
|
||
| </body> | ||
| </body> | ||
| </html> | ||
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.