├── .gitignore ├── error.php ├── img ├── demo.png ├── love.png ├── favicon.ico ├── loader.gif └── keyboard.jpg ├── php ├── signup.php ├── login.php ├── newsfeed.php ├── search.php ├── email_check.php ├── poststatus.php ├── unfriend.php ├── blockuser.php ├── sendrequest.php ├── acceptrequest.php ├── rejectrequest.php ├── db.php ├── photo.php ├── upload.php ├── edit-profile.php └── class.php ├── fonts ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2 ├── .htaccess ├── README.md ├── logout.php ├── css ├── home.css ├── cover.css ├── bootstrap-theme.min.css └── bootstrap-theme.css ├── js ├── npm.js ├── form.min.js └── bootstrap.min.js ├── common.php ├── test.html ├── walk.php ├── messages.php ├── settings.php ├── notifications.php ├── changephoto.php ├── sandeep.sql ├── friends.php ├── request.php ├── home.php ├── edit.php ├── index.php └── profile.php /.gitignore: -------------------------------------------------------------------------------- 1 | /uploads -------------------------------------------------------------------------------- /error.php: -------------------------------------------------------------------------------- 1 |

2 | Hey Are you lost? 3 |

-------------------------------------------------------------------------------- /img/demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sandeep1995/timebranch/HEAD/img/demo.png -------------------------------------------------------------------------------- /img/love.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sandeep1995/timebranch/HEAD/img/love.png -------------------------------------------------------------------------------- /php/signup.php: -------------------------------------------------------------------------------- 1 | complete_signup(); 4 | ?> -------------------------------------------------------------------------------- /img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sandeep1995/timebranch/HEAD/img/favicon.ico -------------------------------------------------------------------------------- /img/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sandeep1995/timebranch/HEAD/img/loader.gif -------------------------------------------------------------------------------- /img/keyboard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sandeep1995/timebranch/HEAD/img/keyboard.jpg -------------------------------------------------------------------------------- /php/login.php: -------------------------------------------------------------------------------- 1 | login_complete(trim($_POST['loginEmail']),sha1($_POST['loginPassword'])); 4 | ?> -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sandeep1995/timebranch/HEAD/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sandeep1995/timebranch/HEAD/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sandeep1995/timebranch/HEAD/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sandeep1995/timebranch/HEAD/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /php/newsfeed.php: -------------------------------------------------------------------------------- 1 | news_feed($user_id,false); 6 | ?> -------------------------------------------------------------------------------- /php/search.php: -------------------------------------------------------------------------------- 1 | live_search($search_term); 6 | 7 | ?> -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | RewriteEngine On 2 | RewriteCond %{REQUEST_FILENAME} !-d 3 | RewriteCond %{REQUEST_FILENAME} !-f 4 | RewriteRule (.*) $1.php [L] 5 | IndexIgnore * 6 | -------------------------------------------------------------------------------- /php/email_check.php: -------------------------------------------------------------------------------- 1 | check_email($email);} 6 | ?> -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # timebranch 2 | ## Youtube demo link 3 | https://www.youtube.com/watch?v=9LhMBfxINEA
4 | A facebook style social networking site. Real time. Make new Friends | Make it large | Make in INDIA 5 | -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /php/poststatus.php: -------------------------------------------------------------------------------- 1 | post_status($user_id,$status); 8 | } 9 | ?> -------------------------------------------------------------------------------- /php/unfriend.php: -------------------------------------------------------------------------------- 1 | unfriend($friend_id,$user_id); 8 | } 9 | ?> -------------------------------------------------------------------------------- /php/blockuser.php: -------------------------------------------------------------------------------- 1 | add_to_block_list($friend_id,$user_id); 8 | } 9 | ?> -------------------------------------------------------------------------------- /php/sendrequest.php: -------------------------------------------------------------------------------- 1 | send_request_to($friend_id,$user_id); 8 | } 9 | ?> -------------------------------------------------------------------------------- /php/acceptrequest.php: -------------------------------------------------------------------------------- 1 | accept_request_from($friend_id,$user_id); 8 | } 9 | ?> -------------------------------------------------------------------------------- /php/rejectrequest.php: -------------------------------------------------------------------------------- 1 | reject_request_of($friend_id,$user_id); 8 | } 9 | ?> -------------------------------------------------------------------------------- /php/db.php: -------------------------------------------------------------------------------- 1 | setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 7 | } 8 | catch(PDOException $ex) 9 | { 10 | print_r($ex); 11 | die(); 12 | } 13 | ?> -------------------------------------------------------------------------------- /css/home.css: -------------------------------------------------------------------------------- 1 | @import url(https://fonts.googleapis.com/css?family=Roboto); 2 | html, 3 | body { 4 | margin: 0; 5 | padding: 0; 6 | background-color: #ffffff; 7 | color: #1b1b1b; 8 | font-family: 'Roboto', sans-serif; 9 | } 10 | textarea { 11 | resize: none; 12 | } 13 | #main_page { 14 | opacity: 1; 15 | border-top: none; 16 | background: #fff; 17 | } -------------------------------------------------------------------------------- /js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /php/photo.php: -------------------------------------------------------------------------------- 1 | 19 | 20 |
" width="100%"/> 29 |
-------------------------------------------------------------------------------- /common.php: -------------------------------------------------------------------------------- 1 | 20 |
21 | return_mutual_ids($user_id,$other_id); 23 | if(!empty($array_people_you_may_know)){ 24 | foreach($array_people_you_may_know as $key => $value){ 25 | ?> 26 |
show_glance($value); $q->no_of_mutual_frineds($user_id,$value); ?>
27 | Try to make friends first'; 32 | } 33 | ?> 34 |
-------------------------------------------------------------------------------- /php/upload.php: -------------------------------------------------------------------------------- 1 | get_property_of($user_id,'id'); 21 | 22 | $target = "../uploads/$target_user_file/"; 23 | 24 | $actual_path = "http://localhost/sandeep/uploads/".$target_user_file."/".$_FILES['pic']['name']; 25 | 26 | $up = "uploads/".$_FILES['pic']['name']; 27 | 28 | move_uploaded_file($_FILES['pic']['tmp_name'],$target.$_FILES['pic']['name']); 29 | 30 | echo '

Successfully Uploaded Your Picture

'; 31 | 32 | echo ''; 33 | 34 | $q->add($user_id,'profile_picture_path',$actual_path); 35 | 36 | } 37 | else 38 | { 39 | echo '

Warning! We do not support this format

'; 40 | } 41 | 42 | } 43 | else{ 44 | echo '

Warning! Are you kidding? Please choose a image

'; 45 | } 46 | 47 | ?> -------------------------------------------------------------------------------- /php/edit-profile.php: -------------------------------------------------------------------------------- 1 | add($user_id,'mobile_no',$mobile_no); 17 | } 18 | 19 | if(isset($_POST['hometown'])){ 20 | $hometown = ucwords(trim($_POST['hometown'])); 21 | $q->add($user_id,'hometown',$hometown); 22 | } 23 | 24 | if(isset($_POST['school_name'])){ 25 | $school_name = ucwords(trim($_POST['school_name'])); 26 | $q->add($user_id,'school_name',$school_name); 27 | } 28 | 29 | if(isset($_POST['college_name'])){ 30 | $college_name =ucwords(trim($_POST['college_name'])); 31 | $q->add($user_id,'college_name',$college_name); 32 | } 33 | 34 | if(isset($_POST['language_1st'])){ 35 | $langugae_1st= ucwords(trim($_POST['language_1st'])); 36 | $q->add($user_id,'language_1st',$langugae_1st); 37 | } 38 | 39 | if(isset($_POST['language_2nd'])){ 40 | $langugae_2nd= ucwords(trim($_POST['language_2nd'])); 41 | $q->add($user_id,'language_2nd',$langugae_2nd); 42 | } 43 | 44 | if(isset($_POST['language_3rd'])) 45 | { 46 | $langugae_3rd= ucwords(trim($_POST['language_3rd'])); 47 | $q->add($user_id,'language_3rd',$langugae_3rd); 48 | } 49 | if(isset($_POST['relationship'])) 50 | { 51 | $relationship = ucwords(trim($_POST['relationship'])); 52 | $q->add($user_id,'relationship',$relationship); 53 | } 54 | 55 | $q->add($user_id,'profile_status',$_POST['profile_status']); 56 | 57 | 58 | echo '

Successfully Updated Your Profile

'; 59 | ?> -------------------------------------------------------------------------------- /test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 42 | 43 | 44 |

HTML5 File Upload Progress Bar Tutorial

45 |
46 |
47 | 48 | 49 |

50 |

51 |
52 | 53 | -------------------------------------------------------------------------------- /walk.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | timeBranch | Make new Friends | Make it large | Make in INDIA 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 42 | 43 | 44 |
45 | 46 | 47 | nav(); ?> 48 |
49 | 50 |
51 | 52 | 53 |
54 | 55 | 56 | 61 | 62 | -------------------------------------------------------------------------------- /messages.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | timeBranch | Make new Friends | Make it large | Make in INDIA 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 42 | 43 | 44 |
45 | 46 | nav(); ?> 47 | 48 | 49 |
50 |
51 | 52 |
53 |
54 | 55 |
56 |
57 | 58 |
59 |
60 |
61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /settings.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | timeBranch | Make new Friends | Make it large | Make in INDIA 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 42 | 43 | 44 |
45 | 46 | 47 | nav(); ?> 48 | 49 | 50 |
51 |
52 | 53 |
54 |
55 | 56 |
57 |
58 | 59 |
60 |
61 |
62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /notifications.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | timeBranch | Make new Friends | Make it large | Make in INDIA 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 42 | 43 | 44 |
45 | 46 | 47 | nav(); ?> 48 | 49 | 50 | 51 |
52 |
53 | 54 |
55 |
56 | 57 |
58 |
59 | 60 |
61 |
62 |
63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /changephoto.php: -------------------------------------------------------------------------------- 1 | 11 |
12 |
13 | 14 |
15 |
16 |
17 | 22 |
23 | 24 |
28 | 29 | 32 |
33 |
34 |
35 | 36 | -------------------------------------------------------------------------------- /sandeep.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.5.1 3 | -- http://www.phpmyadmin.net 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Mar 10, 2016 at 03:50 PM 7 | -- Server version: 10.1.10-MariaDB 8 | -- PHP Version: 5.6.15 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET time_zone = "+00:00"; 12 | 13 | 14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 17 | /*!40101 SET NAMES utf8mb4 */; 18 | 19 | -- 20 | -- Database: `sandeep` 21 | -- 22 | 23 | -- -------------------------------------------------------- 24 | 25 | -- 26 | -- Table structure for table `block_list` 27 | -- 28 | 29 | CREATE TABLE `block_list` ( 30 | `id` int(11) NOT NULL, 31 | `block_id` int(11) NOT NULL, 32 | `user_id` int(11) NOT NULL 33 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 34 | 35 | -- -------------------------------------------------------- 36 | 37 | -- 38 | -- Table structure for table `friends` 39 | -- 40 | 41 | CREATE TABLE `friends` ( 42 | `id` int(11) NOT NULL, 43 | `user_id` int(11) NOT NULL, 44 | `friend_id` int(11) NOT NULL, 45 | `friend_since` int(11) NOT NULL 46 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 47 | 48 | -- -------------------------------------------------------- 49 | 50 | -- 51 | -- Table structure for table `friend_requests` 52 | -- 53 | 54 | CREATE TABLE `friend_requests` ( 55 | `id` int(11) NOT NULL, 56 | `sent_to_id` int(11) NOT NULL, 57 | `sent_from_id` int(11) NOT NULL, 58 | `sent_time` int(11) NOT NULL 59 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 60 | 61 | -- -------------------------------------------------------- 62 | 63 | -- 64 | -- Table structure for table `posts` 65 | -- 66 | 67 | CREATE TABLE `posts` ( 68 | `id` int(11) NOT NULL, 69 | `user_id` int(11) NOT NULL, 70 | `status` varchar(2048) NOT NULL, 71 | `posted_at` bigint(20) NOT NULL 72 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 73 | 74 | -- -------------------------------------------------------- 75 | 76 | -- 77 | -- Table structure for table `user` 78 | -- 79 | 80 | CREATE TABLE `user` ( 81 | `id` int(11) NOT NULL, 82 | `first_name` varchar(256) NOT NULL, 83 | `middle_name` varchar(256) NOT NULL, 84 | `last_name` varchar(256) NOT NULL, 85 | `email` varchar(256) NOT NULL, 86 | `password` varchar(1024) NOT NULL, 87 | `joining_time_stamp` bigint(20) NOT NULL, 88 | `sex` text NOT NULL, 89 | `profile_status` varchar(256) NOT NULL, 90 | `profile_picture_path` varchar(256) NOT NULL, 91 | `mobile_no` varchar(20) NOT NULL, 92 | `hometown` varchar(256) NOT NULL, 93 | `school_name` varchar(256) NOT NULL, 94 | `college_name` varchar(256) NOT NULL, 95 | `language_1st` varchar(256) NOT NULL, 96 | `language_2nd` varchar(256) NOT NULL, 97 | `language_3rd` varchar(256) NOT NULL, 98 | `relationship` varchar(256) NOT NULL 99 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 100 | 101 | -- 102 | -- Indexes for dumped tables 103 | -- 104 | 105 | -- 106 | -- Indexes for table `block_list` 107 | -- 108 | ALTER TABLE `block_list` 109 | ADD PRIMARY KEY (`id`); 110 | 111 | -- 112 | -- Indexes for table `friends` 113 | -- 114 | ALTER TABLE `friends` 115 | ADD PRIMARY KEY (`id`); 116 | 117 | -- 118 | -- Indexes for table `friend_requests` 119 | -- 120 | ALTER TABLE `friend_requests` 121 | ADD PRIMARY KEY (`id`); 122 | 123 | -- 124 | -- Indexes for table `posts` 125 | -- 126 | ALTER TABLE `posts` 127 | ADD PRIMARY KEY (`id`); 128 | 129 | -- 130 | -- Indexes for table `user` 131 | -- 132 | ALTER TABLE `user` 133 | ADD PRIMARY KEY (`id`), 134 | ADD KEY `id` (`id`); 135 | 136 | -- 137 | -- AUTO_INCREMENT for dumped tables 138 | -- 139 | 140 | -- 141 | -- AUTO_INCREMENT for table `block_list` 142 | -- 143 | ALTER TABLE `block_list` 144 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; 145 | -- 146 | -- AUTO_INCREMENT for table `friends` 147 | -- 148 | ALTER TABLE `friends` 149 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; 150 | -- 151 | -- AUTO_INCREMENT for table `friend_requests` 152 | -- 153 | ALTER TABLE `friend_requests` 154 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; 155 | -- 156 | -- AUTO_INCREMENT for table `posts` 157 | -- 158 | ALTER TABLE `posts` 159 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44; 160 | -- 161 | -- AUTO_INCREMENT for table `user` 162 | -- 163 | ALTER TABLE `user` 164 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; 165 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 166 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 167 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 168 | -------------------------------------------------------------------------------- /friends.php: -------------------------------------------------------------------------------- 1 | get_sent_friend_request_ids($user_id); 12 | $_SESSION['incoming'] = $q->get_incoming_requests($user_id); 13 | $_SESSION['friends'] = $q->get_friend_ids($user_id); 14 | $_SESSION['block_list'] = $q->get_block_ids($user_id); 15 | } 16 | ?> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | timeBranch | Make new Friends | Make it large | Make in INDIA 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 45 | 46 | 47 |
48 | 49 | 50 | nav(); ?> 51 | 52 | 53 |
54 |
55 | You do not have any friends. Try sending request to others or tell your friends to join.

'; 58 | } 59 | else{ 60 | 61 | foreach($_SESSION['friends'] as $key => $val){ 62 | ?> 63 |
64 | 65 |
66 | 69 |
70 |
71 | "> 80 |
81 |
82 |

get_property_of($val,"profile_status")); ?>
get_property_of($val,"sex")); ?>

83 |
84 | 85 |
86 |
87 |
'; 90 | } 91 | ?> 92 |
93 |
94 |
95 |
96 |
97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /request.php: -------------------------------------------------------------------------------- 1 | get_sent_friend_request_ids($user_id); 12 | $_SESSION['incoming'] = $q->get_incoming_requests($user_id); 13 | $_SESSION['friends'] = $q->get_friend_ids($user_id); 14 | $_SESSION['block_list'] = $q->get_block_ids($user_id); 15 | } 16 | ?> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | timeBranch | Make new Friends | Make it large | Make in INDIA 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 45 | 46 | 47 |
48 | 49 | 50 | nav(); ?> 51 | 52 | 53 |
54 |
55 |
56 |

