jsonresume-theme-eloquent
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -14,14 +14,7 @@ (function(document, saveAs, smoothScroll, emailScramble, downloadName) { | ||
var mailText = document.querySelectorAll('[data-scrambled-email-text]')[0]; | ||
var mailtoLink = document.querySelectorAll('[data-scrambled-email-link]')[0]; | ||
var decodedMail = emailScramble.decode(mailtoLink.href.replace('mailto:', '')); | ||
mailtoLink.href = 'mailto:' + decodedMail; | ||
mailText.innerHTML = decodedMail; | ||
mailText.setAttribute('itemprop', 'email'); | ||
mailtoLink.href = 'mailto:' + emailScramble.decode(mailtoLink.href.replace('mailto:', '')); | ||
var phoneText = document.querySelectorAll('[data-scrambled-phone-text]')[0]; | ||
var phoneLink = document.querySelectorAll('[data-scrambled-phone-link]')[0]; | ||
phoneLink.href = 'tel:' + emailScramble.decode(phoneLink.href.replace('tel:', '')); | ||
phoneText.innerHTML = emailScramble.decode(phoneText.innerHTML); | ||
phoneText.setAttribute('itemprop', 'telephone'); | ||
@@ -28,0 +21,0 @@ smoothScroll.init({ |
@@ -34,2 +34,7 @@ var Handlebars = require('handlebars'); | ||
}, | ||
obfuscateText: function(html) { | ||
html = Handlebars.escapeExpression(html || ''); | ||
html = html.substring(0, 4) + '<span style="display:none;">1337</span>' + html.substring(4); | ||
return new Handlebars.SafeString(html); | ||
}, | ||
scrambleText: function(text) { | ||
@@ -36,0 +41,0 @@ text = Handlebars.escapeExpression(text || ''); |
{ | ||
"name": "jsonresume-theme-eloquent", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "An eloquent JSON Resume theme: fluent, persuasive, for developers. This theme is a fork of the Elegant theme.", | ||
@@ -5,0 +5,0 @@ "author": "Thibaud Colas", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110195
718