ate
CSS
JS
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | module.exports = function(grunt) { const sass = require('node-sass'); // Configuration grunt.initConfig({ // pass in options to plugins // refenrece to files etc sass: { options: { implementation: sass }, dist: { files: [{ src: 'sass/styles.scss', dest: 'css/main.css' }] } } }); // Load plugins grunt.loadNpmTasks('grunt-sass'); // Register tasks grunt.registerTask('convert-sass', 'sass'); grunt.registerTask('run', function() { console.log('running task from grunt'); }); grunt.registerTask('testajjah', function() { console.log('running test task from grunt'); }); grunt.registerTask('allTasks', ['run', 'testajjah']) } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | nav { background-color: rgba(93, 236, 189, 0.6); position: relative; padding: 0 0 0 18px; margin-top: 30px; } nav ul { list-style: none; margin: 0; padding: 0; } nav > ul > li { float: left; } nav ul::after { content: ''; display: block; clear: both; } nav ul li a { display: inline-block; color: #fff; padding: 10px 20px; text-decoration: none; width: 125px; transition: all .5s ease-in; } nav ul li a:hover { background-color: #399939; } nav ul ul { visibility: hidden; opacity: 0; position: absolute; top: 100%; background-color: rgba(0, 102, 102, .7); transition: all 1s ease-in; } nav ul li:hover { background-color: rgba(0, 102, 102, .7); } nav ul li:hover > ul { visibility: visible; opacity: 1; } nav ul ul ul { left: 100%; top: 0; } nav ul ul li { position: relative; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> Simple Nav </title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <nav> <ul> <li><a href="#"> Home </a> <ul> <li><a href="#">Home 1</a></li> <li><a href="#">Home 2</a></li> </ul> </li> <li><a href="#"> Articles </a></li> <li><a href="#"> List </a></li> <li><a href="#"> Number </a> <ul> <li><a href="#"> Number 1</a></li> <li><a href="#"> Number 2</a> <ul> <li><a href="#"> Number 2a</a></li> <li><a href="#"> Number 2b</a></li> <li><a href="#"> Number 2c</a> <ul> <li><a href="#"> Number 2c1</a></li> <li><a href="#"> Number 2c2</a></li> <li><a href="#"> Number 2c3</a></li> </ul> </li> </ul> </li> </ul> </li> <li><a href="#"> Contact Poipo </a></li> </ul> </nav> </body> </html> |
1 2 3 4 5 6 7 8 | nav ul ul ul { left: 100%; top: 0; } nav ul ul li { position: relative; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> Simple Nav </title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <nav> <ul> <li> <a href="#"> Home </a> <ul> <li><a href="#">Home 1</a></li> <li><a href="#">Home 2</a></li> </ul> </li> <li><a href="#"> Articles </a></li> <li><a href="#"> List </a></li> <li><a href="#"> Number </a> <ul> <li><a href="#"> Number 1</a></li> <li><a href="#"> Number 2</a></li> </ul> </li> <li><a href="#"> Contact Poipo </a></li> </ul> </nav> </body> </html> |
1 2 3 4 5 6 7 8 9 | nav { background-color: rgba(93, 236, 189, 0.6); position: relative; padding: 45px 0 45px 18px; } nav ul { list-style: none; } |
1 2 3 4 5 | nav ul { list-style: none; margin: 0; padding: 0; } |
1 2 3 | nav > ul > li { float: left; } |
1 2 3 4 5 | nav ul::after { content: ''; display: block; clear: both; } |
1 2 3 4 5 6 7 8 9 10 11 | nav ul li a { display: inline-block; color: #fff; padding: 10px 20px; text-decoration: none; width: 125px; } nav ul li a:hover { background-color: #399939; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | nav ul ul { display: none; position: absolute; top: 100%; background-color: rgba(0, 102, 102, .7); } nav ul li:hover { background-color: rgba(0, 102, 102, .7); } nav ul li:hover > ul { display: block; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | <!DOCTYPE html> <html> <head> <meta content="width=device-width, initial-scale=1"> <style> #myvideobackground { position: fixed; right: 0; left: 0; bottom: 0; min-width: 100%; min-height: 100%; } .myContent { position: fixed; bottom: 0; padding: 20px; margin: 20px; background: #91f3b6; opacity: 0.80; } .myContent h2 { color: purple; font-size: 34px; } .myContent p { font-family: 'Times New Roman', Times, serif; font-style: oblique; } .myContent .div2 { width: 100%; text-align: center; } #videoBtn { background-color: cornflowerblue; width: 80px; transition: 1s; } #videoBtn:hover { background-color: rgb(0, 255, 98); } </style> </head> <body> <video autoplay muted loop id="myvideobackground"> <source src="Pemandangan 1.mp4" type="video/mp4"> Your browser does not support HTML5 video... </video> <div class="myContent"> <h2> Ini adalah contoh video background </h2> <p> Lorem ipsum dolor sit amet, an his etiam torquatos. Tollit soleat phaedrum te duo, eum cu recteque expetendis neglegentur. Cu mentitum maiestatis persequeris pro, pri ponderum tractatos ei. Id qui nemore latine molestiae, ad mutat oblique delicatissimi pro</p> <div class="div2"><button id="videoBtn" onclick="playPause">Pause</button></div> </div> </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <script> var video = document.getElementById("myvideobackground"); var vidBtn = document.getElementById("videoBtn"); // vidBtn.addEventListener("click", playPause); function playPause () { console.log('here here here') if (video.paused) { video.play(); vidBtn.innerHTML = "Pause"; } else { video.pause(); vidBtn.innerHTML = "Play"; } } </script> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | <!DOCTYPE html> <html> <head> <meta content="width=device-width, initial-scale=1"> <style> #myvideobackground { position: fixed; right: 0; left: 0; bottom: 0; min-width: 100%; min-height: 100%; } .myContent { position: fixed; bottom: 0; padding: 20px; margin: 20px; background: #91f3b6; opacity: 0.80; } .myContent h2 { color: purple; font-size: 34px; } .myContent p { font-family: 'Times New Roman', Times, serif; font-style: oblique; } .myContent .div2 { width: 100%; text-align: center; } #videoBtn { background-color: cornflowerblue; width: 80px; transition: 1s; } #videoBtn:hover { background-color: rgb(0, 255, 98); } </style> </head> <body> <video autoplay muted loop id="myvideobackground"> <source src="Pemandangan 1.mp4" type="video/mp4"> Your browser does not support HTML5 video... </video> <div class="myContent"> <h2> Ini adalah contoh video background </h2> <p> Lorem ipsum dolor sit amet, an his etiam torquatos. Tollit soleat phaedrum te duo, eum cu recteque expetendis neglegentur. Cu mentitum maiestatis persequeris pro, pri ponderum tractatos ei. Id qui nemore latine molestiae, ad mutat oblique delicatissimi pro</p> <div class="div2"><button id="videoBtn" onclick="playPause()">Pause</button></div> </div> <script> var video = document.getElementById("myvideobackground"); var vidBtn = document.getElementById("videoBtn"); // vidBtn.addEventListener("click", playPause); function playPause () { console.log('here here here') if (video.paused) { video.play(); vidBtn.innerHTML = "Pause"; } else { video.pause(); vidBtn.innerHTML = "Play"; } } </script> </body> </html> |