Skip to content

Instantly share code, notes, and snippets.

View tutweb's full-sized avatar

Tutorial Web Design tutweb

  • Tutweb
  • Indonesia
View GitHub Profile
@tutweb
tutweb / embed-pdf.html
Created May 13, 2016 02:27
Cara menampilkan file PDF di halaman website HTML (EMBED)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Cara menampilkan file PDF di halaman website HTML (EMBED)</title>
</head>
<body>
<embed src="LOKASI_FILE.pdf" width="550" height="600"> </embed>
</body>
</html>
@tutweb
tutweb / tabel-responsive.html
Last active December 5, 2020 13:02
Contoh tabel responsive dengan css dan html
<!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;
@tutweb
tutweb / kunci-konten.html
Created April 16, 2016 13:06
Kunci Konten Dengan Jquery
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Kunci Konten agar tidak bisa di edit di inspect element - Jurnalweb.com</title>
<script src="//code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="//cnova.github.io/jquery-lock/release/jquery.lock.min.js"></script>
<script>
$(document).ready(function() {
$(".kunci").lock();
@tutweb
tutweb / SyntaxHighlighter-to-Pastacode
Created December 30, 2014 02:29
Replace SyntaxHighlighter format to Pastacode
UPDATE wp_posts SET post_content = REPLACE ( post_content, '[html]
', '[pastacode lang="markup" message="" highlight="" provider="manual"]
<pre><code>');
UPDATE wp_posts SET post_content = REPLACE ( post_content, '
[/html]', '</code></pre>
[/pastacode]');
UPDATE wp_posts SET post_content = REPLACE ( post_content, '[css]
', '[pastacode lang="css" message="" highlight="" provider="manual"]
@tutweb
tutweb / og-php.php
Last active May 27, 2019 10:25
Get Open Graph Meta Tag Using PHP
<?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:\')]');
@tutweb
tutweb / scroll-play-video.html
Created September 6, 2014 06:29
Scroll to play video using jquery
<!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,
@tutweb
tutweb / animasi-background-scroll.html
Last active August 29, 2015 14:06
Animasi Bakcground Scroll
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Animasi Background Ketika Scroll</title>
<style>
*{
padding: 0;
margin: 0;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Demo CSS Shapes</title>
<style>
*{
padding: 0;
margin: 0;
}
@tutweb
tutweb / animasi-background.html
Created August 15, 2014 03:35
Membuat Animasi Background Website Dengan CSS3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Animasi Background CSS3</title>
<style>
body{
background-color: #f1c40f;
-webkit-animation: color 5s ease-in 0s infinite alternate running;
-moz-animation: color 5s linear 0s infinite alternate running;
@tutweb
tutweb / gmail.php
Created May 14, 2014 14:25
Mendapatkan list email dari Gmail dengan PHP
<?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);