Received Requests

57 |
58 | You do not have any incoming friend requests.

'; 61 | } 62 | else{ 63 | 64 | foreach($_SESSION['incoming'] as $key => $val){ 65 | ?> 66 |
67 | 68 |
69 | 72 |
73 |
74 | "> 83 |
84 |
85 |

get_property_of($val,"profile_status")); ?>
get_property_of($val,"sex")); ?>

86 |
87 | 88 |
89 |
90 |
'; 93 | } 94 | ?> 95 |
96 |
97 |
98 |
99 |
100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /css/cover.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Globals 3 | */ 4 | @import url(https://fonts.googleapis.com/css?family=Roboto); 5 | /* Links */ 6 | a, 7 | a:focus, 8 | a:hover { 9 | color: #fff; 10 | cursor: pointer; 11 | } 12 | input{ 13 | font-size: larger; 14 | } 15 | .button-trans{ 16 | display: inline-block; 17 | width: 200px; 18 | padding: 8px; 19 | color: #FCF7F7; 20 | border: 1px solid #fff; 21 | text-align: center; 22 | outline: none; 23 | text-decoration: none; 24 | transition: background-color 0.5s ease-out, 25 | color 0.5s ease-out; 26 | } 27 | .button-trans:hover,.button-trans:active{ 28 | background-color: #fff; 29 | color: #1C1717; 30 | text-decoration: none; 31 | transition: background-color 0.5s ease-in, 32 | color 0.5s ease-in; 33 | } 34 | .bar { 35 | opacity: 1; 36 | color: #000; 37 | box-shadow: 2px 2px 3px #252525; 38 | padding: 15px; 39 | background: #fafefb; 40 | border-left: solid 13px #2b64aa; 41 | z-index: 10000; 42 | } 43 | 44 | .form-horizontal { 45 | opacity: 1; 46 | 47 | } 48 | /* Custom default button */ 49 | .btn-default, 50 | .btn-default:hover, 51 | .btn-default:focus { 52 | color: #333; 53 | text-shadow: none; 54 | background-color: #fff; 55 | border: 1px solid #fff; 56 | } 57 | 58 | 59 | /* 60 | * Base structure 61 | */ 62 | html, 63 | body { 64 | height: 100%; 65 | width: 100%; 66 | background: url('../img/keyboard.jpg'); 67 | background-origin: content-box; 68 | background-attachment: relative; 69 | background-position: center center; 70 | min-height: 650px; 71 | width: 100%; 72 | -webkit-background-size: 100%; 73 | -moz-background-size: 100%; 74 | -o-background-size: 100%; 75 | background-size: 100%; 76 | font-family: 'Roboto', sans-serif; 77 | -webkit-background-size: cover; 78 | -moz-background-size: cover; 79 | -o-background-size: cover; 80 | background-size: cover; 81 | background-repeat: no-repeat; 82 | background-color: #398393; 83 | } 84 | body { 85 | color: #fff; 86 | text-align: center; 87 | 88 | } 89 | 90 | /* Extra markup and styles for table-esque vertical and horizontal centering */ 91 | .site-wrapper { 92 | display: table; 93 | width: 100%; 94 | height: 100%; /* For at least Firefox */ 95 | min-height: 100%; 96 | -webkit-box-shadow: inset 0 0 100px rgba(0,0,0,.5); 97 | box-shadow: inset 0 0 100px rgba(0,0,0,.5); 98 | } 99 | .site-wrapper-inner { 100 | display: table-cell; 101 | vertical-align: top; 102 | } 103 | .cover-container { 104 | margin-right: auto; 105 | margin-left: auto; 106 | } 107 | 108 | /* Padding for spacing */ 109 | .inner { 110 | padding: 30px; 111 | } 112 | 113 | 114 | /* 115 | * Header 116 | */ 117 | .masthead-brand { 118 | margin-top: 10px; 119 | margin-bottom: 10px; 120 | } 121 | 122 | .masthead-nav > li { 123 | display: inline-block; 124 | } 125 | .masthead-nav > li + li { 126 | margin-left: 20px; 127 | } 128 | .masthead-nav > li > a { 129 | padding-right: 0; 130 | padding-left: 0; 131 | font-size: 18px; 132 | font-weight: bold; 133 | color: #fff; /* IE8 proofing */ 134 | color: rgba(0,0,0,.75); 135 | border-bottom: 2px solid transparent; 136 | } 137 | .masthead-nav > li > a:hover, 138 | .masthead-nav > li > a:focus { 139 | background-color: transparent; 140 | border-bottom-color: #a9a9a9; 141 | border-bottom-color: rgba(255,255,255,.25); 142 | } 143 | .masthead-nav > .active > a, 144 | .masthead-nav > .active > a:hover, 145 | .masthead-nav > .active > a:focus { 146 | color: #fff; 147 | border-bottom-color: #fff; 148 | } 149 | 150 | @media (min-width: 768px) { 151 | .masthead-brand { 152 | float: left; 153 | } 154 | .masthead-nav { 155 | float: right; 156 | } 157 | } 158 | 159 | 160 | /* 161 | * Cover 162 | */ 163 | 164 | .cover { 165 | padding: 0 20px; 166 | } 167 | .cover .btn-lg { 168 | padding: 10px 20px; 169 | font-weight: bold; 170 | } 171 | 172 | 173 | /* 174 | * Footer 175 | */ 176 | 177 | .mastfoot { 178 | color: #999; /* IE8 proofing */ 179 | color: rgba(255,255,255,.5); 180 | } 181 | 182 | 183 | /* 184 | * Affix and center 185 | */ 186 | 187 | @media (min-width: 768px) { 188 | /* Pull out the header and footer */ 189 | .masthead { 190 | position: fixed; 191 | top: 0; 192 | } 193 | .mastfoot { 194 | position: fixed; 195 | bottom: 0; 196 | } 197 | /* Start the vertical centering */ 198 | .site-wrapper-inner { 199 | vertical-align: middle; 200 | } 201 | /* Handle the widths */ 202 | .masthead, 203 | .mastfoot, 204 | .cover-container { 205 | width: 100%; /* Must be percentage or pixels for horizontal alignment */ 206 | } 207 | } 208 | 209 | @media (min-width: 992px) { 210 | .masthead, 211 | .mastfoot, 212 | .cover-container { 213 | width: 700px; 214 | } 215 | } 216 | 217 | input[type="text"],input[type="email"],input[type="password"]{ 218 | border-radius:0; 219 | padding: 10px; 220 | } -------------------------------------------------------------------------------- /home.php: -------------------------------------------------------------------------------- 1 | get_sent_friend_request_ids($user_id); 13 | $_SESSION['incoming'] = $q->get_incoming_requests($user_id); 14 | $_SESSION['friends'] = $q->get_friend_ids($user_id); 15 | $_SESSION['block_list'] = $q->get_block_ids($user_id); 16 | } 17 | ?> 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | timeBranch | Make new Friends | Make it large | Make in INDIA 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 47 | 48 | 49 | 50 | 51 |
52 | 53 | nav(); ?> 54 | 55 |
56 |
57 | 58 |
59 |
60 |
61 | 62 |
63 |
64 | 65 |
66 |
67 |
68 |
69 |
70 | 71 |
72 |
73 |
74 |
75 |
76 |
77 |

People you may know

78 | people_you_may_know_of($user_id); 80 | ?> 81 |
82 |
83 |
84 | 85 | 145 | 146 | 147 | -------------------------------------------------------------------------------- /edit.php: -------------------------------------------------------------------------------- 1 | 14 | 15 |
16 | 17 |
18 |
19 | 20 |
21 |
22 | 23 | 24 | 25 |
26 | 27 |
28 | 29 |
30 |
31 |
32 | 33 |
34 | 35 |
36 | 37 |
38 |
39 |
40 | 41 |
42 | 43 |
44 |
45 |
46 | 47 |
48 | 49 |
50 |
51 |
52 | 53 |
54 | 55 |
56 |
57 |
58 | 59 |
60 | 61 |
62 |
63 |
64 | 65 |
66 | 67 |
68 |
69 |
70 | 71 |
72 | 73 |
74 |
75 |
76 | 77 |
78 | 79 |
80 |
81 |
82 |
83 | 84 |
85 | 86 | 87 |
88 |
89 | 90 |
91 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | cookie_login($_COOKIE['A'],$_COOKIE['B']); 11 | } 12 | 13 | ?> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | timeBranch | Make new Friends | Make it large | Make in INDIA 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 44 | 53 | 54 | 55 | 56 | 57 | 86 | 87 |
88 | 89 |
90 | 91 |
92 | 93 |
94 |
95 |

