Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- SITE TO GET A FREE KEY TO PUT IN THE LAST LINE : https://extreme-ip-lookup.com -->
- <div id="mycity"></div>
- <style>
- #mycity {
- font-family: Verdana, Geneva, sans-serif;
- font-size: 30px;
- letter-spacing: 2px;
- word-spacing: 2px;
- color: #000000;
- font-weight: 400;
- text-decoration: none;
- font-style: normal;
- font-variant: normal;
- text-transform: none;
- }
- </style>
- <script>
- function getIP(json) {
- let mytxt = '';
- if ((json.city != 'undefined') && (json.city != '')) {
- mytxt = 'Made in '+json.city+', with love.';
- } else {
- mytxt = 'Made in Orlando, with love.';
- }
- typeWriter(0,mytxt,100);
- }
- function typeWriter(i,txt,speed) {
- if (i < txt.length) {
- document.getElementById('mycity').innerHTML += txt.charAt(i);
- i++;
- setTimeout(function() {
- typeWriter(i,txt,speed);
- }, speed);
- }
- }
- </script>
- <script src="https://extreme-ip-lookup.com/json/?callback=getIP&key=REPLACE_WITH_YOUR_KEY" async defer></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement