Skip to content

Commit

Permalink
Cleanup yge HTML
Browse files Browse the repository at this point in the history
Trying to unify the indentation and line endings
  • Loading branch information
bumi committed Jan 2, 2018
1 parent 5026a84 commit a6a4c7d
Show file tree
Hide file tree
Showing 4 changed files with 275 additions and 286 deletions.
151 changes: 74 additions & 77 deletions app/dashboard/templates/yge/base.html
Original file line number Diff line number Diff line change
@@ -1,77 +1,74 @@
<!DOCTYPE HTML>
<html>
<head>
<title>{{title}} | Gitcoin</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]><script src="/static/yge/js/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="/static/v2/css/gitcoin.css" />
<link rel="stylesheet" href="/static/yge/css/main.css" />
<link rel="stylesheet" href="/static/v2/css/rain.css" />
<link rel="stylesheet" href="/static/v2/css/jquery.select2.min.css" />
<script src="/static/v2/js/jquery.js"></script>
<script src="/static/v2/js/work_with_gitcoin.js"></script>
<!--[if lte IE 9]><link rel="stylesheet" href="/static/yge/css/ie9.css" /><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="/static/yge/css/ie8.css" /><![endif]-->
<noscript><link rel="stylesheet" href="/static/yge/css/noscript.css" /></noscript>

<link rel="apple-touch-icon" sizes="180x180" href="/static/v2/images/favicon.ico/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/v2/images/favicon.ico/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/v2/images/favicon.ico/favicon-16x16.png">
<link rel="manifest" href="/static/v2/images/favicon.ico/manifest.json">
<meta name="theme-color" content="#ffffff">

<meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
</head>
<body id="yge" class="{{class}}">
{% include 'shared/ga.html' %}

{% block 'world' %}
{% endblock %}
{% include 'shared/rain.html' with class="color" %}
{% include 'shared/rain.html' with class="color" %}
<!-- Wrapper -->
<div id="wrapper">

<!-- Main -->
{% block 'main' %}

{% endblock %}

<!-- Footer -->
<footer id="footer">
<ul class="copyright">
<li>
<a href="/">&copy; Gitcoin.co</a>
</li>
<li>
<a href="/tip">Send Tip</a>
</li>
</ul>
</footer>

</div>

<!-- Scripts -->
{% block 'scripts' %}{% endblock %}
<script src="/static/v2/js/jquery.select2.min.js"></script>
<!--[if lte IE 8]><script src="/static/yge/js/respond.min.js"></script><![endif]-->
<script>
if ('addEventListener' in window) {
window.addEventListener('load', function() { document.body.className = document.body.className.replace(/\bis-loading\b/, ''); });
document.body.className += (navigator.userAgent.match(/(MSIE|rv:11\.0)/) ? ' is-ie' : '');
}
</script>

{% if recommend_gas_price %}
<script type="text/javascript">
setInterval(function(){
defaultGasPrice = parseInt(10**9 * {{recommend_gas_price}});
},1000);
</script>
{% endif %}



</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<title>{{title}} | Gitcoin</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#ffffff">
<meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">

<!--[if lte IE 8]><script src="/static/yge/js/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="/static/v2/css/gitcoin.css" />
<link rel="stylesheet" href="/static/yge/css/main.css" />
<link rel="stylesheet" href="/static/v2/css/rain.css" />
<link rel="stylesheet" href="/static/v2/css/jquery.select2.min.css" />

<script src="/static/v2/js/jquery.js"></script>
<script src="/static/v2/js/work_with_gitcoin.js"></script>
<!--[if lte IE 9]><link rel="stylesheet" href="/static/yge/css/ie9.css" /><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="/static/yge/css/ie8.css" /><![endif]-->
<noscript><link rel="stylesheet" href="/static/yge/css/noscript.css" /></noscript>

<link rel="apple-touch-icon" sizes="180x180" href="/static/v2/images/favicon.ico/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/v2/images/favicon.ico/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/v2/images/favicon.ico/favicon-16x16.png">
<link rel="manifest" href="/static/v2/images/favicon.ico/manifest.json">
</head>
<body id="yge" class="{{class}}">
{% include 'shared/ga.html' %}

{% block 'world' %}
{% endblock %}
{% include 'shared/rain.html' with class="color" %}
{% include 'shared/rain.html' with class="color" %}
<!-- Wrapper -->
<div id="wrapper">

<!-- Main -->
{% block 'main' %}

{% endblock %}