timeBranch

96 | 103 |
104 |
105 | 106 |
107 |
108 | 109 | 110 | 111 |
112 |
113 |

Create Account 114 | 115 |

116 |
117 | 118 |
119 | 120 | 121 |
122 |
123 |
124 |
125 | 126 |
127 |
128 | 129 |
130 |
131 | 132 |
133 |
134 |
135 | 136 |
137 | 140 | 143 |
144 |
145 | 146 |
147 | 148 |
149 | 150 |
151 |
152 | 153 |
154 | 155 |
156 | 157 | 158 | 159 |
160 |
161 | Read Rules 162 |
163 |
164 |
165 |

Sign In

166 |
167 |
168 | 169 |
170 | 171 |
172 | 173 |
174 |
175 | 176 |
177 | 178 |
179 | 180 |
181 | 182 |
183 |
184 |
185 | 188 |
189 |
190 |
191 | 192 |
193 | 194 |
195 |
196 | 197 |
198 |
199 |
200 |

About timeBranch

201 |

Tired of using FB?

202 |

timeBranch is a new social networking system for INDIA. Switch to new timeBranch and Explore is awesome new features. Be a part of Revolution. 203 |

Make In India | Make it Large.

204 |

This site is not for everyone, this is for each of one.

205 |
206 |

207 | 208 |
209 | 210 | 211 |
212 |
213 |

Made with lots of in INDIA, Make In India by @sandeepemon.

