Skip to content

Instantly share code, notes, and snippets.

View emmanuelmakana's full-sized avatar
😇
happy

emmanuel makana emmanuelmakana

😇
happy
  • Nairobi
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body {
background:
url(sweettexture.jpg) /* image */
@emmanuelmakana
emmanuelmakana / index.html
Created February 23, 2021 13:59
Homework #18 - The W3C Geolocation API // source https://jsbin.com/jihojum
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Homework #18 - The W3C Geolocation API</title>
<link rel="stylesheet" href="styles.css">
<style id="jsbin-css">
body {
font-family: Helvetica, Arial, sans-serif;
<button id = "find-me">Show my location</button><br/>
<p id = "status"></p>
<a id = "map-link" target="_blank"></a>
<script id="jsbin-javascript">
function geoFindMe() {
const status = document.querySelector('#status');
const mapLink = document.querySelector('#map-link');
mapLink.href = '';
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body{
background-color: green;
}
@emmanuelmakana
emmanuelmakana / index.html
Created February 22, 2021 11:22
Homework #17 - The Notification API // source https://jsbin.com/gegayumaqo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Homework #17 - The Notification API</title>
<link rel="stylesheet" href="styles.css">
<style id="jsbin-css">
body {
font-family: Helvetica, Arial, sans-serif;
@emmanuelmakana
emmanuelmakana / index.html
Created January 6, 2021 16:59
OpenWeatherMap Api // source https://jsbin.com/zererus
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>OpenWeatherMap Api</title>
<link rel="stylesheet" href="style.css">
<style id="jsbin-css">
*{
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
html, body{
margin: 0;
width: 100%;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
/* (A) FONT */
#ctime, #tpick {
font-family: Impact, sans-serif;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">