Comparing version 1.0.6 to 1.0.7
@@ -144,2 +144,3 @@ var url = document.currentScript.getAttribute('url') || 'https://qq.webrtc.win/audio/Pear-Demo-audio.mp3'; | ||
btn.onclick = function() { | ||
btn.onclick = function () {}; | ||
var button = document.getElementsByClassName('pear-button')[pos]; | ||
@@ -164,2 +165,13 @@ button.style.display = 'none'; | ||
pie.style.display = 'none'; | ||
var btn = button.parentNode; | ||
btn.onclick = function() { | ||
btn.onclick = function () {}; | ||
button.style.display = 'none'; | ||
loading.style.display = 'block'; | ||
pie.style.display = 'inline-block'; | ||
loading.style.margin = '0 auto'; | ||
downloader(loading, button); | ||
} | ||
//addButtonStyle(); | ||
} | ||
@@ -166,0 +178,0 @@ |
{ | ||
"name": "pearbutton", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "button.js", |
221278
2455