Skip to content

Instantly share code, notes, and snippets.

View blogcacanid's full-sized avatar

Rony Chandra Kudus blogcacanid

  • cacan.id
  • Jakarta
View GitHub Profile
@blogcacanid
blogcacanid / index.html
Last active April 16, 2020 10:17
index Ajac Corona
<!DOCTYPE html>
<html>
<head>
<title>Ajax Corona</title>
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous">
</script>
</head>
@blogcacanid
blogcacanid / layout.php
Last active April 16, 2020 10:16
layout template Covid-19 AngularJS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Covid-19 Angular JS </title>
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome -->
<link rel="stylesheet" href="../plugins/fontawesome-free/css/all.min.css">
@blogcacanid
blogcacanid / _head.php
Created April 16, 2020 10:15
_head Covid-19 AngularJS
<?php include 'get_uri.php'; ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Covid-19 Angular JS | <?php echo ucwords($uriSegments[2]); ?></title>
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome -->
@blogcacanid
blogcacanid / _navbar.php
Created April 16, 2020 10:19
_navbar Covid-19 AngularJS
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
</li>
</ul>
<h3>Sistem Informasi Covid-19 - AngularJS</h3>
</nav>
@blogcacanid
blogcacanid / _sidebar.php
Created April 16, 2020 10:21
_sidebar Covid-19 AngularJS
<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="index3.html" class="brand-link">
<img src="https://i.imgur.com/YLiSEbF.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
style="opacity: .8">
<span class="brand-text font-weight-light">Covid-19</span>
</a>
<!-- Sidebar -->
@blogcacanid
blogcacanid / _footer.php
Created April 16, 2020 10:22
_footer Covid-19 AngularJS
@blogcacanid
blogcacanid / index.php
Created April 16, 2020 10:23
index _layout Covid-19 AngularJS
<?php include '_head.php'; ?>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<!-- Navbar -->
<?php include '_navbar.php'; ?>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<?php include '_sidebar.php'; ?>
@blogcacanid
blogcacanid / get_uri.php
Created April 16, 2020 10:25
get_uri Covid-19 AngularJS
<?php
// Get URI Segments
$uriSegments = explode("/", parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
// Usage:
// URL = http://www.example.com/codex/foo/bar.
//echo $uriSegments[1]; //returns codex
//echo $uriSegments[2]; //returns foo
//echo $uriSegments[3]; //returns bar
// Get Last URL Segment
@blogcacanid
blogcacanid / index.php
Created April 16, 2020 10:27
index indonesia Covid-19 AngularJS
<?php include '../_layouts/_head.php'; ?>
<body class="hold-transition sidebar-mini layout-fixed" ng-app="myApp">
<div class="wrapper">
<!-- Navbar -->
<?php include '../_layouts/_navbar.php'; ?>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<?php include '../_layouts/_sidebar.php'; ?>
@blogcacanid
blogcacanid / indonesia.js
Created April 16, 2020 10:29
indonesia js indonesia Covid-19 AngularJS
var app = angular.module('myApp', []);
app.config(function($httpProvider) {
//Enable cross domain calls
$httpProvider.defaults.useXDomain = true;
//Remove the header containing XMLHttpRequest used to identify ajax call
//that would prevent CORS from working
delete $httpProvider.defaults.headers.common['X-Requested-With'];
});