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> | |
<head> | |
<title>Ajax Corona</title> | |
<script | |
src="https://code.jquery.com/jquery-3.4.1.min.js" | |
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" | |
crossorigin="anonymous"> | |
</script> | |
</head> |
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> | |
<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"> |
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 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 --> |
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 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'; ?> |
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 | |
// 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 |
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 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'; ?> |
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
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']; | |
}); |
OlderNewer