mirror of
https://github.com/chinchang/web-maker.git
synced 2025-05-08 11:35:16 +02:00
index: fix extension installation
This commit is contained in:
parent
2054da9968
commit
674fc5c972
25
index.html
25
index.html
@ -781,18 +781,6 @@
|
||||
function closeInfo(label) {
|
||||
info.classList.remove('show');
|
||||
}
|
||||
|
||||
function addToChrome() {
|
||||
_gaq && _gaq.push(['_trackEvent', 'webmaker', 'install-start']);
|
||||
info.classList.add('show');
|
||||
changeLabel('Installing...');
|
||||
chrome.webstore.install(undefined, function () {
|
||||
cta.innerHTML = 'Successfully installed!';
|
||||
closeInfo();
|
||||
_gaq && _gaq.push(['_trackEvent', 'webmaker', 'install-done']);
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@ -806,12 +794,11 @@
|
||||
</h1>
|
||||
<h2 style="margin-bottom:0.4em;">A blazing fast & offline web playground in your browser</h2>
|
||||
<div style="margin-top: 30px;" id="cta" class="mb-2">
|
||||
<a aria-label="Open web app" class="btn download-btn web-app-btn" href="/app/">
|
||||
<a class="btn download-btn web-app-btn" href="/app/">
|
||||
<span>Open Web App</span>
|
||||
</a>
|
||||
<p style="margin-top:3px;">Recommended: More features. More fun!</p>
|
||||
<a aria-label="Install chrome extension" class="btn download-btn js-chrome-btn hint--top-right" href="javascript:void(0)"
|
||||
onclick="addToChrome()">
|
||||
<a class="btn download-btn js-chrome-btn" href="https://chrome.google.com/webstore/detail/web-maker/lkfkkhfhhdkiemehlpkgjeojomhpccnh">
|
||||
<img src="chrome-logo.png" height="40" alt="">
|
||||
<span>Add Chrome extension</span>
|
||||
</a>
|
||||
@ -835,14 +822,6 @@
|
||||
<div style="margin-top:30px;">
|
||||
<img class="screenshot" src="ss1.png?v3.0.0beta" height="" alt="Web Maker working screen">
|
||||
</div>
|
||||
<script>
|
||||
if (top !== self) {
|
||||
var btn = document.querySelector('.download-btn');
|
||||
btn.href = 'https://chrome.google.com/webstore/detail/web-maker/lkfkkhfhhdkiemehlpkgjeojomhpccnh';
|
||||
btn.target = '_blank';
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<div class="flex feature-box">
|
||||
<div class="feature">
|
||||
|
Loading…
x
Reference in New Issue
Block a user