214 |
215 |
216 | 217 |
218 | 219 |
220 | 221 |
222 | 223 | 225 | 226 | 227 | 228 | 349 | 350 | 351 | -------------------------------------------------------------------------------- /js/form.min.js: -------------------------------------------------------------------------------- 1 | !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=this;if(i.clk=r,"image"==r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n={};n.fileapi=void 0!==e("").get(0).files,n.formdata=void 0!==window.FormData;var i=!!e.fn.prop;e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function r(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;o>a;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function o(a){for(var n=new FormData,i=0;i').val(m.extraData[d].value).appendTo(w)[0]:e('').val(m.extraData[d]).appendTo(w)[0]);m.iframeTarget||v.appendTo("body"),g.attachEvent?g.attachEvent("onload",s):g.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(h){var x=document.createElement("form").submit;x.apply(w)}}finally{w.setAttribute("action",i),w.setAttribute("enctype",c),r?w.setAttribute("target",r):f.removeAttr("target"),e(l).remove()}}function s(t){if(!x.aborted&&!F){if(M=n(g),M||(a("cannot access response document"),t=k),t===D&&x)return x.abort("timeout"),void S.reject(x,"timeout");if(t==k&&x)return x.abort("server abort"),void S.reject(x,"error","server abort");if(M&&M.location.href!=m.iframeSrc||T){g.detachEvent?g.detachEvent("onload",s):g.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"==m.dataType||M.XMLDocument||e.isXMLDoc(M);if(a("isXml="+o),!o&&window.opera&&(null===M.body||!M.body.innerHTML)&&--O)return a("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var u=M.body?M.body:M.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=M.XMLDocument?M.XMLDocument:M,o&&(m.dataType="xml"),x.getResponseHeader=function(e){var t={"content-type":m.dataType};return t[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var c=(m.dataType||"").toLowerCase(),l=/(json|script|text)/.test(c);if(l||m.textarea){var f=M.getElementsByTagName("textarea")[0];if(f)x.responseText=f.value,x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText;else if(l){var p=M.getElementsByTagName("pre")[0],h=M.getElementsByTagName("body")[0];p?x.responseText=p.textContent?p.textContent:p.innerText:h&&(x.responseText=h.textContent?h.textContent:h.innerText)}}else"xml"==c&&!x.responseXML&&x.responseText&&(x.responseXML=X(x.responseText));try{E=_(x,c,m)}catch(y){i="parsererror",x.error=r=y||i}}catch(y){a("error caught: ",y),i="error",x.error=r=y||i}x.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&x.status<300||304===x.status?"success":"error"),"success"===i?(m.success&&m.success.call(m.context,E,"success",x),S.resolve(x.responseText,"success",x),d&&e.event.trigger("ajaxSuccess",[x,m])):i&&(void 0===r&&(r=x.statusText),m.error&&m.error.call(m.context,x,i,r),S.reject(x,"error",r),d&&e.event.trigger("ajaxError",[x,m,r])),d&&e.event.trigger("ajaxComplete",[x,m]),d&&!--e.active&&e.event.trigger("ajaxStop"),m.complete&&m.complete.call(m.context,x,i),F=!0,m.timeout&&clearTimeout(j),setTimeout(function(){m.iframeTarget?v.attr("src",m.iframeSrc):v.remove(),x.responseXML=null},100)}}}var c,l,m,d,p,v,g,x,y,b,T,j,w=f[0],S=e.Deferred();if(S.abort=function(e){x.abort(e)},r)for(l=0;l'),v.css({position:"absolute",top:"-1000px",left:"-1000px"})),g=v[0],x={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var r="timeout"===t?"timeout":"aborted";a("aborting upload... "+r),this.aborted=1;try{g.contentWindow.document.execCommand&&g.contentWindow.document.execCommand("Stop")}catch(n){}v.attr("src",m.iframeSrc),x.error=r,m.error&&m.error.call(m.context,x,r,t),d&&e.event.trigger("ajaxError",[x,m,r]),m.complete&&m.complete.call(m.context,x,r)}},d=m.global,d&&0===e.active++&&e.event.trigger("ajaxStart"),d&&e.event.trigger("ajaxSend",[x,m]),m.beforeSend&&m.beforeSend.call(m.context,x,m)===!1)return m.global&&e.active--,S.reject(),S;if(x.aborted)return S.reject(),S;y=w.clk,y&&(b=y.name,b&&!y.disabled&&(m.extraData=m.extraData||{},m.extraData[b]=y.value,"image"==y.type&&(m.extraData[b+".x"]=w.clk_x,m.extraData[b+".y"]=w.clk_y)));var D=1,k=2,A=e("meta[name=csrf-token]").attr("content"),L=e("meta[name=csrf-param]").attr("content");L&&A&&(m.extraData=m.extraData||{},m.extraData[L]=A),m.forceSync?o():setTimeout(o,10);var E,M,F,O=50,X=e.parseXML||function(e,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},C=e.parseJSON||function(e){return window.eval("("+e+")")},_=function(t,r,a){var n=t.getResponseHeader("content-type")||"",i="xml"===r||!r&&n.indexOf("xml")>=0,o=i?t.responseXML:t.responseText;return i&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),a&&a.dataFilter&&(o=a.dataFilter(o,r)),"string"==typeof o&&("json"===r||!r&&n.indexOf("json")>=0?o=C(o):("script"===r||!r&&n.indexOf("javascript")>=0)&&e.globalEval(o)),o};return S}if(!this.length)return a("ajaxSubmit: skipping submit process - no element selected"),this;var u,c,l,f=this;"function"==typeof t?t={success:t}:void 0===t&&(t={}),u=t.type||this.attr2("method"),c=t.url||this.attr2("action"),l="string"==typeof c?e.trim(c):"",l=l||window.location.href||"",l&&(l=(l.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:l,success:e.ajaxSettings.success,type:u||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var m={};if(this.trigger("form-pre-serialize",[this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&t.beforeSerialize(this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var d=t.traditional;void 0===d&&(d=e.ajaxSettings.traditional);var p,h=[],v=this.formToArray(t.semantic,h);if(t.data&&(t.extraData=t.data,p=e.param(t.data,d)),t.beforeSubmit&&t.beforeSubmit(v,this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[v,this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var g=e.param(v,d);p&&(g=g?g+"&"+p:p),"GET"==t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+g,t.data=null):t.data=g;var x=[];if(t.resetForm&&x.push(function(){f.resetForm()}),t.clearForm&&x.push(function(){f.clearForm(t.includeHidden)}),!t.dataType&&t.target){var y=t.success||function(){};x.push(function(r){var a=t.replaceTarget?"replaceWith":"html";e(t.target)[a](r).each(y,arguments)})}else t.success&&x.push(t.success);if(t.success=function(e,r,a){for(var n=t.context||this,i=0,o=x.length;o>i;i++)x[i].apply(n,[e,r,a||f,f])},t.error){var b=t.error;t.error=function(e,r,a){var n=t.context||this;b.apply(n,[e,r,a,f])}}if(t.complete){var T=t.complete;t.complete=function(e,r){var a=t.context||this;T.apply(a,[e,r,f])}}var j=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}),w=j.length>0,S="multipart/form-data",D=f.attr("enctype")==S||f.attr("encoding")==S,k=n.fileapi&&n.formdata;a("fileAPI :"+k);var A,L=(w||D)&&!k;t.iframe!==!1&&(t.iframe||L)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){A=s(v)}):A=s(v):A=(w||D)&&k?o(v):e.ajax(t),f.removeData("jqxhr").data("jqxhr",A);for(var E=0;Ec;c++)if(d=u[c],f=d.name,f&&!d.disabled)if(t&&o.clk&&"image"==d.type)o.clk==d&&(a.push({name:f,value:e(d).val(),type:d.type}),a.push({name:f+".x",value:o.clk_x},{name:f+".y",value:o.clk_y}));else if(m=e.fieldValue(d,!0),m&&m.constructor==Array)for(r&&r.push(d),l=0,h=m.length;h>l;l++)a.push({name:f,value:m[l]});else if(n.fileapi&&"file"==d.type){r&&r.push(d);var v=d.files;if(v.length)for(l=0;li;i++)r.push({name:a,value:n[i]});else null!==n&&"undefined"!=typeof n&&r.push({name:this.name,value:n})}}),e.param(r)},e.fn.fieldValue=function(t){for(var r=[],a=0,n=this.length;n>a;a++){var i=this[a],o=e.fieldValue(i,t);null===o||"undefined"==typeof o||o.constructor==Array&&!o.length||(o.constructor==Array?e.merge(r,o):r.push(o))}return r},e.fieldValue=function(t,r){var a=t.name,n=t.type,i=t.tagName.toLowerCase();if(void 0===r&&(r=!0),r&&(!a||t.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!t.checked||("submit"==n||"image"==n)&&t.form&&t.form.clk!=t||"select"==i&&-1==t.selectedIndex))return null;if("select"==i){var o=t.selectedIndex;if(0>o)return null;for(var s=[],u=t.options,c="select-one"==n,l=c?o+1:u.length,f=c?o:0;l>f;f++){var m=u[f];if(m.selected){var d=m.value;if(d||(d=m.attributes&&m.attributes.value&&!m.attributes.value.specified?m.text:m.value),c)return d;s.push(d)}}return s}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var r=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var a=this.type,n=this.tagName.toLowerCase();r.test(a)||"textarea"==n?this.value="":"checkbox"==a||"radio"==a?this.checked=!1:"select"==n?this.selectedIndex=-1:"file"==a?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(t===!0&&/hidden/.test(a)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var r=this.type;if("checkbox"==r||"radio"==r)this.checked=t;else if("option"==this.tagName.toLowerCase()){var a=e(this).parent("select");t&&a[0]&&"select-one"==a[0].type&&a.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1}); -------------------------------------------------------------------------------- /css/bootstrap-theme.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.4 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */.btn-danger,.btn-default,.btn-info,.btn-primary,.btn-success,.btn-warning{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-success.active,.btn-success:active,.btn-warning.active,.btn-warning:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-danger .badge,.btn-default .badge,.btn-info .badge,.btn-primary .badge,.btn-success .badge,.btn-warning .badge{text-shadow:none}.btn.active,.btn:active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-o-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#dbdbdb;border-color:#ccc}.btn-default:focus,.btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.btn-default.active,.btn-default:active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-default.disabled,.btn-default:disabled,.btn-default[disabled]{background-color:#e0e0e0;background-image:none}.btn-primary{background-image:-webkit-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-o-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#265a88));background-image:linear-gradient(to bottom,#337ab7 0,#265a88 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#245580}.btn-primary:focus,.btn-primary:hover{background-color:#265a88;background-position:0 -15px}.btn-primary.active,.btn-primary:active{background-color:#265a88;border-color:#245580}.btn-primary.disabled,.btn-primary:disabled,.btn-primary[disabled]{background-color:#265a88;background-image:none}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#419641));background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{background-color:#419641;border-color:#3e8f3e}.btn-success.disabled,.btn-success:disabled,.btn-success[disabled]{background-color:#419641;background-image:none}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#2aabd2));background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{background-color:#2aabd2;border-color:#28a4c9}.btn-info.disabled,.btn-info:disabled,.btn-info[disabled]{background-color:#2aabd2;background-image:none}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#eb9316));background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{background-color:#eb9316;border-color:#e38d13}.btn-warning.disabled,.btn-warning:disabled,.btn-warning[disabled]{background-color:#eb9316;background-image:none}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c12e2a));background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{background-color:#c12e2a;border-color:#b92c28}.btn-danger.disabled,.btn-danger:disabled,.btn-danger[disabled]{background-color:#c12e2a;background-image:none}.img-thumbnail,.thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#2e6da4;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.navbar-default{background-image:-webkit-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-o-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f8f8f8));background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-o-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dbdbdb),to(#e2e2e2));background-image:linear-gradient(to bottom,#dbdbdb 0,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.075);box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-o-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#222));background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-o-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#080808),to(#0f0f0f));background-image:linear-gradient(to bottom,#080808 0,#0f0f0f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.25);box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}@media (max-width:767px){.navbar .navbar-nav .open .dropdown-menu>.active>a,.navbar .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);background-repeat:repeat-x;border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#b9def0));background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);background-repeat:repeat-x;border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#f8efc0));background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);background-repeat:repeat-x;border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-o-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#e7c3c3));background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);background-repeat:repeat-x;border-color:#dca7a7}.progress{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x}.progress-bar{background-image:-webkit-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-o-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#286090));background-image:linear-gradient(to bottom,#337ab7 0,#286090 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);background-repeat:repeat-x}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#449d44));background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);background-repeat:repeat-x}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#31b0d5));background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);background-repeat:repeat-x}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#ec971f));background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);background-repeat:repeat-x}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c9302c));background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);background-repeat:repeat-x}.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{text-shadow:0 -1px 0 #286090;background-image:-webkit-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2b669a));background-image:linear-gradient(to bottom,#337ab7 0,#2b669a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);background-repeat:repeat-x;border-color:#2b669a}.list-group-item.active .badge,.list-group-item.active:focus .badge,.list-group-item.active:hover .badge{text-shadow:none}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);background-repeat:repeat-x}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#c4e3f3));background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);background-repeat:repeat-x}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#faf2cc));background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);background-repeat:repeat-x}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-o-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);background-repeat:repeat-x}.well{background-image:-webkit-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#e8e8e8),to(#f5f5f5));background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x;border-color:#dcdcdc;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)} -------------------------------------------------------------------------------- /css/bootstrap-theme.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.4 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | .btn-default, 8 | .btn-primary, 9 | .btn-success, 10 | .btn-info, 11 | .btn-warning, 12 | .btn-danger { 13 | text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); 14 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); 15 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); 16 | } 17 | .btn-default:active, 18 | .btn-primary:active, 19 | .btn-success:active, 20 | .btn-info:active, 21 | .btn-warning:active, 22 | .btn-danger:active, 23 | .btn-default.active, 24 | .btn-primary.active, 25 | .btn-success.active, 26 | .btn-info.active, 27 | .btn-warning.active, 28 | .btn-danger.active { 29 | -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); 30 | box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); 31 | } 32 | .btn-default .badge, 33 | .btn-primary .badge, 34 | .btn-success .badge, 35 | .btn-info .badge, 36 | .btn-warning .badge, 37 | .btn-danger .badge { 38 | text-shadow: none; 39 | } 40 | .btn:active, 41 | .btn.active { 42 | background-image: none; 43 | } 44 | .btn-default { 45 | text-shadow: 0 1px 0 #fff; 46 | background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%); 47 | background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%); 48 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0)); 49 | background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%); 50 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0); 51 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 52 | background-repeat: repeat-x; 53 | border-color: #dbdbdb; 54 | border-color: #ccc; 55 | } 56 | .btn-default:hover, 57 | .btn-default:focus { 58 | background-color: #e0e0e0; 59 | background-position: 0 -15px; 60 | } 61 | .btn-default:active, 62 | .btn-default.active { 63 | background-color: #e0e0e0; 64 | border-color: #dbdbdb; 65 | } 66 | .btn-default.disabled, 67 | .btn-default:disabled, 68 | .btn-default[disabled] { 69 | background-color: #e0e0e0; 70 | background-image: none; 71 | } 72 | .btn-primary { 73 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%); 74 | background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%); 75 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#265a88)); 76 | background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%); 77 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0); 78 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 79 | background-repeat: repeat-x; 80 | border-color: #245580; 81 | } 82 | .btn-primary:hover, 83 | .btn-primary:focus { 84 | background-color: #265a88; 85 | background-position: 0 -15px; 86 | } 87 | .btn-primary:active, 88 | .btn-primary.active { 89 | background-color: #265a88; 90 | border-color: #245580; 91 | } 92 | .btn-primary.disabled, 93 | .btn-primary:disabled, 94 | .btn-primary[disabled] { 95 | background-color: #265a88; 96 | background-image: none; 97 | } 98 | .btn-success { 99 | background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%); 100 | background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%); 101 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641)); 102 | background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%); 103 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0); 104 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 105 | background-repeat: repeat-x; 106 | border-color: #3e8f3e; 107 | } 108 | .btn-success:hover, 109 | .btn-success:focus { 110 | background-color: #419641; 111 | background-position: 0 -15px; 112 | } 113 | .btn-success:active, 114 | .btn-success.active { 115 | background-color: #419641; 116 | border-color: #3e8f3e; 117 | } 118 | .btn-success.disabled, 119 | .btn-success:disabled, 120 | .btn-success[disabled] { 121 | background-color: #419641; 122 | background-image: none; 123 | } 124 | .btn-info { 125 | background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); 126 | background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); 127 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2)); 128 | background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%); 129 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0); 130 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 131 | background-repeat: repeat-x; 132 | border-color: #28a4c9; 133 | } 134 | .btn-info:hover, 135 | .btn-info:focus { 136 | background-color: #2aabd2; 137 | background-position: 0 -15px; 138 | } 139 | .btn-info:active, 140 | .btn-info.active { 141 | background-color: #2aabd2; 142 | border-color: #28a4c9; 143 | } 144 | .btn-info.disabled, 145 | .btn-info:disabled, 146 | .btn-info[disabled] { 147 | background-color: #2aabd2; 148 | background-image: none; 149 | } 150 | .btn-warning { 151 | background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); 152 | background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); 153 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316)); 154 | background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%); 155 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0); 156 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 157 | background-repeat: repeat-x; 158 | border-color: #e38d13; 159 | } 160 | .btn-warning:hover, 161 | .btn-warning:focus { 162 | background-color: #eb9316; 163 | background-position: 0 -15px; 164 | } 165 | .btn-warning:active, 166 | .btn-warning.active { 167 | background-color: #eb9316; 168 | border-color: #e38d13; 169 | } 170 | .btn-warning.disabled, 171 | .btn-warning:disabled, 172 | .btn-warning[disabled] { 173 | background-color: #eb9316; 174 | background-image: none; 175 | } 176 | .btn-danger { 177 | background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%); 178 | background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%); 179 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a)); 180 | background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%); 181 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0); 182 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 183 | background-repeat: repeat-x; 184 | border-color: #b92c28; 185 | } 186 | .btn-danger:hover, 187 | .btn-danger:focus { 188 | background-color: #c12e2a; 189 | background-position: 0 -15px; 190 | } 191 | .btn-danger:active, 192 | .btn-danger.active { 193 | background-color: #c12e2a; 194 | border-color: #b92c28; 195 | } 196 | .btn-danger.disabled, 197 | .btn-danger:disabled, 198 | .btn-danger[disabled] { 199 | background-color: #c12e2a; 200 | background-image: none; 201 | } 202 | .thumbnail, 203 | .img-thumbnail { 204 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 205 | box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 206 | } 207 | .dropdown-menu > li > a:hover, 208 | .dropdown-menu > li > a:focus { 209 | background-color: #e8e8e8; 210 | background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 211 | background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 212 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); 213 | background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); 214 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); 215 | background-repeat: repeat-x; 216 | } 217 | .dropdown-menu > .active > a, 218 | .dropdown-menu > .active > a:hover, 219 | .dropdown-menu > .active > a:focus { 220 | background-color: #2e6da4; 221 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 222 | background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 223 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); 224 | background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); 225 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); 226 | background-repeat: repeat-x; 227 | } 228 | .navbar-default { 229 | background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%); 230 | background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%); 231 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8)); 232 | background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%); 233 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0); 234 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 235 | background-repeat: repeat-x; 236 | border-radius: 4px; 237 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); 238 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); 239 | } 240 | .navbar-default .navbar-nav > .open > a, 241 | .navbar-default .navbar-nav > .active > a { 242 | background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); 243 | background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); 244 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2)); 245 | background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%); 246 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0); 247 | background-repeat: repeat-x; 248 | -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); 249 | box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); 250 | } 251 | .navbar-brand, 252 | .navbar-nav > li > a { 253 | text-shadow: 0 1px 0 rgba(255, 255, 255, .25); 254 | } 255 | .navbar-inverse { 256 | background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%); 257 | background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%); 258 | background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222)); 259 | background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%); 260 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0); 261 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 262 | background-repeat: repeat-x; 263 | } 264 | .navbar-inverse .navbar-nav > .open > a, 265 | .navbar-inverse .navbar-nav > .active > a { 266 | background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%); 267 | background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%); 268 | background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f)); 269 | background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%); 270 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0); 271 | background-repeat: repeat-x; 272 | -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); 273 | box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); 274 | } 275 | .navbar-inverse .navbar-brand, 276 | .navbar-inverse .navbar-nav > li > a { 277 | text-shadow: 0 -1px 0 rgba(0, 0, 0, .25); 278 | } 279 | .navbar-static-top, 280 | .navbar-fixed-top, 281 | .navbar-fixed-bottom { 282 | border-radius: 0; 283 | } 284 | @media (max-width: 767px) { 285 | .navbar .navbar-nav .open .dropdown-menu > .active > a, 286 | .navbar .navbar-nav .open .dropdown-menu > .active > a:hover, 287 | .navbar .navbar-nav .open .dropdown-menu > .active > a:focus { 288 | color: #fff; 289 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 290 | background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 291 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); 292 | background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); 293 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); 294 | background-repeat: repeat-x; 295 | } 296 | } 297 | .alert { 298 | text-shadow: 0 1px 0 rgba(255, 255, 255, .2); 299 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); 300 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); 301 | } 302 | .alert-success { 303 | background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); 304 | background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); 305 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc)); 306 | background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%); 307 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0); 308 | background-repeat: repeat-x; 309 | border-color: #b2dba1; 310 | } 311 | .alert-info { 312 | background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%); 313 | background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%); 314 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0)); 315 | background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%); 316 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0); 317 | background-repeat: repeat-x; 318 | border-color: #9acfea; 319 | } 320 | .alert-warning { 321 | background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); 322 | background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); 323 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0)); 324 | background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%); 325 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0); 326 | background-repeat: repeat-x; 327 | border-color: #f5e79e; 328 | } 329 | .alert-danger { 330 | background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); 331 | background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); 332 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3)); 333 | background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%); 334 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0); 335 | background-repeat: repeat-x; 336 | border-color: #dca7a7; 337 | } 338 | .progress { 339 | background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); 340 | background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); 341 | background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5)); 342 | background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%); 343 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0); 344 | background-repeat: repeat-x; 345 | } 346 | .progress-bar { 347 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%); 348 | background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%); 349 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090)); 350 | background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%); 351 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0); 352 | background-repeat: repeat-x; 353 | } 354 | .progress-bar-success { 355 | background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%); 356 | background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%); 357 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44)); 358 | background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%); 359 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0); 360 | background-repeat: repeat-x; 361 | } 362 | .progress-bar-info { 363 | background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); 364 | background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); 365 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5)); 366 | background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%); 367 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0); 368 | background-repeat: repeat-x; 369 | } 370 | .progress-bar-warning { 371 | background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); 372 | background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); 373 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f)); 374 | background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%); 375 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0); 376 | background-repeat: repeat-x; 377 | } 378 | .progress-bar-danger { 379 | background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%); 380 | background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%); 381 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c)); 382 | background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%); 383 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0); 384 | background-repeat: repeat-x; 385 | } 386 | .progress-bar-striped { 387 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 388 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 389 | background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 390 | } 391 | .list-group { 392 | border-radius: 4px; 393 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 394 | box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 395 | } 396 | .list-group-item.active, 397 | .list-group-item.active:hover, 398 | .list-group-item.active:focus { 399 | text-shadow: 0 -1px 0 #286090; 400 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%); 401 | background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%); 402 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a)); 403 | background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%); 404 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0); 405 | background-repeat: repeat-x; 406 | border-color: #2b669a; 407 | } 408 | .list-group-item.active .badge, 409 | .list-group-item.active:hover .badge, 410 | .list-group-item.active:focus .badge { 411 | text-shadow: none; 412 | } 413 | .panel { 414 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05); 415 | box-shadow: 0 1px 2px rgba(0, 0, 0, .05); 416 | } 417 | .panel-default > .panel-heading { 418 | background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 419 | background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 420 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); 421 | background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); 422 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); 423 | background-repeat: repeat-x; 424 | } 425 | .panel-primary > .panel-heading { 426 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 427 | background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 428 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); 429 | background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); 430 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); 431 | background-repeat: repeat-x; 432 | } 433 | .panel-success > .panel-heading { 434 | background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); 435 | background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); 436 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6)); 437 | background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%); 438 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0); 439 | background-repeat: repeat-x; 440 | } 441 | .panel-info > .panel-heading { 442 | background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); 443 | background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); 444 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3)); 445 | background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%); 446 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0); 447 | background-repeat: repeat-x; 448 | } 449 | .panel-warning > .panel-heading { 450 | background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); 451 | background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); 452 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc)); 453 | background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%); 454 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0); 455 | background-repeat: repeat-x; 456 | } 457 | .panel-danger > .panel-heading { 458 | background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%); 459 | background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%); 460 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc)); 461 | background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%); 462 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0); 463 | background-repeat: repeat-x; 464 | } 465 | .well { 466 | background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); 467 | background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); 468 | background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5)); 469 | background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%); 470 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0); 471 | background-repeat: repeat-x; 472 | border-color: #dcdcdc; 473 | -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); 474 | box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); 475 | } 476 | /*# sourceMappingURL=bootstrap-theme.css.map */ 477 | -------------------------------------------------------------------------------- /php/class.php: -------------------------------------------------------------------------------- 1 | is_email_exist($email); 11 | } 12 | else { 13 | echo ''.$email . " is an invalid email. Please try again.".''; 14 | return false; 15 | } 16 | 17 | } 18 | 19 | public function is_email_exist($email) 20 | { 21 | global $conn; 22 | $table = "user"; 23 | $sql = "select id from $table where email = ?"; 24 | $query = $conn->prepare($sql); 25 | $query->bindParam(1,$email); 26 | $query->execute(); 27 | if($query->rowCount()>0) 28 | { 29 | echo '' .$email . " already exists."; 30 | return true; 31 | } 32 | else{ 33 | echo 'Good to go. '; 34 | return false; 35 | } 36 | } 37 | 38 | public function complete_signup() 39 | { 40 | $email = trim($_POST['signupEmail']); 41 | if(!($this->is_email_exist($email))) 42 | { 43 | $fname = ucwords(strtolower(trim($_POST['firstname']))); 44 | $mname = ucwords(strtolower(trim($_POST['middlename']))); 45 | $lname = ucwords(strtolower(trim($_POST['lastname']))); 46 | $sex = $_POST['sex']; 47 | $password = sha1($_POST['password']); 48 | global $conn; 49 | $table = 'user'; 50 | $sql = "insert into $table (first_name,middle_name,last_name,email,password,joining_time_stamp,sex) values(?,?,?,?,?,?,?)"; 51 | $query = $conn->prepare($sql); 52 | $query->bindParam(1, $fname); 53 | $query->bindParam(2, $mname); 54 | $query->bindParam(3, $lname); 55 | $query->bindParam(4, $email); 56 | $query->bindParam(5, $password); 57 | $time = time(); 58 | $query->bindParam(6, $time); 59 | $query->bindParam(7, $sex); 60 | 61 | if($query->execute()) 62 | { $user_id_may_be=$conn->lastInsertId(); 63 | echo '

Hello '.$fname.' You have been successfully signed up. Please Log In now.

'.' '; 64 | $path = "../uploads/$user_id_may_be"; 65 | mkdir($path); 66 | } 67 | else 68 | { 69 | echo "Sorry there is some problem."; 70 | } 71 | } 72 | else 73 | { 74 | echo '

Try again. Reload

'; 75 | } 76 | } 77 | 78 | public function login_complete($A,$B) 79 | { 80 | global $conn; 81 | $email = $A;; 82 | $password = $B; 83 | if(isset($_POST['special_key']) && !isset($_COOKIE['A']) && !isset($_COOKIE['B'])) 84 | { 85 | if($_POST['special_key']=="on") 86 | { 87 | //create cookie 88 | setcookie('A',$email,time()+(86400*30),"/"); 89 | setcookie('B',$password,time()+(86400*30),"/"); 90 | } 91 | } 92 | 93 | if(!empty($_POST['loginPassword'])) 94 | { 95 | 96 | $table = "user"; 97 | $sql = "select id, password from $table where email = ?"; 98 | $query = $conn->prepare($sql); 99 | $query->bindParam(1,$email); 100 | $query->execute(); 101 | if($query->rowCount()>0) 102 | { 103 | $database_result = $query->fetchObject(); 104 | if($password == ($database_result->password)) 105 | { 106 | //login true 107 | session_start(); 108 | $_SESSION['id'] = $database_result->id; 109 | $conn=null; 110 | ?> 111 | 114 | '; 142 | echo 'window.location.href="'.$url.'";'; 143 | echo ''; 144 | echo ''; 147 | exit; 148 | } 149 | } 150 | 151 | public function get_block_ids($user_id){ 152 | global $conn; 153 | $table = "block_list"; 154 | $sql = "select block_id from $table where user_id = ?"; 155 | $query = $conn->prepare($sql); 156 | $query->bindParam(1,$user_id); 157 | $query->execute(); 158 | if($query->rowCount()){ 159 | $i=0; 160 | $request[]=""; 161 | while($r=$query->fetch(PDO::FETCH_OBJ)) 162 | { 163 | $request[$i] = $r->block_id; 164 | $i++; 165 | } 166 | return $request; 167 | }else{ 168 | $request[0] = 0; 169 | return $request; 170 | } 171 | } 172 | 173 | public function post_status($user_id,$status) { 174 | global $conn; 175 | $status = trim($status); 176 | $table = "posts"; 177 | $time = time(); 178 | $sql = "insert into $table (user_id,status,posted_at) values(?,?,?)"; 179 | $query = $conn->prepare($sql); 180 | $query->bindParam(1,$user_id); 181 | $query->bindParam(2,$status); 182 | $query->bindParam(3,$time); 183 | if($query->execute()){ 184 | return 1; 185 | } 186 | else{ 187 | return 0; 188 | } 189 | } 190 | 191 | 192 | public function get_friend_ids($user_id){ 193 | global $conn; 194 | $table = "friends"; 195 | $sql = "select friend_id from $table where user_id = ?"; 196 | $query = $conn->prepare($sql); 197 | $query->bindParam(1,$user_id); 198 | $query->execute(); 199 | if($query->rowCount()){ 200 | $i=0; 201 | $request[]=""; 202 | while($r=$query->fetch(PDO::FETCH_OBJ)) 203 | { 204 | $request[$i] = $r->friend_id; 205 | $i++; 206 | } 207 | return $request; 208 | }else{ 209 | $request[0] = 0; 210 | return $request; 211 | } 212 | } 213 | 214 | public function get_sent_friend_request_ids($user_id){ 215 | global $conn; 216 | $table = "friend_requests"; 217 | $sql = "select sent_to_id from $table where sent_from_id = ?"; 218 | $query = $conn->prepare($sql); 219 | $query->bindParam(1,$user_id); 220 | $query->execute(); 221 | if($query->rowCount()){ 222 | $i=0; 223 | $request[]=""; 224 | while($r=$query->fetch(PDO::FETCH_OBJ)) 225 | { 226 | $request[$i] = $r->sent_to_id; 227 | $i++; 228 | } 229 | return $request; 230 | }else{ 231 | $request[0] = 0; 232 | return $request; 233 | } 234 | } 235 | 236 | public function reject_request_of($other_id,$user_id){ 237 | global $conn; 238 | $sql1 = "delete from friend_requests where sent_to_id =? and sent_from_id =?"; 239 | $query1 = $conn->prepare($sql1); 240 | $query1->bindParam(1, $user_id); 241 | $query1->bindParam(2, $other_id); 242 | if($query1->execute()) 243 | echo 1; 244 | else 245 | echo 0; 246 | } 247 | 248 | public function unfriend($friend_id,$user_id){ 249 | global $conn; 250 | $sql1 = "delete from friends where user_id =? and friend_id =?"; 251 | $query1 = $conn->prepare($sql1); 252 | $query1->bindParam(1, $user_id); 253 | $query1->bindParam(2, $friend_id); 254 | $query1->execute(); 255 | $sql = "delete from friends where user_id =? and friend_id =?"; 256 | $query = $conn->prepare($sql1); 257 | $query->bindParam(1, $friend_id); 258 | $query->bindParam(2, $user_id); 259 | if($query->execute()) 260 | echo 1; 261 | else 262 | echo 0; 263 | } 264 | 265 | public function add_to_block_list($other_id,$user_id){ 266 | global $conn; 267 | $friends = $this->get_friend_ids($user_id); 268 | if(in_array($other_id,$friends)){ 269 | $this->unfriend($other_id,$user_id); 270 | } 271 | $table = "block_list"; 272 | $sql = "insert into $table (user_id,block_id) values(?,?)"; 273 | $query = $conn->prepare($sql); 274 | $query->bindParam(1, $user_id); 275 | $query->bindParam(2, $other_id); 276 | $query->execute(); 277 | $query->bindParam(1, $other_id); 278 | $query->bindParam(2, $user_id); 279 | if($query->execute()) 280 | echo 1; 281 | else 282 | echo 0; 283 | } 284 | 285 | public function accept_request_from($other_id,$user_id){ 286 | global $conn; 287 | $time = time(); 288 | $table = "friends"; 289 | $sql1 = "delete from friend_requests where sent_to_id =? and sent_from_id =?"; 290 | $query1 = $conn->prepare($sql1); 291 | $query1->bindParam(1, $user_id); 292 | $query1->bindParam(2, $other_id); 293 | $query1->execute(); 294 | $sql = "insert into $table (user_id,friend_id,friend_since) values(?,?,?)"; 295 | $query = $conn->prepare($sql); 296 | $query->bindParam(1, $user_id); 297 | $query->bindParam(2, $other_id); 298 | $query->bindParam(3, $time); 299 | $query->execute(); 300 | $query->bindParam(1, $other_id); 301 | $query->bindParam(2, $user_id); 302 | $query->bindParam(3, $time); 303 | if($query->execute()) 304 | echo 1; 305 | else 306 | echo 0; 307 | } 308 | 309 | public function get_incoming_requests($user_id){ 310 | global $conn; 311 | $table = "friend_requests"; 312 | $sql = "select sent_from_id from $table where sent_to_id = ?"; 313 | $query = $conn->prepare($sql); 314 | $query->bindParam(1,$user_id); 315 | $query->execute(); 316 | if($query->rowCount()){ 317 | $i=0; 318 | $request[]=""; 319 | while($r=$query->fetch(PDO::FETCH_OBJ)) 320 | { 321 | $request[$i] = $r->sent_from_id; 322 | $i++; 323 | } 324 | return $request; 325 | } 326 | else 327 | { 328 | $request[0] = 0; 329 | return $request; 330 | } 331 | } 332 | 333 | public function get_property_of($user_id,$parameter) 334 | { 335 | global $conn; 336 | $table = "user"; 337 | $sql = "select $parameter from user where id = ?"; 338 | $query = $conn->prepare($sql); 339 | $query->bindParam(1,$user_id); 340 | $query->execute(); 341 | if($query->rowCount()){ 342 | $result = $query->fetchObject(); 343 | return $result->$parameter; 344 | } 345 | else{ 346 | return false; 347 | } 348 | 349 | } 350 | 351 | public function get_full_name($user_id){ 352 | global $conn; 353 | $table = "user"; 354 | $sql = "select first_name,middle_name,last_name from user where id = ?"; 355 | $query = $conn->prepare($sql); 356 | $query->bindParam(1,$user_id); 357 | $query->execute(); 358 | if($query->rowCount()>0){ 359 | $result = $query->fetchObject(); 360 | $name = $result->first_name . ' '.$result->middle_name .' ' . $result->last_name; 361 | echo $name; 362 | } 363 | else{ 364 | return false; 365 | } 366 | } 367 | 368 | 369 | public function nav() 370 | { 371 | ?> 372 | 441 | 442 | 443 | 472 | prepare($sql); 482 | $query->bindParam(1,$value); 483 | $query->bindParam(2,$user_id); 484 | $query->execute(); 485 | } 486 | 487 | public function is_property_exists($user_id, $property) 488 | { 489 | global $conn; 490 | $table = "user"; 491 | $sql = "select $property from $table where id = ?"; 492 | $query = $conn->prepare($sql); 493 | $query->bindParam(1,$user_id); 494 | $query->execute(); 495 | if($query->rowCount()>0) 496 | { 497 | $result = $query->fetchObject(); 498 | if(empty($result->$property)) 499 | { 500 | return false; 501 | } 502 | else 503 | { 504 | return true; 505 | } 506 | } 507 | 508 | } 509 | 510 | public function send_request_to($friend_id,$user_id){ 511 | global $conn; 512 | $time = time(); 513 | $table = "friend_requests"; 514 | $sql = "insert into $table (sent_to_id,sent_from_id,sent_time) values(?,?,?)"; 515 | $query = $conn->prepare($sql); 516 | $query->bindParam(1, $friend_id); 517 | $query->bindParam(2, $user_id); 518 | $query->bindParam(3, $time); 519 | if($query->execute()) 520 | echo 1; 521 | else 522 | echo 0; 523 | } 524 | 525 | public function cookie_login($A,$B) 526 | { 527 | global $conn; 528 | $email=$A; 529 | $password=$B; 530 | $table = "user"; 531 | $sql = "select id, password from $table where email = ?"; 532 | $query = $conn->prepare($sql); 533 | $query->bindParam(1,$email); 534 | $query->execute(); 535 | if($query->rowCount()>0) 536 | { 537 | $database_result = $query->fetchObject(); 538 | if($password == ($database_result->password)) 539 | { 540 | //login true 541 | session_start(); 542 | $_SESSION['id'] = $database_result->id; 543 | 544 | ?> 545 | 548 | $v) 572 | { 573 | $val = $k + 1; 574 | } 575 | 576 | if($val==1) 577 | { 578 | $table= 'user'; 579 | $sql = "SELECT id FROM $table WHERE first_name REGEXP ? OR middle_name REGEXP ? OR last_name REGEXP ? OR email REGEXP ?"; 580 | $query = $conn->prepare($sql); 581 | $query->bindParam(1,$terms[0]); 582 | $query->bindParam(2,$terms[0]); 583 | $query->bindParam(3,$terms[0]); 584 | $query->bindParam(4,$terms[0]); 585 | $query->execute(); 586 | if($query->rowCount()>0) 587 | { 588 | while($r=$query->fetch(PDO::FETCH_OBJ)) 589 | { 590 | $this->show_glance($r->id); 591 | } 592 | }else 593 | { 594 | echo 'Sorry! Nothing Found'; 595 | } 596 | 597 | } 598 | 599 | if($val==2) 600 | { 601 | $table= 'user'; 602 | $sql = "SELECT id FROM $table WHERE first_name REGEXP ? OR last_name REGEXP ?"; 603 | $query = $conn->prepare($sql); 604 | $query->bindParam(1,$terms[0]); 605 | $query->bindParam(2,$terms[1]); 606 | $query->execute(); 607 | if($query->rowCount()>0) 608 | { 609 | while($r=$query->fetch(PDO::FETCH_OBJ)) 610 | { 611 | $this->show_glance($r->id); 612 | } 613 | }else 614 | { 615 | echo 'Sorry! Nothing Found'; 616 | } 617 | 618 | } 619 | if($val==3) 620 | { 621 | $table= 'user'; 622 | $sql = "SELECT id FROM $table WHERE first_name REGEXP ? OR middle_name REGEXP ? OR last_name REGEXP ?"; 623 | $query = $conn->prepare($sql); 624 | $query->bindParam(1,$terms[0]); 625 | $query->bindParam(2,$terms[1]); 626 | $query->bindParam(3,$terms[2]); 627 | $query->execute(); 628 | if($query->rowCount()>0) 629 | { 630 | while($r=$query->fetch(PDO::FETCH_OBJ)) 631 | { 632 | $this->show_glance($r->id); 633 | } 634 | } 635 | else{ 636 | echo 'Sorry! Nothing Found'; 637 | } 638 | } 639 | } 640 | else{ 641 | echo 'Type a name or email'; 642 | } 643 | 644 | 645 | } 646 | 647 | public function show_glance($user_id) 648 | { 649 | global $conn; 650 | $table= 'user'; 651 | $sql = "select sex from $table where id=? limit 1"; 652 | $query = $conn->prepare($sql); 653 | $query->bindParam(1,$user_id); 654 | $query->execute(); 655 | $user_info = $query->fetchObject(); 656 | ?> 657 | 658 | get_full_name($user_id); ?> 659 | prepare($sql); 668 | $query->bindParam(1,$id); 669 | $query->execute(); 670 | if($query->rowCount()>0) 671 | { 672 | return true; 673 | } 674 | else{ 675 | return false; 676 | } 677 | } 678 | 679 | 680 | public function news_feed($user_id, $flag=true){ 681 | if($flag){ 682 | $fried_ids[0]= $user_id; 683 | }else{ 684 | $fried_ids = $this->get_friend_ids($user_id); 685 | global $conn; 686 | 687 | if($fried_ids[0]==0){ 688 | $fried_ids[0]= $user_id; 689 | } 690 | else{ 691 | array_push($fried_ids, $user_id); 692 | } 693 | } 694 | global $conn; 695 | $table = "posts"; 696 | // print_r($fried_ids); 697 | $total_question_marks = count($fried_ids); 698 | // echo $total_question_marks; 699 | $question_mark_array = array_fill(0, $total_question_marks, '?'); 700 | // print_r($question_mark_array); 701 | $str = implode(",",$question_mark_array); 702 | // echo $str; 703 | $sql = "select * from $table where user_id in ($str) order by posted_at desc"; 704 | // echo $sql; 705 | $query = $conn->prepare($sql); 706 | foreach($fried_ids as $k => $v){ 707 | @$query->bindParam($k+1,trim($v)); 708 | } 709 | $query->execute(); 710 | while($result = $query->fetch(PDO::FETCH_OBJ)){ 711 | ?>
712 |

show_glance($result->user_id);?>

713 |

714 | status; ?> 715 |

716 | 717 |
718 | time_elapsed($result->posted_at); ?> 719 |
720 |
721 | $secs / 31556926 % 12, 737 | ' week' => $secs / 604800 % 52, 738 | ' day' => $secs / 86400 % 7, 739 | ' hour' => $secs / 3600 % 24, 740 | ' minute' => $secs / 60 % 60, 741 | ' second' => $secs % 60 742 | ); 743 | 744 | foreach($bit as $k => $v){ 745 | if($v > 1)$ret[] = $v . $k . 's'; 746 | if($v == 1)$ret[] = $v . $k; 747 | } 748 | array_splice($ret, count($ret)-1, 0, 'and'); 749 | $ret[] = 'ago.'; 750 | return join(' ', $ret); 751 | } 752 | else { 753 | $ts = $time; 754 | $date = new DateTime("@$ts"); 755 | echo $date->format('H:i d/m/Y') . "\n"; 756 | } 757 | } 758 | 759 | public function people_you_may_know_of($user_id){ 760 | $friends= $this->get_friend_ids($user_id); 761 | global $conn; 762 | $table= 'user'; 763 | $total_question_marks = count($friends); 764 | $question_mark_array = array_fill(0, $total_question_marks, '?'); 765 | $str = implode(",",$question_mark_array); 766 | $sql = "select id from $table where id not in ($str) order by rand() limit 10"; 767 | $query = $conn->prepare($sql); 768 | foreach($friends as $k => $v){ 769 | @$query->bindParam($k+1,trim($v)); 770 | } 771 | $query->execute(); 772 | $user_info = $query->fetchAll(PDO::FETCH_OBJ); 773 | $array_people_you_may_know = array(); 774 | foreach($user_info as $k => $v){ 775 | if(($v->id)!= $user_id){ 776 | array_push($array_people_you_may_know,$v->id); 777 | } 778 | } 779 | if(!empty($array_people_you_may_know)){ 780 | foreach($array_people_you_may_know as $key => $value){ 781 | ?> 782 |
show_glance($value); $this->no_of_mutual_frineds($user_id,$value); ?>
783 | Try to make friends first'; 788 | } 789 | } 790 | 791 | public function no_of_mutual_frineds($user_id, $other_id){ 792 | $user_friends = $this->get_friend_ids($user_id); 793 | if(count($user_friends) == 1){ 794 | echo '
[ 0 common ]
'; 795 | } 796 | else{ 797 | $i = 0; 798 | $other_friends = $this->get_friend_ids($other_id); 799 | foreach($other_friends as $key => $val){ 800 | if(in_array($val,$user_friends)){ 801 | $i++; 802 | } 803 | } 804 | echo '
[ '.$i.' common ]
'; 805 | } 806 | } 807 | 808 | public function return_mutual_ids($user_id, $other_id){ 809 | $return_array = array(); 810 | $user_friends = $this->get_friend_ids($user_id); 811 | if(count($user_friends) == 1){ 812 | return $return_array; 813 | } 814 | else{ 815 | $i = 0; 816 | $other_friends = $this->get_friend_ids($other_id); 817 | foreach($other_friends as $key => $val){ 818 | if(in_array($val,$user_friends)){ 819 | $return_array[$i] = $val; 820 | $i++; 821 | } 822 | } 823 | return $return_array; 824 | } 825 | } 826 | } 827 | 828 | $q = new FUNCTIONS; 829 | 830 | ?> 831 | -------------------------------------------------------------------------------- /profile.php: -------------------------------------------------------------------------------- 1 | get_sent_friend_request_ids($user_id); 12 | $_SESSION['incoming'] = $q->get_incoming_requests($user_id); 13 | $_SESSION['friends'] = $q->get_friend_ids($user_id); 14 | $_SESSION['block_list'] = $q->get_block_ids($user_id); 15 | } 16 | $other_id=$user_id; 17 | if(isset( $_GET['id'])) 18 | { 19 | $other_id = trim($_GET['id']); 20 | } 21 | ?> 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | timeBranch | Make new Friends | Make it large | Make in INDIA 35 | 36 | 37 | 38 | 39 | 40 | 41 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 |
66 | 67 | 68 | nav(); 69 | ?> 70 | 71 | 72 | 73 | 74 | 75 | 76 | 91 | 92 | 108 | 109 | 125 | 126 | 127 | 128 |
129 |
130 |
131 |

get_full_name($user_id)); ?>

132 |

is_property_exists($user_id,'profile_status')) 134 | { 135 | print($q->get_property_of($user_id,'profile_status')); 136 | } 137 | else{ 138 | print('

I am awesome.

'); 139 | } 140 | ?>

141 |
142 |
143 |
" 152 | width="80%" data-toggle="modal" data-target="" type="button" />
153 | 154 | 155 | Edit Profile 156 | 157 |
158 |
159 |
    160 | 161 |
  • Email: get_property_of($user_id,'email')); ?>
  • 162 |
  • Sex: get_property_of($user_id,'sex')); ?>
  • 163 |
  • Mobile: is_property_exists($user_id,'mobile_no')) 165 | { 166 | print($q->get_property_of($user_id,'mobile_no')); 167 | } 168 | else{ 169 | print('

    Not Shared

    '); 170 | } 171 | 172 | ?>
  • 173 |
  • Hometown: is_property_exists($user_id,'hometown')) 175 | { 176 | print($q->get_property_of($user_id,'hometown')); 177 | } 178 | else{ 179 | print('

    Not Shared

    '); 180 | } 181 | 182 | ?>
  • 183 |
  • School: is_property_exists($user_id,'school_name')) 185 | { 186 | print($q->get_property_of($user_id,'school_name')); 187 | } 188 | else{ 189 | print('

    Not Shared

    '); 190 | } 191 | 192 | ?>
  • 193 |
  • College: is_property_exists($user_id,'college_name')) 195 | { 196 | print($q->get_property_of($user_id,'college_name')); 197 | } 198 | else{ 199 | print('

    Not Shared

    '); 200 | } 201 | 202 | ?>
  • 203 | 204 |
  • Mother Tounge: is_property_exists($user_id,'language_1st')) 206 | { 207 | print($q->get_property_of($user_id,'language_1st')); 208 | } 209 | else{ 210 | print('

    Not Shared

    '); 211 | } 212 | 213 | ?>
  • 214 | 215 |
  • Other Language Known (1): is_property_exists($user_id,'language_2nd')) 217 | { 218 | print($q->get_property_of($user_id,'language_2nd')); 219 | } 220 | else{ 221 | print('

    Not Shared

    '); 222 | } 223 | 224 | ?>
  • 225 |
  • Other Language Known (2): is_property_exists($user_id,'language_3rd')) 227 | { 228 | print($q->get_property_of($user_id,'language_3rd')); 229 | } 230 | else{ 231 | print('

    Not Shared

    '); 232 | } 233 | 234 | ?>
  • 235 |
  • Relationship: is_property_exists($user_id,'relationship')) 237 | { 238 | print($q->get_property_of($user_id,'relationship')); 239 | } 240 | else{ 241 | print('

    Not Shared

    '); 242 | } 243 | 244 | ?>
  • 245 | 246 | 247 |
248 |
249 | 251 |
252 |
253 |
254 |
255 | news_feed($user_id, true); 257 | ?> 258 | 259 |
260 |
261 |
262 | 263 | 269 | 270 | 271 | 278 | 281 | 282 | is_member($other_id))) 289 | { 290 | echo '
291 |

Hey! Are you kidding?

292 |
'; 293 | die(); 294 | } 295 | 296 | 297 | ?> 298 | 313 | 328 | 329 | 330 | 331 | 332 | 333 |
334 |
335 |
336 |

get_full_name($other_id)); ?>

337 |

is_property_exists($other_id,'profile_status')) 339 | { 340 | print($q->get_property_of($other_id,'profile_status')); 341 | } 342 | else{ 343 | print('

I am awesome.

'); 344 | } 345 | ?>

346 |
347 |
348 |
" 357 | width="80%" data-toggle="modal" data-target="" type="button" /> 358 |
359 |
360 | 363 | 364 | 365 | 370 | 371 | Friend

'; 378 | echo ''; 379 | 380 | } 381 | else 382 | { //if not friend 383 | ?> 384 | 385 | 386 | 389 | 390 |
391 |
392 |
    393 | 394 |
  • Email: get_property_of($other_id,'email')); ?>
  • 395 |
  • Sex: get_property_of($other_id,'sex')); ?>
  • 396 |
  • Mobile: is_property_exists($other_id,'mobile_no')) 398 | { 399 | print($q->get_property_of($other_id,'mobile_no')); 400 | } 401 | else{ 402 | print('

    Not Shared

    '); 403 | } 404 | 405 | ?>
  • 406 |
  • Hometown: is_property_exists($other_id,'hometown')) 408 | { 409 | print($q->get_property_of($other_id,'hometown')); 410 | } 411 | else{ 412 | print('

    Not Shared

    '); 413 | } 414 | 415 | ?>
  • 416 |
  • School: is_property_exists($other_id,'school_name')) 418 | { 419 | print($q->get_property_of($other_id,'school_name')); 420 | } 421 | else{ 422 | print('

    Not Shared

    '); 423 | } 424 | 425 | ?>
  • 426 |
  • College: is_property_exists($other_id,'college_name')) 428 | { 429 | print($q->get_property_of($other_id,'college_name')); 430 | } 431 | else{ 432 | print('

    Not Shared

    '); 433 | } 434 | 435 | ?>
  • 436 | 437 |
  • Mother Tounge: is_property_exists($other_id,'language_1st')) 439 | { 440 | print($q->get_property_of($other_id,'language_1st')); 441 | } 442 | else{ 443 | print('

    Not Shared

    '); 444 | } 445 | 446 | ?>
  • 447 | 448 |
  • Other Language Known (1): is_property_exists($other_id,'language_2nd')) 450 | { 451 | print($q->get_property_of($other_id,'language_2nd')); 452 | } 453 | else{ 454 | print('

    Not Shared

    '); 455 | } 456 | 457 | ?>
  • 458 |
  • Other Language Known (2): is_property_exists($other_id,'language_3rd')) 460 | { 461 | print($q->get_property_of($other_id,'language_3rd')); 462 | } 463 | else{ 464 | print('

    Not Shared

    '); 465 | } 466 | 467 | ?>
  • 468 |
  • Relationship: is_property_exists($other_id,'relationship')) 470 | { 471 | print($q->get_property_of($other_id,'relationship')); 472 | } 473 | else{ 474 | print('

    Not Shared

    '); 475 | } 476 | 477 | ?>
  • 478 | 479 | 480 | 481 |
482 |
483 |
484 |
485 |
486 |
487 | news_feed($other_id,true); 489 | ?> 490 | 491 |
492 |
493 |
494 | 495 | 592 | 593 | 604 | 605 | 608 |

Hey! We are tracking your ip and location. So be careful before typing anything.

609 |
'; 610 | } 611 | ?> 612 | 613 | 614 | 615 | 616 | 632 | 633 | -------------------------------------------------------------------------------- /js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.4 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.4",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.4",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.4",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.4",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=c(d),f={relatedTarget:this};e.hasClass("open")&&(e.trigger(b=a.Event("hide.bs.dropdown",f)),b.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.4",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c&&c.$tip&&c.$tip.is(":visible")?void(c.hoverState="in"):(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.options.container?a(this.options.container):this.$element.parent(),p=this.getPosition(o);h="bottom"==h&&k.bottom+m>p.bottom?"top":"top"==h&&k.top-mp.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.width&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type)})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.4",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.4",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.4",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=a(document.body).height();"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); --------------------------------------------------------------------------------