<!-- Footer -->
<footer id="footer">
<ul class="copyright">
<li>
<a href="/">&copy; Gitcoin.co</a>
</li>
<li>
<a href="/tip">Send Tip</a>
</li>
</ul>
</footer>
</div>

<!-- Scripts -->
{% block 'scripts' %}{% endblock %}
<script src="/static/v2/js/jquery.select2.min.js"></script>
<!--[if lte IE 8]><script src="/static/yge/js/respond.min.js"></script><![endif]-->
<script>
if ('addEventListener' in window) {
window.addEventListener('load', function() { document.body.className = document.body.className.replace(/\bis-loading\b/, ''); });
document.body.className += (navigator.userAgent.match(/(MSIE|rv:11\.0)/) ? ' is-ie' : '');
}
</script>

{% if recommend_gas_price %}
<script type="text/javascript">
setInterval(function(){
defaultGasPrice = parseInt(10**9 * {{recommend_gas_price}});
},1000);
</script>
{% endif %}
</body>
</html>
113 changes: 55 additions & 58 deletions app/dashboard/templates/yge/receive.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{% extends 'yge/base.html' %}

{% block 'scripts' %}
<script src="/static/yge/ethereumjs/ethereumjs-accounts.js"></script>
<script src="/static/yge/ethereumjs/web3.js"></script>
<script src="/static/yge/ethereumjs/hooked-web3-provider.js"></script>
<script src="/static/yge/ethereumjs/tx.js"></script>
<script src="/static/yge/youvegoteth/index.js"></script>
<script src="/static/yge/youvegoteth/tokens.js"></script>
<script src="/static/yge/youvegoteth/pre.js"></script>
<script src="/static/yge/youvegoteth/receive.js"></script>
<script src="/static/yge/youvegoteth/confetti.js"></script>
<script src="/static/yge/youvegoteth/web3alert.js"></script>
<script src="/static/yge/lightwallet.min.js"></script>
<script src="/static/yge/ethereumjs/ethereumjs-accounts.js"></script>
<script src="/static/yge/ethereumjs/web3.js"></script>
<script src="/static/yge/ethereumjs/hooked-web3-provider.js"></script>
<script src="/static/yge/ethereumjs/tx.js"></script>
<script src="/static/yge/youvegoteth/index.js"></script>
<script src="/static/yge/youvegoteth/tokens.js"></script>
<script src="/static/yge/youvegoteth/pre.js"></script>
<script src="/static/yge/youvegoteth/receive.js"></script>
<script src="/static/yge/youvegoteth/confetti.js"></script>
<script src="/static/yge/youvegoteth/web3alert.js"></script>
<script src="/static/yge/lightwallet.min.js"></script>
{% endblock %}
<!-- Main -->

Expand All @@ -21,57 +21,54 @@
{% endblock %}

{% block 'main' %}
<section id="main">
<header>
<span class="avatar">
<a href='/'>
<img src="/static/v2/images/helmet.png" style="background-color: white; max-width: 100px; max-height: 100px;" />
</a>
</span>
</header>
<div id="loading">
<h1>Loading</h1>
<img src="/static/yge/images/loading.gif" style="max-width: 70px; max-height: 70px;">
<p id="loading_txt">waiting for web3...</p>
</div>
<section id="main">
<header>
<span class="avatar">
<a href='/'>
<img src="/static/v2/images/helmet.png" style="background-color: white; max-width: 100px; max-height: 100px;" />
</a>
</span>
</header>
<div id="loading">
<h1>Loading</h1>
<img src="/static/yge/images/loading.gif" style="max-width: 70px; max-height: 70px;">
<p id="loading_txt">waiting for web3...</p>
</div>

<div id="step_zero" style="display:none;">
<h1 id="zeroh1">You've Got ETH!</h1>
<p>To claim it, please install MetaMask and refresh the page.</p>
<a href="https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en" id="install" class="button">Install Metamask 🐬</a>
<br>
<br>
<h2>What is Metamask?</h2>
<iframe width="100%" src="https://www.youtube.com/embed/6Gf_kRE4MJU" frameborder="0" allowfullscreen></iframe>
<div id="step_zero" style="display:none;">
<h1 id="zeroh1">You've Got ETH!</h1>
<p>To claim it, please install MetaMask and refresh the page.</p>
<a href="https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en" id="install" class="button">Install Metamask 🐬</a>
<br>
<br>
<h2>What is Metamask?</h2>
<iframe width="100%" src="https://www.youtube.com/embed/6Gf_kRE4MJU" frameborder="0" allowfullscreen></iframe>

