Skip to content

Commit

Permalink
[*] Fixed problem with URI for firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
felipenmoura committed Dec 5, 2013
1 parent d399c4e commit f5ef1f6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Expand Up @@ -44,7 +44,7 @@ module.exports = function(grunt) {

var jsToInsert= (""+fs.readFileSync(this.data.content)).replace(/"/g, '"');
var template= fs.readFileSync(this.data.input, 'utf8');
//jsToInsert= jsToInsert;
jsToInsert= unescape(jsToInsert);
template= template.replace(this.data.token, jsToInsert);
fs.writeFileSync(this.data.output, template , 'utf8');
});
Expand Down
2 changes: 1 addition & 1 deletion bookmarklet.js
@@ -1,5 +1,5 @@
(function(d){
var iSrc= 'mdl-add2weekly.html?',
var iSrc= 'http://braziljs.github.io/add2weekly/mdl-add2weekly.html?',
create= function(t, l, c, dv){
var i= d.createElement('iframe');
c.appendChild(dv);
Expand Down
2 changes: 1 addition & 1 deletion bookmarklet.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -77,7 +77,7 @@ <h1>unidos crescemos</h1>
<div style="text-align: center;margin-top: 20px;">
<a title="BrazilJS - Add2Weekly"
alt="BrazilJS - Add2Weekly"
href="javascript:!function(a){var b=&quot;mdl-add2weekly.html?&quot;,c=function(c,d,e,f){var g=a.createElement(&quot;iframe&quot;);e.appendChild(f),g.src=b+&quot;t=&quot;+c+&quot;&l=&quot;+d.replace(/http:\/\/|https:\/\//i,&quot;&quot;),f.style.position=&quot;fixed&quot;,f.style.background=&quot;white&quot;,f.style.top=&quot;0px&quot;,f.style.left=&quot;0px&quot;,f.style.zIndex=&quot;99999999&quot;,f.style.margin=&quot;0px&quot;,f.style.width=&quot;550px&quot;,f.style.height=&quot;450px&quot;,f.style.boxShadow=&quot;0px 0px 30px black&quot;,f.id=&quot;brazilJS-add2wkly&quot;,g.style.border=&quot;none&quot;,g.style.height=&quot;100%&quot;,g.style.width=&quot;100%&quot;,f.innerHTML=&quot;<input id=braziljsa2w-closeBtn type=button value=Fechar style='position:absolute;right:124px;bottom:14px;display:block;height:50px;width:100px;color:#8f5a0a;cursor:pointer;border:solid 1px #d69e31;border-color:#d69e31 #e3a037 #d5982d #e3a037;border-radius: 6px;font-size: 15px;background-color: #ffb94b;background-image: -webkit-gradient(linear, left top, left bottom, from(#fddb6f), to(#ffb94b));background-image: -webkit-linear-gradient(top, #fddb6f, #ffb94b);background-image: -moz-linear-gradient(top, #fddb6f, #ffb94b);background-image: -ms-linear-gradient(top, #fddb6f, #ffb94b);background-image: -o-linear-gradient(top, #fddb6f, #ffb94b);background-image: linear-gradient(top, #fddb6f, #ffb94b);text-shadow: 0 1px 0 rgba(255,255,255,0.5);box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset;' onmouseover=\&quot;this.style.fontWeight='bold'\&quot; onmouseout=\&quot;this.style.fontWeight='normal'\&quot;/>&quot;,f.appendChild(g),a.getElementById(&quot;braziljsa2w-closeBtn&quot;).onclick=function(){f.parentNode.removeChild(f)}};c(a.title,location.toString(),a.body||a,a.createElement(&quot;div&quot;))}(document);">
href="javascript:!function(a){var b=&quot;http://braziljs.github.io/add2weekly/mdl-add2weekly.html?&quot;,c=function(c,d,e,f){var g=a.createElement(&quot;iframe&quot;);e.appendChild(f),g.src=b+&quot;t=&quot;+c+&quot;&l=&quot;+d.replace(/http:\/\/|https:\/\//i,&quot;&quot;),f.style.position=&quot;fixed&quot;,f.style.background=&quot;white&quot;,f.style.top=&quot;0px&quot;,f.style.left=&quot;0px&quot;,f.style.zIndex=&quot;99999999&quot;,f.style.margin=&quot;0px&quot;,f.style.width=&quot;550px&quot;,f.style.height=&quot;450px&quot;,f.style.boxShadow=&quot;0px 0px 30px black&quot;,f.id=&quot;brazilJS-add2wkly&quot;,g.style.border=&quot;none&quot;,g.style.height=&quot;100%&quot;,g.style.width=&quot;100%&quot;,f.innerHTML=&quot;<input id=braziljsa2w-closeBtn type=button value=Fechar style='position:absolute;right:124px;bottom:14px;display:block;height:50px;width:100px;color:#8f5a0a;cursor:pointer;border:solid 1px #d69e31;border-color:#d69e31 #e3a037 #d5982d #e3a037;border-radius: 6px;font-size: 15px;background-color: #ffb94b;background-image: -webkit-gradient(linear, left top, left bottom, from(#fddb6f), to(#ffb94b));background-image: -webkit-linear-gradient(top, #fddb6f, #ffb94b);background-image: -moz-linear-gradient(top, #fddb6f, #ffb94b);background-image: -ms-linear-gradient(top, #fddb6f, #ffb94b);background-image: -o-linear-gradient(top, #fddb6f, #ffb94b);background-image: linear-gradient(top, #fddb6f, #ffb94b);text-shadow: 0 1px 0 rgba(255,255,255,0.5);box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset;' onmouseover=\&quot;this.style.fontWeight='bold'\&quot; onmouseout=\&quot;this.style.fontWeight='normal'\&quot;/>&quot;,f.appendChild(g),a.getElementById(&quot;braziljsa2w-closeBtn&quot;).onclick=function(){f.parentNode.removeChild(f)}};c(a.title,location.toString(),a.body||a,a.createElement(&quot;div&quot;))}(document); void(0);">

<img src="http://braziljs.org/services/add2weekly/logo-braziljs.png" title="BrazilJS - Add2Weekly" style="height: 60px;" alt="BrazilJS - Add2Weekly" />

Expand Down
2 changes: 1 addition & 1 deletion index.src.html
Expand Up @@ -77,7 +77,7 @@ <h1>unidos crescemos</h1>
<div style="text-align: center;margin-top: 20px;">
<a title="BrazilJS - Add2Weekly"
alt="BrazilJS - Add2Weekly"
href="javascript:<!-- /* BOOKMARCKLET.MIN.JS */ -->">
href="javascript:<!-- /* BOOKMARCKLET.MIN.JS */ --> void(0);">

<img src="http://braziljs.org/services/add2weekly/logo-braziljs.png" title="BrazilJS - Add2Weekly" style="height: 60px;" alt="BrazilJS - Add2Weekly" />

Expand Down

0 comments on commit f5ef1f6

Please sign in to comment.