| <!-- | |
| # Copyright (C) 2013-2014 Chaoyi Zha | |
| # Polr is an open-source project licensed under the GPL. | |
| # The above copyright notice and the following license are applicable to | |
| # the entire project, unless explicitly defined otherwise. | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 2 of the License, or (at | |
| # your option) any later version. | |
| # See http://www.gnu.org/copyleft/gpl.html for the full text of the | |
| # license. | |
| # | |
| --> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Polr</title> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <script type="text/javascript"> | |
| //<![CDATA[ | |
| try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:"cf",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dok2v=1613a3a185/"},atok:"154584d9e88c81d2a59d4df5cefb578f",petok:"cdaece6c0a95da5caae9f98e03b3f2b6c24ab4c8-1419694286-1800",zone:"polr.me",rocket:"0",apps:{"ga_key":{"ua":"UA-42873524-4","ga_bs":"1"}}}];CloudFlare.push({"apps":{"ape":"c18c30d355655841251a2a8eadc77fbc"}});!function(a,b){a=document.createElement("script"),b=document.getElementsByTagName("script")[0],a.async=!0,a.src="//ajax.cloudflare.com/cdn-cgi/nexp/dok2v=919620257c/cloudflare.min.js",b.parentNode.insertBefore(a,b)}()}}catch(e){}; | |
| //]]> | |
| </script> | |
| <link rel="stylesheet" href="bootstrap.css"/> | |
| <link rel="stylesheet" href="main.css"/> | |
| <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet"> | |
| <link rel="shortcut icon" href="favicon.ico"> | |
| <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet"> | |
| <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" /> | |
| <script type="text/javascript"> | |
| /* <![CDATA[ */ | |
| var _gaq = _gaq || []; | |
| _gaq.push(['_setAccount', 'UA-42873524-4']); | |
| _gaq.push(['_trackPageview']); | |
| (function() { | |
| var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
| ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
| var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
| })(); | |
| /* ]]> */ | |
| </script> | |
| </head> | |
| <body style="padding-top:60px"> | |
| <div class="container-fluid"> | |
| <nav role="navigation" class="navbar navbar-inverse navbar-fixed-top"> | |
| <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> | |
| <span class="sr-only">Toggle navigation</span> | |
| <span class="icon-bar"></span> | |
| <span class="icon-bar"></span> | |
| <span class="icon-bar"></span> | |
| </button> | |
| <div class="navbar-header"> | |
| <a class="navbar-brand" href="index.php">Polr</a> | |
| </div> | |
| <!--<a class="btn btn-navbar btn-default" data-toggle="collapse" data-target="#nbc"> | |
| <span class="icon-bar"></span> | |
| <span class="icon-bar"></span> | |
| <span class="icon-bar"></span> | |
| </a>--> | |
| <div id="navbar" class="navbar-collapse collapse"> | |
| <ul class="nav navbar-collapse navbar-nav" id="nbc"> | |
| <li><a href="//github.com/Cydrobolt/polr">Github</a></li> | |
| <li><a href="http://project.polr.me">Source</a></li> | |
| <li><a href="about.php">About</a></li><li><a href="contact.php">Contact</a></li> | |
| <li><a class="hidden-md hidden-lg hidden-sm" href="register.php">Sign Up</a></li> | |
| <li><a class="hidden-md hidden-lg hidden-sm" href="login.php">Sign In</a></li> | |
| </ul> | |
| <ul class="nav pull-right navbar-nav hidden-xs"> | |
| <!-- <li><a href="register.php">Sign Up</a></li> | |
| <li class="divider-vertical"></li> | |
| <li><a href="login.php">Sign In</a></li><!---- | |
| <li class="dropdown pull-right"> | |
| <a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a> | |
| <div class="dropdown-menu" id="dropdown" style="padding: 15px; padding-bottom: 0px; color:white;"> | |
| <h2>Login</h2> | |
| <form action="loginproc.php" method="post" accept-charset="UTF-8"> | |
| <input id="user_username" style="margin-bottom: 15px;" type="text" name="username" placeholder='Username' size="30" class="form-control" /> | |
| <input id="user_password" style="margin-bottom: 15px;" type="password" name="password" placeholder='Password' size="30" class="form-control" /> | |
| <input id="remember_me" style="margin-botton: 15px" type="checkbox" name="remember_me" value="remember_me" size="30" /> <label>Remember Me</label> | |
| <a href='forgotpass.php' style='color:white; text-align:center'>Forgot Password?</a> | |
| <input class="btn btn-success form-control" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="login" value="Sign In"> | |
| <br><br> | |
| </form> | |
| </div> | |
| ----> | |
| </li> | |
| --><div class='nav pull-right navbar-nav' style='color: white'> | |
| <li class='dropdown'> | |
| <a class="dropdown-toggle" href="#" data-toggle="dropdown" style='padding-right: 10px'>cydrobolt <strong class="caret"></strong></a> | |
| <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenu"> | |
| <li><a tabindex="-1" href="ucp.php">Dashboard</a></li> | |
| <li><a tabindex="-1" href="ucp.php">Settings</a></li> | |
| <li><a tabindex="-1" href="logout.php">Logout</a></li> | |
| </ul> | |
| </li> | |
| </div> </ul> | |
| </div> | |
| </nav> | |
| </div> | |
| <div class="container-fluid"> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
| <div class="jumbotron" style="text-align:center; padding-top:80px; background-color: rgba(0,0,0,0);"> | |
| <div class="container"> | |
| <h1 class='title'>Polr</h1> | |
| <form id='shortenform' method="POST" action="createurl.php" role="form"> | |
| <input type="text" class="form-control" placeholder="URL" id="url" value="http://" name="urlr" /> | |
| <div id='options'> | |
| <br>Customize link: <br> | |
| <div class="btn-group btn-toggle" data-toggle="buttons"> | |
| <label class="btn btn-primary btn-sm active"> | |
| <input type="radio" name="options" value="p" checked=""> Public | |
| </label> | |
| <label class="btn btn-sm btn-default"> | |
| <input type="radio" name="options" value="s"> Secret | |
| </label> | |
| </div> <br /><br /> | |
| <div style='color: green'><div id="h2" style="display:inline"><h2 style='display:inline'>polr.me/</h2></div><input type='text' id='custom' title='After entering your custom ending, if the ending is available, enter your long URL into box above and press "Shorten"!' name='custom' /><br> | |
| <a href="javascript:void();" class="btn btn-inverse btn-sm" id='checkavail'>Check Availability</a><div id='status'></div></div> | |
| </div> | |
| <br><input type="submit" class="btn btn-info" id='shorten' value="Shorten!"/> <a href="javascript:void()" class="btn btn-warning" id='showoptions'>Link Options</a> | |
| <input type="hidden" id="hp" name="hp" value="c1d808063050d7580ad581636fde9e00ab7a70dd4cf17d6e2ba23423aswer6440cc4a632f179edac904d6e2b"/> | |
| </form> | |
| <br><br><div id="tips" class='hidden-sm hidden-xs text-muted'><i class="fa fa-spinner"></i> Loading Tips...</div> | |
| </div> | |
| </div> | |
| <footer class="hidden-xs hidden-sm"> | |
| <p id="footer-pad">© Copyright 2014 Polr - <a href='privacypolicy.php'>Privacy Policy</a> - <a href='tos.php'>Terms of Service</a></p> | |
| </footer> | |
| </div> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
| <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script> | |
| <script src='select_url.js'></script> | |
| <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> | |
| <script> | |
| $(function() { | |
| // Setup drop down menu | |
| $('.dropdown-toggle').dropdown(); | |
| // Fix input element click problem | |
| $('.dropdown input, .dropdown label').click(function(e) { | |
| e.stopPropagation(); | |
| }); | |
| function findBootstrapEnvironment() { | |
| var envs = ['xs', 'sm', 'md', 'lg']; | |
| $el = $('<div>'); | |
| $el.appendTo($('body')); | |
| for (var i = envs.length - 1; i >= 0; i--) { | |
| var env = envs[i]; | |
| $el.addClass('hidden-'+env); | |
| if ($el.is(':hidden')) { | |
| $el.remove(); | |
| return env | |
| } | |
| }; | |
| } | |
| var env = findBootstrapEnvironment(); | |
| if (env == "xs" || env == "sm") { | |
| $('.jumbotron').attr('class', "container-fluid"); | |
| } | |
| }); | |
| </script> | |
| <script src='mpjs.js'></script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment