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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Position Center</title> | |
<style> | |
.container{ | |
border:20px solid rgba(0,0,0,.5); | |
width: 400px; | |
height: 200px; |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Scroll untuk play video | Tutorial-Webdesign.com</title> | |
<script src="//code.jquery.com/jquery-1.10.2.js"></script> | |
<script> | |
function scrollVideo() { | |
var video = $('#video').get(0), | |
videoLength = video.duration, |
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
<?php | |
//API URL | |
$url = 'http://www.contohweb.com/api'; | |
//create a new cURL resource | |
$ch = curl_init($url); | |
//setup request to send json via POST | |
$data = array( |
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
<?php | |
$statusMsg = ''; | |
$msgClass = ''; | |
if(isset($_POST['submit'])){ | |
// Get the submitted form data | |
$email = $_POST['email']; | |
$name = $_POST['name']; | |
$subject = $_POST['subject']; | |
$message = $_POST['message']; |
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 lang="en"> | |
<head> | |
<meta charset='UTF-8'> | |
<title>Animasi Loading Saat Pertama Membuka Website</title> | |
<meta name="description" content="Menampilkan animasi loading saat membuka website" /> | |
<meta name="keywords" content="website animation, loading animation, jquery animation, jquery loading, preloader, animasi loading" /> | |
<link href='http://fonts.googleapis.com/css?family=Titillium+Web:400,200' rel='stylesheet' type='text/css'> | |
<style> |
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
<?php | |
// array | |
$array = Array ( | |
"0" => Array ( | |
"id" => "USR1", | |
"name" => "Steve Jobs", | |
"company" => "Apple" | |
), | |
"1" => Array ( | |
"id" => "USR2", |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Tabel Responsive dengan CSS dan HTML | Jurnalweb.com</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
body { | |
font-family: "Times New Roman", serif; | |
line-height: 1.25; |
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
<?php | |
function check_email($username, $password) | |
{ | |
//Connect Gmail feed atom | |
$url = "https://mail.google.com/mail/feed/atom"; | |
// Send Request to read email | |
$curl = curl_init(); | |
curl_setopt($curl, CURLOPT_URL, $url); |
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
<?php | |
/* Mengambil file dari hosting lama */ | |
/* File juga bisa diambil dari IP tertentu */ | |
$content = file_get_contents("http://DOMAINLAMA.com/FILE_WEB_SAYA.zip"); | |
/* Menyimpan file di hosting baru. pada folder yang diinginkan */ |
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
<?php | |
function fetch_og($url) | |
{ | |
$data = file_get_contents($url); | |
$dom = new DomDocument; | |
@$dom->loadHTML($data); | |
$xpath = new DOMXPath($dom); | |
# query metatags dengan prefix og | |
$metas = $xpath->query('//*/meta[starts-with(@property, \'og:\')]'); |
NewerOlder