Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var hash = document.location.hash;
- var prefix = "profile.php?tab_";
- if (hash) {
- $('.nav-tabs a[href='+hash.replace(prefix,"")+']').tab('show');
- }
- // Change hash for page-reload
- $('.nav-tabs a').on('shown.bs.tab', function (e) {
- window.location.hash = e.target.hash.replace("#", "#" + prefix);
- });
- </script>
- <script>
- $('#myTab a[href="#profile"]').tab('show'); // script for activating bs tabbes but it's not working:|
- $('#myTab a:menu1').tab('show');
- $('#myTab a:menu2').tab('show');
- </script>
- <script>
- var app = angular.module("myApp", ["ngRoute"]); // script for defining routes
- app.config(function($routeProvider) {
- $routeProvider
- .when("/", {
- templateUrl : "profile_info.php"
- })
- .when("/menu1", {
- templateUrl : "rating_fund.php"
- })
- .when("/menu2", {
- templateUrl : "message.php"
- })
- .when("/blue", {
- templateUrl : "tarh_summary.php"
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement