Commit a8752918 authored by d11e9's avatar d11e9

fix indentation/whitespce in index.html

parent 24efa2e5
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<!-- <!--
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2014, 2015, the individual contributors Copyright (c) 2014, 2015, the individual contributors
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software. all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
--> -->
<meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Solidity realtime compiler and runtime</title> <title>Solidity realtime compiler and runtime</title>
<link rel="stylesheet" href="assets/css/styles.css"> <link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/pygment_trac.css"> <link rel="stylesheet" href="assets/css/pygment_trac.css">
<link rel="stylesheet" href="assets/css/universal-dapp.css"> <link rel="stylesheet" href="assets/css/universal-dapp.css">
<link rel="stylesheet" href="assets/css/browser-solidity.css"> <link rel="stylesheet" href="assets/css/browser-solidity.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css"> <link rel="stylesheet" href="assets/css/font-awesome.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<style type="text/css">
<script src="bin/list.js"></script>
</style> <script src="assets/js/jquery-2.1.3.min.js"></script>
<script src="bin/list.js"></script> <script src="assets/js/ace.js"></script>
<script src="assets/js/jquery-2.1.3.min.js"></script> <script src="assets/js/mode-solidity.js"></script>
<script src="assets/js/ace.js"></script> <script src="bin/soljson-latest.js"></script>
<script src="assets/js/mode-solidity.js"></script> <script src="assets/js/ethereumjs-vm.js"></script>
<script src="bin/soljson-latest.js"></script> <script src="assets/js/universal-dapp.js"></script>
<script src="assets/js/ethereumjs-vm.js"></script> <script src="assets/js/web3.min.js"></script>
<script src="assets/js/universal-dapp.js"></script> <script src="assets/js/ballot.sol.js"></script>
<script src="assets/js/web3.min.js"></script>
<script src="assets/js/ballot.sol.js"></script> </head>
<body>
</head>
<body>
<div id="editor"> <div id="editor">
...@@ -126,8 +123,8 @@ THE SOFTWARE. ...@@ -126,8 +123,8 @@ THE SOFTWARE.
// ------------------ gist load ---------------- // ------------------ gist load ----------------
function getGistId(str) { function getGistId(str) {
var idr = /[0-9A-Fa-f]{8,}/ var idr = /[0-9A-Fa-f]{8,}/;
var match = idr.exec(str)[0] var match = idr.exec(str)[0];
return match; return match;
} }
...@@ -138,7 +135,7 @@ THE SOFTWARE. ...@@ -138,7 +135,7 @@ THE SOFTWARE.
var gistId; var gistId;
var key = location_hash_params[index+1]; var key = location_hash_params[index+1];
if (key === '') { if (key === '') {
var str = prompt("Enter the URL or ID of the Gist you'd like to load.") var str = prompt("Enter the URL or ID of the Gist you'd like to load.");
if (str !== '') { if (str !== '') {
gistId = getGistId( str ); gistId = getGistId( str );
loadingFromGist = true; loadingFromGist = true;
...@@ -235,7 +232,7 @@ THE SOFTWARE. ...@@ -235,7 +232,7 @@ THE SOFTWARE.
// ------------------ gist publish -------------- // ------------------ gist publish --------------
$('#gist').click(function(){ $('#gist').click(function(){
if (confirm("Are you sure you want to publish all your files anonymously as a public gist on github.com")) { if (confirm("Are you sure you want to publish all your files anonymously as a public gist on github.com?")) {
var files = {}; var files = {};
var filesArr = getFiles(); var filesArr = getFiles();
...@@ -261,7 +258,7 @@ THE SOFTWARE. ...@@ -261,7 +258,7 @@ THE SOFTWARE.
} }
}); });
} }
}) });
// ----------------- file selector------------- // ----------------- file selector-------------
...@@ -272,7 +269,7 @@ THE SOFTWARE. ...@@ -272,7 +269,7 @@ THE SOFTWARE.
SOL_CACHE_FILE = SOL_CACHE_UNTITLED + untitledCount; SOL_CACHE_FILE = SOL_CACHE_UNTITLED + untitledCount;
window.localStorage[SOL_CACHE_FILE] = ''; window.localStorage[SOL_CACHE_FILE] = '';
updateFiles(); updateFiles();
}) });
$filesEl.on('click', '.file:not(.active)', showFileHandler); $filesEl.on('click', '.file:not(.active)', showFileHandler);
...@@ -449,7 +446,7 @@ THE SOFTWARE. ...@@ -449,7 +446,7 @@ THE SOFTWARE.
else getEditorSize(); else getEditorSize();
// ----------------- toggle right hand panel // ----------------- toggle right hand panel -----------------
var toggledRHP = false; var toggledRHP = false;
$('.toggleRHP').click(function(){ $('.toggleRHP').click(function(){
...@@ -634,7 +631,6 @@ THE SOFTWARE. ...@@ -634,7 +631,6 @@ THE SOFTWARE.
var combined = function(contractName, interface, bytecode){ var combined = function(contractName, interface, bytecode){
return JSON.stringify([{name: contractName, interface: interface, bytecode: bytecode}]); return JSON.stringify([{name: contractName, interface: interface, bytecode: bytecode}]);
}; };
var renderContracts = function(data, source) { var renderContracts = function(data, source) {
...@@ -779,5 +775,5 @@ THE SOFTWARE. ...@@ -779,5 +775,5 @@ THE SOFTWARE.
}); });
</script> </script>
</body> </body>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment