diff --git a/_includes/head.html b/_includes/head.html
index 20b9c7f7..102d8e11 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -12,77 +12,139 @@
+ function addBadgeImage(parameter, emptyScore, fullScore, attribution) {
+ scoreCustomization.push({
+ 'param': parameter,
+ 'emptyScore': "/assets/img/" + emptyScore,
+ 'fullScore': "/assets/img/" + fullScore,
+ 'attribution': attribution
+ })
+ }
+ function attributeIcon(author) {
+ document.getElementById('icons-attribution').innerHTML = author
+ }
+ function addScoreParameterToAllLocalLinks(parameter) {
+ $('a').each(function () {
+ if (this.host === window.location.host && this.className != "customization-switch-link" && this.href.indexOf('#') ===
+ -1) {
+ this.href = this.href + parameter;
+ }
+ });
+ }
+ function changeScoreImages(imgRelativePathEmptyScore, imgRelativePathFullScore) {
+ $('.score-empty').each((i, score) => {
+ $(score).attr('src', imgRelativePathEmptyScore)
+ })
+ $('.score-full').each((i, score) => {
+ $(score).attr('src', imgRelativePathFullScore)
+ })
+ }
+
+ function changeScoreParameterInBadgeSrc(parameter) {
+ $('#badge-shareable').attr('src', 'https://dontkillmyapp.com/badge{{page.url}}' + parameter
+ + '.svg')
+ }
+
+ function hideBadge() {
+ $('#badge').hide()
+ }
+
+ function copyEmbedToClipboard() {
+ const el = document.createElement('textarea');
+ el.value = document.getElementById("embed").innerHTML
+ document.body.appendChild(el);
+ el.select();
+ document.execCommand('copy');
+ document.body.removeChild(el);
+ }
+
+
diff --git a/_layouts/vendor.html b/_layouts/vendor.html
index e15c5593..9a7d8b82 100644
--- a/_layouts/vendor.html
+++ b/_layouts/vendor.html
@@ -53,24 +53,32 @@
{{ page.name }}
{{ content }}
{%- if page.explanation and page.explanation != "" -%}
- Story
- {{ page.explanation | markdownify }}
+
+ Story
+ {{ page.explanation | markdownify }}
+
{%- endif -%}
{%- if page.user_solution and page.user_solution != "" -%}
- Solution for users
- {{ page.user_solution | markdownify }}
+
+ Solution for users
+ {{ page.user_solution | markdownify }}
+
{%- endif -%}
{%- if page.developer_solution and page.developer_solution != "" -%}
- Solution for devs
- {{ page.developer_solution | markdownify }}
+
+ Solution for devs
+ {{ page.developer_solution | markdownify }}
+
{%- endif -%}
{%- if page.award and page.award != "" -%}
- Badge
-
- Copy embed code to clipboard
+
+ Badge
+
+ Copy embed code to clipboard
+
{%- endif -%}
diff --git a/_site/404.html b/_site/404.html
index b23705e0..e95586c8 100644
--- a/_site/404.html
+++ b/_site/404.html
@@ -13,28 +13,172 @@
+{"description":"Hey Android vendors, don’t kill my app!","headline":"Don’t kill my app!","@type":"WebPage","url":"https://dontkillmyapp.com/404.html","@context":"http://schema.org"}
-
+
+
+
@@ -65,78 +209,18 @@
404
- This site is open-source, and the code is available on Github . Contributions, as well as discussion, are very welcome!
+ This site is open-source, and the code is available on Github . Contributions, as well as discussion, are very welcome!
- free Counters
-
+ free Counters
+
-
-
-
-
+