This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Pemutar Musik Html 5</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<style> | |
/* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ | |
/* Font Family |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// html5media enables <video> and <audio> tags in all major browsers | |
// External File: https://api.html5media.info/1.1.8/html5media.min.js | |
// Add user agent as an attribute on the <html> tag... | |
// Inspiration: https://css-tricks.com/ie-10-specific-styles/ | |
var b = document.documentElement; | |
b.setAttribute("data-useragent", navigator.userAgent); | |
b.setAttribute("data-platform", navigator.platform); | |
// HTML5 audio player + playlist controls... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Font Family | |
================================================== */ | |
@import url("//fonts.googleapis.com/css?family=Yanone+Kaffeesatz:200,300,400"); | |
/* Desktop | |
================================================== */ | |
.container { | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html > | |
<head> | |
<meta charset="UTF-8"> | |
<title>Material Login Form</title> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.toggle').on('click', function() { | |
$('.container').stop().addClass('active'); | |
}); | |
$('.close').on('click', function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: #e9e9e9; | |
color: #666666; | |
font-family: 'RobotoDraft', 'Roboto', sans-serif; | |
font-size: 14px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// time and time end | |
console.time("This"); | |
let total = 0; | |
for (let j = 0; j < 10000; j++) { | |
total += j | |
} | |
console.log("Result", total); | |
console.timeEnd("This"); | |
// Memory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
export default class App extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
count: 0, | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react' | |
const App = () => { | |
const [count, setCount] = useState(0) | |
const onCount = () => { | |
setCount(count + 1) | |
} | |
return ( | |
<div> |
OlderNewer