Skip to content

Instantly share code, notes, and snippets.

View madun's full-sized avatar
👻

Ilman Manarul Qori madun

👻
  • Bandung, Indonesia
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Modal Dialog</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</head>
function appendChildren(decorateDivFunction) {
var allDivs = document.getElementsByTagName("div");
var length = allDivs.length;
for (var i = 0; i < length; i++) {
var newDiv = document.createElement("div");
decorateDivFunction(newDiv);
allDivs[i].appendChild(newDiv);
}
}
@madun
madun / css2JDS
Created January 21, 2019 02:43
Studikasus Css2
<!-- created by: Ilman Manarul Qori -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Modal Dialog</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
@madun
madun / css1JDS
Created January 21, 2019 02:39
Studi kasus CSS#1
<!-- created by: ilman manarul qori-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Avatar</title>
<style>
/* Write your CSS solution here (do not edit the surrounding HTML) */
.avatar {
border-radius: 50%;
@madun
madun / htmlJDS
Created January 21, 2019 02:35
Studikasus HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Company page</title>
</head>
<body>
<p>Welcome! Here you can find the following things:</p>
<ol>
<li><a href="#logo">Company's logo</a></li>
@madun
madun / jsJDS
Created January 21, 2019 02:21
Studi Kasus Javascript
// created: Ilman Manarul Qori
function appendChildren(decorateDivFunction) {
var allDivs = document.getElementsByTagName("div");
var length = allDivs.length;
for (var i = 0; i < length; i++) {
var newDiv = document.createElement("div");
decorateDivFunction(newDiv);
allDivs[i].appendChild(newDiv);