</div>
<div id="send_eth" style="display:none;">
<h1 id="oneh1">Receive Ethereum Now.</h1>

<div>
<input type="hidden" placeholder="idx_address" id="idx_address" value="">
</div>
<div>
<input type="hidden" placeholder="private_key" id="private_key" value="">
</div>
<div>
Forward it to a permanent address:
<br>
<input type="text" placeholder="forwarding_address" id="forwarding_address" value="0x0">
<div id="send_eth" style="display:none;">
<h1 id="oneh1">Receive Ethereum Now.</h1>

<div>
<input type="hidden" placeholder="idx_address" id="idx_address" value="">
</div>
<div>
<input type="hidden" placeholder="private_key" id="private_key" value="">
</div>
<div>
Forward it to a permanent address:
<br>
<input type="text" placeholder="forwarding_address" id="forwarding_address" value="0x0">
</div>
<div>
<br>
<a href="#" id="receive" class="button">Claim <span id="tokenName">Eth</span> Tip 🙌</a>
<br>
</div>
</div>
<div>
<br>
<a href="#" id="receive" class="button">Claim <span id="tokenName">Eth</span> Tip 🙌</a>
<br>
<div id="send_eth_done" style="display:none;">
<h1>Congrats!</h1>
<p>You've received Ethereum via transaction <span id="trans_id"></span>.</p>
</div>
</div>
<div id="send_eth_done" style="display:none;">
<h1>Congrats!</h1>
<p>You've received Ethereum via transaction <span id="trans_id"></span>.</p>
</div>



</section>
</section>

{% endblock %}
74 changes: 37 additions & 37 deletions app/dashboard/templates/yge/send1.html
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
{% extends 'yge/base.html' %}

{% block 'scripts' %}
<script src="/static/yge/ethereumjs/ethereumjs-accounts.js"></script>
<script src="/static/yge/ethereumjs/web3.js"></script>
<script src="/static/yge/ethereumjs/hooked-web3-provider.js"></script>
<script src="/static/yge/youvegoteth/web3alert.js"></script>
<script src="/static/yge/youvegoteth/index.js"></script>
<script src="/static/yge/youvegoteth/pre.js"></script>
<script src="/static/yge/youvegoteth/new.js"></script>
{% endblock %}

<!-- Main -->
{% block 'main' %}
<section id="main">
<header>
<span class="avatar">
<a href='/'>
<img src="/static/v2/images/helmet.png" style="background-color: white; max-width: 100px; max-height: 100px;" />
</a>
</span>
<h1>Send Tip ⚡</h1>
<h3>It's Fast. It's Easy. It's Free.️</h3>
<p>(Supports any github username or email address)</p
<br>
<select id="batches" style="background:transparent; display: none; margin-bottom: 20px; margin-top: -20px" >
<option value="1">1 receipient</option>
<option value="5">5 receipients</option>
<option value="10">10 receipients</option>
<option value="20">20 receipients</option>
<option value="50">50 receipients</option>
</select>
</header>
<a href="#" id="neweth" class="button">Send Ether 💰</a>

</section>
{% endblock %}
{% extends 'yge/base.html' %}

{% block 'scripts' %}
<script src="/static/yge/ethereumjs/ethereumjs-accounts.js"></script>
<script src="/static/yge/ethereumjs/web3.js"></script>
<script src="/static/yge/ethereumjs/hooked-web3-provider.js"></script>
<script src="/static/yge/youvegoteth/web3alert.js"></script>
<script src="/static/yge/youvegoteth/index.js"></script>
<script src="/static/yge/youvegoteth/pre.js"></script>
<script src="/static/yge/youvegoteth/new.js"></script>
{% endblock %}

<!-- Main -->
{% block 'main' %}
<section id="main">
<header>
<span class="avatar">
<a href='/'>
<img src="/static/v2/images/helmet.png" style="background-color: white; max-width: 100px; max-height: 100px;" />
</a>
</span>
<h1>Send Tip ⚡</h1>
<h3>It's Fast. It's Easy. It's Free.️</h3>
<p>(Supports any github username or email address)</p>
<br>
<select id="batches" style="background:transparent; display: none; margin-bottom: 20px; margin-top: -20px" >
<option value="1">1 receipient</option>
<option value="5">5 receipients</option>
<option value="10">10 receipients</option>
<option value="20">20 receipients</option>
<option value="50">50 receipients</option>
</select>
</header>
<a href="#" id="neweth" class="button">Send Ether 💰</a>

</section>
{% endblock %}
Loading

0 comments on commit a6a4c7d

Please sign in to comment.