code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Bootstrap Admin</title> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- For sample logo only--> <!--Remove if you no longer need this font--> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Aguafina+Script"> <!--For sample logo only--> <link rel="stylesheet" type="text/css" href="lib/bootstrap3/dist/css/bootstrap.css"> <link rel="stylesheet" href="lib/FontAwesome/css/font-awesome.css"> <script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="javascripts/site.js" type="text/javascript"></script> <link rel='stylesheet' type='text/css' href='lib/fullcalendar-1.5.3/fullcalendar/fullcalendar.css' /> <link rel='stylesheet' type='text/css' href='lib/fullcalendar-1.5.3/fullcalendar/fullcalendar.print.css' media='print' /> <script type='text/javascript' src='lib/fullcalendar-1.5.3/fullcalendar/fullcalendar.min.js'></script> <link rel="stylesheet" type="text/css" href="stylesheets/theme.css"> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le fav and touch icons --> <link rel="shortcut icon" href="../assets/ico/favicon.ico"> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png"> </head> <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]--> <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]--> <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]--> <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <body class=""> <!--<![endif]--> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-reorder"></span> </button> <a class="navbar-brand" href="index.html">Awesome.</a> </div> <div class="hidden-xs"> <ul class="nav navbar-nav pull-right"> <li class="hidden-phone"><a href="#" role="button">Settings</a></li> <li id="fat-menu" class="dropdown"> <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user"></i> Jack Smith <i class="icon-caret-down"></i> </a> <ul class="dropdown-menu"> <li><a tabindex="-1" href="#">My Account</a></li> <li class="divider"></li> <li><a tabindex="-1" class="visible-phone" href="#">Settings</a></li> <li class="divider visible-phone"></li> <li><a tabindex="-1" href="sign-in.html">Logout</a></li> </ul> </li> </ul> </div><!--/.navbar-collapse --> </div> </div> <div class="navbar-collapse collapse"> <div id="main-menu"> <div id="phone-navigation" class="visible-xs"> <ul id="dashboard-menu" class="nav nav-list"> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Dashboard" href="index.html"><i class="icon-home"></i> <span class="caption">Dashboard</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Reports" href="reports.html"><i class="icon-bar-chart"></i> <span class="caption">Reports</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="UI Features" href="components.html"><i class="icon-briefcase"></i> <span class="caption">UI Features</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Pricing" href="pricing.html"><i class="icon-magic"></i> <span class="caption">Pricing</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Media" href="media.html"><i class="icon-film"></i> <span class="caption">Media</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog" href="blog.html"><i class="icon-beaker"></i> <span class="caption">Blog</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog Entry" href="blog-item.html"><i class="icon-coffee"></i> <span class="caption">Blog Entry</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Help" href="help.html"><i class="icon-question-sign"></i> <span class="caption">Help</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Faq" href="faq.html"><i class="icon-book"></i> <span class="caption">Faq</span></a></li> <li class="active "><a rel="tooltip" data-placement="right" data-original-title="Calendar" href="calendar.html"><i class="icon-calendar"></i> <span class="caption">Calendar</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Forms" href="forms.html"><i class="icon-tasks"></i> <span class="caption">Forms</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Tables" href="tables.html"><i class="icon-table"></i> <span class="caption">Tables</span></a></li> <li class=" theme-mobile-hack hidden-xs"><a rel="tooltip" data-placement="right" data-original-title="Mobile" href="mobile.html"><i class="icon-comment-alt"></i> <span class="caption">Mobile</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Icons" href="icons.html"><i class="icon-heart"></i> <span class="caption">Icons</span></a></li> </ul> </div> <ul class="nav nav-tabs hidden-xs"> <li class="active"><a href="index.html"><i class="icon-dashboard"></i> <span>Dashboard</span></a></li> <li ><a href="reports.html" ><i class="icon-bar-chart"></i> <span>Reports</span></a></li> <li ><a href="components.html" ><i class="icon-cogs"></i> <span>Components</span></a></li> <li ><a href="pricing.html"><i class="icon-magic"></i> <span>Pricing</span></a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cog"></i> Settings <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="sign-in.html"><span>Sign-in Page</span></a></li> <li><a href="sign-up.html"><span>Sign-up Page</span></a></li> <li><a href="reset-password.html"><span>Forgot Password Page</span></a></li> </ul> </li> </ul> </div> </div> <div id="sidebar-nav" class="hidden-xs"> <ul id="dashboard-menu" class="nav nav-list"> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Dashboard" href="index.html"><i class="icon-home"></i> <span class="caption">Dashboard</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Reports" href="reports.html"><i class="icon-bar-chart"></i> <span class="caption">Reports</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="UI Features" href="components.html"><i class="icon-briefcase"></i> <span class="caption">UI Features</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Pricing" href="pricing.html"><i class="icon-magic"></i> <span class="caption">Pricing</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Media" href="media.html"><i class="icon-film"></i> <span class="caption">Media</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog" href="blog.html"><i class="icon-beaker"></i> <span class="caption">Blog</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog Entry" href="blog-item.html"><i class="icon-coffee"></i> <span class="caption">Blog Entry</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Help" href="help.html"><i class="icon-question-sign"></i> <span class="caption">Help</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Faq" href="faq.html"><i class="icon-book"></i> <span class="caption">Faq</span></a></li> <li class="active "><a rel="tooltip" data-placement="right" data-original-title="Calendar" href="calendar.html"><i class="icon-calendar"></i> <span class="caption">Calendar</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Forms" href="forms.html"><i class="icon-tasks"></i> <span class="caption">Forms</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Tables" href="tables.html"><i class="icon-table"></i> <span class="caption">Tables</span></a></li> <li class=" theme-mobile-hack"><a rel="tooltip" data-placement="right" data-original-title="Mobile" href="mobile.html"><i class="icon-comment-alt"></i> <span class="caption">Mobile</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Icons" href="icons.html"><i class="icon-heart"></i> <span class="caption">Icons</span></a></li> </ul> </div> <div class="content"> <script type='text/javascript'> $(document).ready(function() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); /* Colors #54a0f6 #a93018 #90c654 #A97518 #41B3DF */ $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,basicWeek,basicDay' }, editable: true, events: [ { title: 'All Day Event', start: new Date(y, m, 1), color: '#54a0f6' }, { title: 'Long Event', start: new Date(y, m, d-5), end: new Date(y, m, d-2), color: '#a93018' }, { id: 999, title: 'Repeating Event', start: new Date(y, m, d-3, 16, 0), allDay: false, color: '#41B3DF' }, { id: 999, title: 'Repeating Event', start: new Date(y, m, d+4, 16, 0), allDay: false, color: '#A97518' }, { title: 'Meeting', start: new Date(y, m, d, 10, 30), allDay: false, color: '#54a0f6' }, { title: 'Lunch', start: new Date(y, m, d, 12, 0), end: new Date(y, m, d, 14, 0), allDay: false, color: '#90c654' }, { title: 'Birthday Party', start: new Date(y, m, d+1, 19, 0), end: new Date(y, m, d+1, 22, 30), allDay: false, color: '#54a0f6' }, { title: 'Click for Google', start: new Date(y, m, 28), end: new Date(y, m, 29), url: 'http://google.com/', color: '#54a0f6' } ] }); }); </script> <style type='text/css'> #calendar { width: 100%; margin: 0 auto; } </style> <div class="container"> <h2>Upcoming Events</h2> <div id='calendar'></div> </div> <footer> <hr> <p class="pull-right">Design by <a href="http://www.portnine.com" target="_blank">Portnine</a></p> <p>&copy; 2013 <a href="#">Your Company</a></p> </footer> </div> <script src="lib/bootstrap3/dist/js/bootstrap.js"></script> <script type="text/javascript"> $("[rel=tooltip]").tooltip({animation:false}); $(function() { $('.demo-cancel-click').click(function(){return false;}); }); </script> </body> </html>
00-techstorm
trunk/assets/admin/calendar.html
HTML
gpl3
14,160
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Bootstrap Admin</title> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- For sample logo only--> <!--Remove if you no longer need this font--> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Aguafina+Script"> <!--For sample logo only--> <link rel="stylesheet" type="text/css" href="lib/bootstrap3/dist/css/bootstrap.css"> <link rel="stylesheet" href="lib/FontAwesome/css/font-awesome.css"> <script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="javascripts/site.js" type="text/javascript"></script> <link href="lib/datepicker/css/datepicker.css" rel="stylesheet"> <link href="lib/colorpicker/css/colorpicker.css" rel="stylesheet"> <link href="lib/bootstrap-toggle-buttons/static/stylesheets/bootstrap-toggle-buttons.css" rel="stylesheet"> <link href="lib/bootstrap-timepicker/compiled/timepicker.css" rel="stylesheet"> <link href="lib/bootstrap-formhelpers/css/bootstrap-formhelpers.css" rel="stylesheet"> <link href="lib/bootstrap-notify/bootstrap-notify.css" rel="stylesheet"> <link href="lib/bootstrap-notify/alert-bangtidy.css" rel="stylesheet"> <link href="lib/bootstrap-notify/alert-blackgloss.css" rel="stylesheet"> <link href="lib/bootstrap-spinner/bootstrap-spinner.css" rel="stylesheet"> <link rel="stylesheet" href="stylesheets/isotope.css"> <script src="lib/jquery.isotope.min.js"></script> <script src="lib/datepicker/js/bootstrap-datepicker.js" type="text/javascript"></script> <script src="lib/colorpicker/js/bootstrap-colorpicker.js" type="text/javascript"></script> <script src="lib/bootstrap-toggle-buttons/static/js/jquery.toggle.buttons.js" type="text/javascript"></script> <script src="lib/bootstrap-timepicker/js/bootstrap-timepicker.js" type="text/javascript"></script> <script src="lib/bootstrap-formhelpers/js/bootstrap-formhelpers-countries.en_US.js" type="text/javascript"></script> <script src="lib/bootstrap-formhelpers/js/bootstrap-formhelpers-countries.js" type="text/javascript"></script> <script src="lib/bootstrap-formhelpers/js/bootstrap-formhelpers-timezones.codes.js" type="text/javascript"></script> <script src="lib/bootstrap-formhelpers/js/bootstrap-formhelpers-timezones.js" type="text/javascript"></script> <script src="lib/bootstrap-formhelpers/js/bootstrap-formhelpers-languages.codes.js" type="text/javascript"></script> <script src="lib/bootstrap-formhelpers/js/bootstrap-formhelpers-languages.js" type="text/javascript"></script> <script src="lib/bootstrap-formhelpers/js/bootstrap-formhelpers-states.en_US.js" type="text/javascript"></script> <script src="lib/bootstrap-formhelpers/js/bootstrap-formhelpers-states.js" type="text/javascript"></script> <script src="lib/jquery-qrcode/jquery.qrcode.min.js" type="text/javascript"></script> <script src="lib/bootstrap-notify/bootstrap-notify.js" type="text/javascript"></script> <script src="lib/bootstrap-spinner/bootstrap-spinner.js" type="text/javascript"></script> <!--WYSI HTML EDITOR--> <link rel="stylesheet" type="text/css" href="lib/bootstrap-wysihtml5/dist/bootstrap-wysihtml5-0.0.2.css"> <script src="lib/bootstrap-wysihtml5/lib/js/wysihtml5-0.3.0.js"></script> <script src="lib/bootstrap-wysihtml5/dist/bootstrap-wysihtml5-0.0.2.min.js"></script> <style type="text/css"> h2 { margin-top: 2em; } #dropdown-buttons .btn-group:first-child { margin-left: 0px; } #dropdown-buttons .btn-group { margin-left: 31px; } #dropdown-buttons2 .btn-group:first-child { margin-left: 0px; } #dropdown-buttons2 .btn-group { margin-left: 18px; } .sample-buttons .btn-group { width: 115px; height: 40px; margin: 0em; } .filter-demo-item { float: left; width: 50px; height: 50px; margin: .5em; background: #667; } .loading { margin-right: .25em; } </style> <script type="text/javascript"> $(function() { $('a[rel="tooltip"][href="#"]').click(function(e){e.preventDefault(); return false;}); $('.datepicker').datepicker(); $('.timepicker').timepicker(); $('.color').colorpicker(); $('.popover-btn').popover(); $('#MySpinner').spinner(); $('#some-textarea').wysihtml5({"stylesheets": ["lib/bootstrap-wysihtml5/lib/css/wysiwyg-color.css"]}); $('#qrcode').qrcode({render: 'table', width: 96,height: 96,text: "Hope you like the theme!"}); $('#warning-toggle-button').toggleButtons({ style: { enabled: "warning", disabled: "danger" } }); $('#danger-toggle-button').toggleButtons({ style: { enabled: "danger", disabled: "info" } }); $('#info-toggle-button').toggleButtons({ style: { enabled: "info", disabled: "success" } }); $('#success-toggle-button').toggleButtons({ style: { enabled: "success", disabled: "warning" } }); // Random Messages var messages = [ [ 'bottom-right', 'success', "What's up? This is a message." ], [ 'bottom-right', 'info', "What's up? This is a message."], [ 'top-right', 'inverse', "What's up? This is a message." ], [ 'top-right', 'success', "What's up? This is a message." ], [ 'top-right', 'danger', "What's up? This is a message." ], [ 'bottom-left', 'warning', "What's up? This is a message." ], [ 'bottom-left', 'info', "What's up? This is a message." ], [ 'bottom-left', 'success', "What's up? This is a message." ], ]; $('.show-notification').click(function (e) { var message = messages[Math.floor(Math.random() * messages.length)]; $('.' + message[0]).notify({ message: { text: message[2] }, type: message[1] }).show(); }); $('#filter-demo').isotope(); fancyFilter('.filter', '#filter-demo'); }); //<--document.ready </script> <link rel="stylesheet" type="text/css" href="stylesheets/theme.css"> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le fav and touch icons --> <link rel="shortcut icon" href="../assets/ico/favicon.ico"> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png"> </head> <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]--> <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]--> <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]--> <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <body class=""> <!--<![endif]--> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-reorder"></span> </button> <a class="navbar-brand" href="index.html">Awesome.</a> </div> <div class="hidden-xs"> <ul class="nav navbar-nav pull-right"> <li class="hidden-phone"><a href="#" role="button">Settings</a></li> <li id="fat-menu" class="dropdown"> <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user"></i> Jack Smith <i class="icon-caret-down"></i> </a> <ul class="dropdown-menu"> <li><a tabindex="-1" href="#">My Account</a></li> <li class="divider"></li> <li><a tabindex="-1" class="visible-phone" href="#">Settings</a></li> <li class="divider visible-phone"></li> <li><a tabindex="-1" href="sign-in.html">Logout</a></li> </ul> </li> </ul> </div><!--/.navbar-collapse --> </div> </div> <div class="navbar-collapse collapse"> <div id="main-menu"> <div id="phone-navigation" class="visible-xs"> <ul id="dashboard-menu" class="nav nav-list"> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Dashboard" href="index.html"><i class="icon-home"></i> <span class="caption">Dashboard</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Reports" href="reports.html"><i class="icon-bar-chart"></i> <span class="caption">Reports</span></a></li> <li class="active "><a rel="tooltip" data-placement="right" data-original-title="UI Features" href="components.html"><i class="icon-briefcase"></i> <span class="caption">UI Features</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Pricing" href="pricing.html"><i class="icon-magic"></i> <span class="caption">Pricing</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Media" href="media.html"><i class="icon-film"></i> <span class="caption">Media</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog" href="blog.html"><i class="icon-beaker"></i> <span class="caption">Blog</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog Entry" href="blog-item.html"><i class="icon-coffee"></i> <span class="caption">Blog Entry</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Help" href="help.html"><i class="icon-question-sign"></i> <span class="caption">Help</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Faq" href="faq.html"><i class="icon-book"></i> <span class="caption">Faq</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Calendar" href="calendar.html"><i class="icon-calendar"></i> <span class="caption">Calendar</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Forms" href="forms.html"><i class="icon-tasks"></i> <span class="caption">Forms</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Tables" href="tables.html"><i class="icon-table"></i> <span class="caption">Tables</span></a></li> <li class=" theme-mobile-hack hidden-xs"><a rel="tooltip" data-placement="right" data-original-title="Mobile" href="mobile.html"><i class="icon-comment-alt"></i> <span class="caption">Mobile</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Icons" href="icons.html"><i class="icon-heart"></i> <span class="caption">Icons</span></a></li> </ul> </div> <ul class="nav nav-tabs hidden-xs"> <li ><a href="index.html"><i class="icon-dashboard"></i> <span>Dashboard</span></a></li> <li ><a href="reports.html" ><i class="icon-bar-chart"></i> <span>Reports</span></a></li> <li class="active"><a href="components.html" ><i class="icon-cogs"></i> <span>Components</span></a></li> <li ><a href="pricing.html"><i class="icon-magic"></i> <span>Pricing</span></a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cog"></i> Settings <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="sign-in.html"><span>Sign-in Page</span></a></li> <li><a href="sign-up.html"><span>Sign-up Page</span></a></li> <li><a href="reset-password.html"><span>Forgot Password Page</span></a></li> </ul> </li> </ul> </div> </div> <div id="sidebar-nav" class="hidden-xs"> <ul id="dashboard-menu" class="nav nav-list"> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Dashboard" href="index.html"><i class="icon-home"></i> <span class="caption">Dashboard</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Reports" href="reports.html"><i class="icon-bar-chart"></i> <span class="caption">Reports</span></a></li> <li class="active "><a rel="tooltip" data-placement="right" data-original-title="UI Features" href="components.html"><i class="icon-briefcase"></i> <span class="caption">UI Features</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Pricing" href="pricing.html"><i class="icon-magic"></i> <span class="caption">Pricing</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Media" href="media.html"><i class="icon-film"></i> <span class="caption">Media</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog" href="blog.html"><i class="icon-beaker"></i> <span class="caption">Blog</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog Entry" href="blog-item.html"><i class="icon-coffee"></i> <span class="caption">Blog Entry</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Help" href="help.html"><i class="icon-question-sign"></i> <span class="caption">Help</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Faq" href="faq.html"><i class="icon-book"></i> <span class="caption">Faq</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Calendar" href="calendar.html"><i class="icon-calendar"></i> <span class="caption">Calendar</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Forms" href="forms.html"><i class="icon-tasks"></i> <span class="caption">Forms</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Tables" href="tables.html"><i class="icon-table"></i> <span class="caption">Tables</span></a></li> <li class=" theme-mobile-hack"><a rel="tooltip" data-placement="right" data-original-title="Mobile" href="mobile.html"><i class="icon-comment-alt"></i> <span class="caption">Mobile</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Icons" href="icons.html"><i class="icon-heart"></i> <span class="caption">Icons</span></a></li> </ul> </div> <div class="content"> <div class="row"> <div class="col-md-12"> <h3>Buttons</h3> <table class="table"> <thead> <tr> <th>Button</th> <th class="hidden-xs">Class</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><button type="button" class="btn">Button</button></td> <td class="hidden-xs"><code>btn</code></td> <td>Standard gray button with gradient</td> </tr> <tr> <td><button type="button" class="btn btn-primary">Button</button></td> <td class="hidden-xs"><code>btn btn-primary</code></td> <td>Provides extra visual weight and identifies the primary action in a set of buttons</td> </tr> <tr> <td><button type="button" class="btn btn-info">Button</button></td> <td class="hidden-xs"><code>btn btn-info</code></td> <td>Used as an alternative to the default styles</td> </tr> <tr> <td><button type="button" class="btn btn-success">Button</button></td> <td class="hidden-xs"><code>btn btn-success</code></td> <td>Indicates a successful or positive action</td> </tr> <tr> <td><button type="button" class="btn btn-warning">Button</button></td> <td class="hidden-xs"><code>btn btn-warning</code></td> <td>Indicates caution should be taken with this action</td> </tr> <tr> <td><button type="button" class="btn btn-danger">Button</button></td> <td class="hidden-xs"><code>btn btn-danger</code></td> <td>Indicates a dangerous or potentially negative action</td> </tr> <tr> <td><button type="button" class="btn btn-inverse">Button</button></td> <td><code>btn btn-inverse</code></td> <td class="hidden-xs">Alternate dark gray button, not tied to a semantic action or use</td> </tr> <tr> <td><button type="button" class="btn btn-link">Link</button></td> <td class="hidden-xs"><code>btn btn-link</code></td> <td>Deemphasize a button by making it look like a link while maintaining button behavior</td> </tr> </tbody> </table> <h3>Dropdown Buttons</h3> <div class="sample-buttons" style="margin: 0;"> <div class="btn-group"> <button class="btn dropdown-toggle" data-toggle="dropdown">Button <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Button <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown">Button <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button class="btn btn-warning dropdown-toggle" data-toggle="dropdown">Button <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button class="btn btn-success dropdown-toggle" data-toggle="dropdown">Button <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button class="btn btn-info dropdown-toggle" data-toggle="dropdown">Button <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">Button <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> </div> <div style="height: 1em;"></div> <div class="sample-buttons" style="margin: 0;"> <div class="btn-group"> <button class="btn">Button</button> <button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button class="btn btn-primary">Button</button> <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button class="btn btn-danger">Button</button> <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button class="btn btn-warning">Button</button> <button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button class="btn btn-success">Button</button> <button class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button class="btn btn-info">Button</button> <button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> <div class="btn-group"> <button class="btn btn-inverse">Button</button> <button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div><!-- /btn-group --> </div> <h3>Toggle Buttons</h3> <div id="warning-toggle-button" style="margin-right: 1em;"> <input type="checkbox"> </div> <div id="info-toggle-button" style="margin-right: 1em;"> <input type="checkbox"> </div> <div id="success-toggle-button" style="margin-right: 1em;"> <input type="checkbox"> </div> <div id="danger-toggle-button"> <input type="checkbox"> </div> <h3>Filters</h3> <ul class="filter nav nav-pills" style="text-align:left;"> <li class="active"> <a href="#all" data-filter=".filter-demo-item">All</a> </li> <li><a href="#images" data-filter=".sampleFilterOne">Filter Some</a></li> <li><a href="#videos" data-filter=".sampleFilterTwo">Filter Others</a></li> </ul> <div id="filter-demo" style="max-width: 400px;"> <div class="filter-demo-item sampleFilterOne"></div> <div class="filter-demo-item sampleFilterOne"></div> <div class="filter-demo-item"></div> <div class="filter-demo-item sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterOne sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterOne"></div> <div class="filter-demo-item sampleFilterOne sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterOne"></div> <div class="filter-demo-item sampleFilterOne"></div> <div class="filter-demo-item sampleFilterTwo sampleFilterOne"></div> <div class="filter-demo-item sampleFilterOne sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterOne"></div> <div class="filter-demo-item sampleFilterOne sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterOne"></div> <div class="filter-demo-item sampleFilterOne"></div> <div class="filter-demo-item sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterTwo sampleFilterOne"></div> <div class="filter-demo-item sampleFilterOne sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterOne"></div> <div class="filter-demo-item sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterTwo sampleFilterOne"></div> <div class="filter-demo-item sampleFilterOne sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterOne"></div> <div class="filter-demo-item sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterOne"></div> <div class="filter-demo-item sampleFilterOne sampleFilterTwo"></div> <div class="filter-demo-item sampleFilterOne sampleFilterTwo"></div> </div> <div class="clearfix"></div> <h3>Button Groups</h3> <div class="btn-toolbar"> <div class="btn-group"> <button class="btn">Left</button> <button class="btn">Middle</button> <button class="btn">Right</button> </div> <div class="btn-group"> <button class="btn">1</button> <button class="btn">2</button> <button class="btn">3</button> <button class="btn">4</button> </div> <div class="btn-group"> <button class="btn">5</button> <button class="btn">6</button> <button class="btn">7</button> </div> <div class="btn-group"> <button class="btn">8</button> </div> </div> <h3>Alerts</h3> <div class="row"> <div class="col-md-8"> <div class="alert fade in"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>Holy guacamole!</strong> This is an alert for your awesome web application. </div> <div class="alert alert-info fade in"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>Holy guacamole!</strong> This is an alert for your awesome web application. </div> <div class="alert alert-success fade in"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>Holy guacamole!</strong> This is an alert for your awesome web application. </div> <div class="alert alert-error fade in"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>Holy guacamole!</strong> This is an alert for your awesome web application. </div> </div> </div> <div class="row"> <div class="col-md-12"> <h3>Loading Icons</h3> <img class="loading" alt="loading" src="images/loading-icons/loading1.gif"> <img class="loading" alt="loading" src="images/loading-icons/loading2.gif"> <img class="loading" alt="loading" src="images/loading-icons/loading4.gif"> <img class="loading" alt="loading" src="images/loading-icons/loading3.gif"> <img class="loading" alt="loading" src="images/loading-icons/loading6.gif"> <img class="loading" alt="loading" src="images/loading-icons/loading7.gif"> <img class="loading" alt="loading" src="images/loading-icons/loading8.gif"> <img class="loading" alt="loading" src="images/loading-icons/loading9.gif"> <img class="loading" alt="loading" src="images/loading-icons/loading5.gif"> <img class="loading" alt="loading" src="images/loading-icons/loading10.gif"> </div> </div> <div class="row"> <div class="col-md-6"> <h3>Tabs</h3> <div class="fancy-tab-container"> <ul class="nav nav-tabs three-tabs fancy"> <li class="active"><a href="#fancya1" data-toggle="tab">Orders</a></li> <li><a href="#fancya2" data-toggle="tab">Promotions</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Deals <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#fancya3" data-toggle="tab">Dump Truck</a></li> <li><a href="#fancya4" data-toggle="tab">Police Car</a></li> </ul> </li> </ul> <div class="tab-content"> <div class="tab-pane fade in active" id="fancya1"> <ul class="cards"> <li> Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. </li> <li> Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack. </li> <li> Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master. </li> </ul> </div> <div class="tab-pane fade" id="fancya2"> <p>Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR.</p> <p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid.</p> <p>Nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.</p> </div> <div class="tab-pane fade" id="fancya3"> <p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.</p> <p>Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown.</p> <p>DIY synth PBR banksy irony.</p> <p>Pitchfork sustainable tofu synth chambray yr.</p> </div> <div class="tab-pane fade" id="fancya4"> <p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical.</p> <p>Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</p> </div> </div> </div> </div> </div> <div class="row"> <div class="col-md-4"> <h3>Alerts</h3> <button class="btn btn-danger show-notification">Click for a random notification</button> <div class='notifications top-right'></div> <div class='notifications bottom-right'></div> <div class='notifications top-left'></div> <div class='notifications bottom-left'></div> </div> <div class="col-md-4"> <h3>Dialog</h3> <!-- Button to trigger modal --> <a href="#myModal" role="button" class="btn btn-warning" data-toggle="modal">Launch demo modal</a> <!-- Modal --> <div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3>Sign Up</h3> </div> <form action="" method="POST" accept-charset="utf-8"> <div class="modal-body"> <div class="form-group"> <label for="name">Your Name</label> <input class="input-lg form-control" type="text" name="name" id="name"/> </div> <div class="form-group"> <label for="email">Your Email</label> <input class="input-lg form-control" type="text" name="email" id="email"/> </div> </div> <div class="modal-footer"> <input type="submit" name="submit-button" value="Download" class="btn btn-primary"/> </div> </form> </div> </div> </div> </div> </div> <div class="row"> <div class="col-md-4"> <h3>Fancy Pagination</h3> <div style="margin-top: 0px;"> <ul class="fancy pagination"> <li><a href="#">«</a></li> <li><a href="#">1</a></li> <li><a href="#">2</a></li> <li class="active"><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">»</a></li> </ul> </div> </div> <div class="col-md-4"> <h3>Classic Pagination</h3> <div class="pagination" style="margin-top: 0px;"> <ul class="pagination"> <li><a href="#">«</a></li> <li><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">»</a></li> </ul> </div> </div> </div> <h3>Labels and Badges</h3> <table class="table table-bordered table-striped"> <thead> <tr> <th>Name</th> <th>Label</th> <th>Badge</th> </tr> </thead> <tbody> <tr> <td> Default </td> <td> <span class="label label-default">Default</span> </td> <td> <span class="badge">1</span> </td> </tr> <tr> <td> Success </td> <td> <span class="label label-success">Success</span> </td> <td> <span class="badge badge-success">2</span> </td> </tr> <tr> <td> Warning </td> <td> <span class="label label-warning">Warning</span> </td> <td> <span class="badge badge-warning">4</span> </td> </tr> <tr> <td> Important </td> <td> <span class="label label-important">Important</span> </td> <td> <span class="badge badge-important">6</span> </td> </tr> <tr> <td> Info </td> <td> <span class="label label-info">Info</span> </td> <td> <span class="badge badge-info">8</span> </td> </tr> <tr> <td> Inverse </td> <td> <span class="label label-inverse">Inverse</span> </td> <td> <span class="badge badge-inverse">10</span> </td> </tr> </tbody> </table> <h3>Progress Bars</h3> <h3>Basic</h3> <div class="progress"> <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"> <span class="sr-only">60% Complete</span> </div> </div> <div class="progress"> <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"> <span class="sr-only">40% Complete (success)</span> </div> </div> <div class="progress"> <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%"> <span class="sr-only">20% Complete</span> </div> </div> <div class="progress"> <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%"> <span class="sr-only">60% Complete (warning)</span> </div> </div> <div class="progress"> <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%"> <span class="sr-only">80% Complete</span> </div> </div> <h3>Striped</h3> <div class="progress progress-striped"> <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"> <span class="sr-only">40% Complete (success)</span> </div> </div> <div class="progress progress-striped"> <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%"> <span class="sr-only">20% Complete</span> </div> </div> <div class="progress progress-striped"> <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%"> <span class="sr-only">60% Complete (warning)</span> </div> </div> <div class="progress progress-striped"> <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%"> <span class="sr-only">80% Complete (danger)</span> </div> </div> <h3>Animated</h3> <div class="progress progress-striped active"> <div class="progress-bar" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%"> <span class="sr-only">45% Complete</span> </div> </div> <h3>Stacked</h3> <div class="progress"> <div class="progress-bar progress-bar-success" style="width: 35%"> <span class="sr-only">35% Complete (success)</span> </div> <div class="progress-bar progress-bar-warning" style="width: 20%"> <span class="sr-only">20% Complete (warning)</span> </div> <div class="progress-bar progress-bar-danger" style="width: 10%"> <span class="sr-only">10% Complete (danger)</span> </div> </div> <div class="row"> <div class="col-md-3"> <h3>Date Picker</h3> <div class="input-group"> <span class="input-group-addon"><i class="icon-th"></i></span> <input class="col-md-7" size="16" type="text" value="12-02-2012" id="date-picker-input" style="height:2.25em;"> </div> </div> <div class="col-md-3"> <h3>Time Picker</h3> <div class="input-group bootstrap-timepicker-component"> <span class="input-group-addon"> <i class="icon-time"></i> </span> <input type="text" class="col-md-6 timepicker input-small" value="8:45 PM" style="height:2.25em;"> </div> </div> <div class="col-md-3"> <h3>Color Picker</h3> <div class="input-group color" data-color="#8181D4" data-color-format="hex"> <span class="input-group-addon"><i style="display: block; width:14px; height: 14px; background-color: #8181D4;"></i></span> <input type="text" class="col-md-6" value="#8181D4" style="height:2.25em;"> </div> </div> <div class="col-md-3"> <h3>Spinner</h3> <div id="MySpinner" class="spinner"> <input type="text" class="input-mini spinner-input" style="height:2.25em;"> <div class="spinner-buttons btn-group btn-group-vertical"> <button class="btn spinner-up"> <i class="icon-chevron-up"></i> </button> <button class="btn spinner-down"> <i class="icon-chevron-down"></i> </button> </div> </div> <div class="clearfix"></div> </div> </div> <div class="row"> <div class="col-md-2"> <h3>Country Selector</h3> <form class="bs-docs-example form-inline"> <select style="width: 160px;" class="countries" data-country="US"></select> </form> </div> <div class="col-md-3"> <h3>Time Zone Selector</h3> <form class="bs-docs-example form-inline"> <select class="timezones" data-country="US"></select> </form> </div> <div class="col-md-3"> <h3>States Selector</h3> <form class="bs-docs-example form-inline"> <select style="width: 160px;" class="states" data-state="CA" data-country="US"></select> </form> </div> <div class="col-md-3"> <h3>Language Selector</h3> <form class="bs-docs-example form-inline"> <select class="input-medium languages" data-language="en"></select> </form> </div> </div> <h3>Tooltips</h3> <ul class="list-unstyled"> <li style="float: left; margin-left: 1em; margin-bottom: 1em;"><a href="#" class="btn" rel="tooltip" data-placement="top" data-original-title="Tooltip on top">Tooltip on top</a></li> <li style="float: left; margin-left: 1em; margin-bottom: 1em;"><a href="#" class="btn" rel="tooltip" data-placement="right" data-original-title="Tooltip on right">Tooltip on right</a></li> <li style="float: left; margin-left: 1em; margin-bottom: 1em;"><a href="#" class="btn" rel="tooltip" data-placement="bottom" data-original-title="Tooltip on bottom">Tooltip on bottom</a></li> <li style="float: left; margin-left: 1em; margin-bottom: 1em;"><a href="#" class="btn" rel="tooltip" data-placement="left" title="Tooltip on left">Tooltip on left</a></li> </ul> <div class="clearfix"></div> <h3>Popover</h3> <ul class="list-unstyled"> <li style="float: left; margin-left: 1em; margin-bottom: 1em;"><button class="btn popover-btn" rel="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." data-original-title="Popover on top">Popover on top</button></li> <li style="float: left; margin-left: 1em; margin-bottom: 1em;"><button class="btn popover-btn" rel="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." data-original-title="Popover on right">Popover on right</button></li> <li style="float: left; margin-left: 1em; margin-bottom: 1em;"><button class="btn popover-btn" rel="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." data-original-title="Popover on bottom">Popover on bottom</button></li> <li style="float: left; margin-left: 1em; margin-bottom: 1em;"><button class="btn popover-btn" rel="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." data-original-title="Popover on left">Popover on left</button></li> </ul> <div class="clearfix"></div> <h3>QR Codes</h3> <div id="qrcode"></div> <h3>HTML Editor</h3> <textarea id="some-textarea" placeholder="Enter text ..." style="width: 95%; max-width: 810px; height: 200px"></textarea> </div> </div> <footer> <hr> <p class="pull-right">Design by <a href="http://www.portnine.com" target="_blank">Portnine</a></p> <p>&copy; 2013 <a href="#">Your Company</a></p> </footer> </div> <script src="lib/bootstrap3/dist/js/bootstrap.js"></script> <script type="text/javascript"> $("[rel=tooltip]").tooltip({animation:false}); $(function() { $('.demo-cancel-click').click(function(){return false;}); }); </script> </body> </html>
00-techstorm
trunk/assets/admin/components.html
HTML
gpl3
51,352
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Bootstrap Admin</title> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- For sample logo only--> <!--Remove if you no longer need this font--> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Aguafina+Script"> <!--For sample logo only--> <link rel="stylesheet" type="text/css" href="lib/bootstrap3/dist/css/bootstrap.css"> <link rel="stylesheet" href="lib/FontAwesome/css/font-awesome.css"> <script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="javascripts/site.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="stylesheets/theme.css"> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le fav and touch icons --> <link rel="shortcut icon" href="../assets/ico/favicon.ico"> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png"> </head> <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]--> <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]--> <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]--> <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <body class=""> <!--<![endif]--> <div class="login"> <div class="dialog"> <p class="brand" href="index.html">Awesome.</p> <div class="block"> <div class="block-header"> <h2>Sign In</h2> </div> <form> <div class="form-group"> <label>Username</label> <input type="text" class="form-control"> </div> <div class="form-group"> <label>Password</label> <a class="reset-password pull-right" href="reset-password.html">Forgot your password?</a> <input type="password" class="form-control"> </div> <div class="form-actions"> <a href="index.html" class="btn btn-success pull-right">Sign In</a> <!--You can have a remember me or sign up here--> <!--<label class="remember-me"><input type="checkbox"> Remember me</label>--> <!--<a href="sign-up.html" class="sign-up">Sign Up</a>--> <div class="clearfix"></div> </div> </form> </div> </div> </div> <script src="lib/bootstrap3/dist/js/bootstrap.js"></script> <script type="text/javascript"> $("[rel=tooltip]").tooltip({animation:false}); $(function() { $('.demo-cancel-click').click(function(){return false;}); }); </script> </body> </html>
00-techstorm
trunk/assets/admin/sign-in.html
HTML
gpl3
3,502
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Bootstrap Admin</title> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- For sample logo only--> <!--Remove if you no longer need this font--> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Aguafina+Script"> <!--For sample logo only--> <link rel="stylesheet" type="text/css" href="lib/bootstrap3/dist/css/bootstrap.css"> <link rel="stylesheet" href="lib/FontAwesome/css/font-awesome.css"> <script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="javascripts/site.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="stylesheets/theme.css"> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le fav and touch icons --> <link rel="shortcut icon" href="../assets/ico/favicon.ico"> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png"> </head> <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]--> <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]--> <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]--> <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <body class=""> <!--<![endif]--> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-reorder"></span> </button> <a class="navbar-brand" href="index.html">Awesome.</a> </div> <div class="hidden-xs"> <ul class="nav navbar-nav pull-right"> <li class="hidden-phone"><a href="#" role="button">Settings</a></li> <li id="fat-menu" class="dropdown"> <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user"></i> Jack Smith <i class="icon-caret-down"></i> </a> <ul class="dropdown-menu"> <li><a tabindex="-1" href="#">My Account</a></li> <li class="divider"></li> <li><a tabindex="-1" class="visible-phone" href="#">Settings</a></li> <li class="divider visible-phone"></li> <li><a tabindex="-1" href="sign-in.html">Logout</a></li> </ul> </li> </ul> </div><!--/.navbar-collapse --> </div> </div> <div class="navbar-collapse collapse"> <div id="main-menu"> <div id="phone-navigation" class="visible-xs"> <ul id="dashboard-menu" class="nav nav-list"> <li class="active "><a rel="tooltip" data-placement="right" data-original-title="Dashboard" href="index.html"><i class="icon-home"></i> <span class="caption">Dashboard</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Reports" href="reports.html"><i class="icon-bar-chart"></i> <span class="caption">Reports</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="UI Features" href="components.html"><i class="icon-briefcase"></i> <span class="caption">UI Features</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Pricing" href="pricing.html"><i class="icon-magic"></i> <span class="caption">Pricing</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Media" href="media.html"><i class="icon-film"></i> <span class="caption">Media</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog" href="blog.html"><i class="icon-beaker"></i> <span class="caption">Blog</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog Entry" href="blog-item.html"><i class="icon-coffee"></i> <span class="caption">Blog Entry</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Help" href="help.html"><i class="icon-question-sign"></i> <span class="caption">Help</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Faq" href="faq.html"><i class="icon-book"></i> <span class="caption">Faq</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Calendar" href="calendar.html"><i class="icon-calendar"></i> <span class="caption">Calendar</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Forms" href="forms.html"><i class="icon-tasks"></i> <span class="caption">Forms</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Tables" href="tables.html"><i class="icon-table"></i> <span class="caption">Tables</span></a></li> <li class=" theme-mobile-hack hidden-xs"><a rel="tooltip" data-placement="right" data-original-title="Mobile" href="mobile.html"><i class="icon-comment-alt"></i> <span class="caption">Mobile</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Icons" href="icons.html"><i class="icon-heart"></i> <span class="caption">Icons</span></a></li> </ul> </div> <ul class="nav nav-tabs hidden-xs"> <li class="active"><a href="index.html"><i class="icon-dashboard"></i> <span>Dashboard</span></a></li> <li ><a href="reports.html" ><i class="icon-bar-chart"></i> <span>Reports</span></a></li> <li ><a href="components.html" ><i class="icon-cogs"></i> <span>Components</span></a></li> <li ><a href="pricing.html"><i class="icon-magic"></i> <span>Pricing</span></a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cog"></i> Settings <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="sign-in.html"><span>Sign-in Page</span></a></li> <li><a href="sign-up.html"><span>Sign-up Page</span></a></li> <li><a href="reset-password.html"><span>Forgot Password Page</span></a></li> </ul> </li> </ul> </div> </div> <div id="sidebar-nav" class="hidden-xs"> <ul id="dashboard-menu" class="nav nav-list"> <li class="active "><a rel="tooltip" data-placement="right" data-original-title="Dashboard" href="index.html"><i class="icon-home"></i> <span class="caption">Dashboard</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Reports" href="reports.html"><i class="icon-bar-chart"></i> <span class="caption">Reports</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="UI Features" href="components.html"><i class="icon-briefcase"></i> <span class="caption">UI Features</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Pricing" href="pricing.html"><i class="icon-magic"></i> <span class="caption">Pricing</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Media" href="media.html"><i class="icon-film"></i> <span class="caption">Media</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog" href="blog.html"><i class="icon-beaker"></i> <span class="caption">Blog</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog Entry" href="blog-item.html"><i class="icon-coffee"></i> <span class="caption">Blog Entry</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Help" href="help.html"><i class="icon-question-sign"></i> <span class="caption">Help</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Faq" href="faq.html"><i class="icon-book"></i> <span class="caption">Faq</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Calendar" href="calendar.html"><i class="icon-calendar"></i> <span class="caption">Calendar</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Forms" href="forms.html"><i class="icon-tasks"></i> <span class="caption">Forms</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Tables" href="tables.html"><i class="icon-table"></i> <span class="caption">Tables</span></a></li> <li class=" theme-mobile-hack"><a rel="tooltip" data-placement="right" data-original-title="Mobile" href="mobile.html"><i class="icon-comment-alt"></i> <span class="caption">Mobile</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Icons" href="icons.html"><i class="icon-heart"></i> <span class="caption">Icons</span></a></li> </ul> </div> <div class="content"> <div class="row"> <div class="col-sm-8 main-content"> <h2>Pending Deals <span class="info">You have 15 deals that will be closing soon.</span> </h2> <ul class="item-summary"> <li> <div class="overview"> <p class="main-detail">April 14th</p> <p class="sub-detail">5:28 PM</p> <span class="label label-success">Active</span> <span class="label label-info">New</span> </div> <div class="info"> <p>Trust fund photo letterpress, keytar raw skydiving denim grape keffiyeh etsy art base apple party ball before they.</p> <a class="btn btn-default btn-sm" href="#">Show Details</a> </div> <div class="clearfix"></div> </li> <li> <div class="overview"> <p class="main-detail">Jan 24th</p> <p class="sub-detail">2:57 PM</p> <span class="label label-success">Active</span> </div> <div class="info"> <p>Trust fund photo letterpress, keytar raw skydiving denim grape keffiyeh etsy art base apple party ball before they.</p> <a class="btn btn-default btn-sm" href="#">Show Details</a> </div> <div class="clearfix"></div> </li> <li> <div class="overview"> <p class="main-detail">May 9th</p> <p class="sub-detail">11:9 PM</p> <span class="label label-success">Active</span> </div> <div class="info"> <p>Trust fund photo letterpress, keytar raw skydiving denim grape keffiyeh etsy art base apple party ball before they.</p> <a class="btn btn-default btn-sm" href="#">Show Details</a> </div> <div class="clearfix"></div> </li> <li> <div class="overview"> <p class="main-detail">June 3rd</p> <p class="sub-detail">1:30 PM</p> <span class="label label-success">Active</span> </div> <div class="info"> <p>Trust fund photo letterpress, keytar raw skydiving denim grape keffiyeh etsy art base apple party ball before they.</p> <a class="btn btn-default btn-sm" href="#">Show Details</a> </div> <div class="clearfix"></div> </li> </ul> <div id="three-summaries" class="row"> <div class="col-md-5"> <h2>Mailboxes</h2> <ul class="list-group"> <li class="list-group-item"><i class="icon-envelope"></i> New<span class="badge badge-important">23</span></li> <li class="list-group-item"><i class="icon-share"></i> Follow Up<span class="badge badge-important">13</span></li> <li class="list-group-item"><i class="icon-star-empty"></i> Starred<span class="badge badge-important">73</span></li> <li class="list-group-item"><i class="icon-hdd"></i> All Messages<span class="badge badge-important">89</span></li> <li class="list-group-item"><i class="icon-bookmark-empty"></i> Archived<span class="badge badge-important">24</span></li> <li class="list-group-item"><i class="icon-thumbs-up"></i> Important<span class="badge badge-important">10</span></li> <li class="list-group-item"><i class="icon-envelope"></i> Personal<span class="badge badge-important">39</span></li> </ul> </div> <div class="col-md-7"> <h2>Upcoming Events</h2> <ul class="cards list-group widget" style="border-bottom:0px;"> <li class="list-group-item"> <button class="btn btn-default pull-right btn-sm" style="margin-top: .8em;">Open</button> <i class="pull-left muted icon-bar-chart" style="margin-top:.3em;"></i> <div> <p class="title"> Campaign Ends</p> <p class="info">Saturday, July 22nd 12:45PM</p> </div> </li> <li class="list-group-item"> <button class="btn btn-default pull-right btn-sm" style="margin-top: .8em;">Open</button> <i class="pull-left muted icon-group" style="margin-top:.3em;"></i> <div> <p class="title"> User Training</p> <p class="info">Saturday, July 22nd 12:45PM</p> </div> </li> <li class="list-group-item"> <button class="btn btn-default pull-right btn-sm" style="margin-top: .8em;">Open</button> <i class="pull-left muted icon-time" style="margin-top:.3em;"></i> <div> <p class="title"> Free Trial Ends</p> <p class="info">Saturday, July 22nd 12:45PM</p> </div> </li> <li class="list-group-item"> <button class="btn btn-default pull-right btn-sm" style="margin-top: .8em;">Open</button> <i class="pull-left muted icon-gift" style="margin-top:.3em;"></i> <div> <p class="title"> User Appreciation Day</p> <p class="info">Saturday, July 22nd 12:45PM</p> </div> </li> <li class="list-group-item"> <button class="btn btn-default pull-right btn-sm" style="margin-top: .8em;">Open</button> <i class="pull-left muted icon-plane" style="margin-top:.3em;"></i> <div> <p class="title"> Flight Training</p> <p class="info">Saturday, July 22nd 12:45PM</p> </div> </li> </ul> </div> </div> <h2>Inbox</h2> <table class="table table-first-column-check table-hover"> <thead> <tr> <th class="col-md-1"><i class="icon-star-empty"></i></th> <th class="col-md-2">From</th> <th class="col-md-8">Subject</th> <th class="col-md-3">Date</th> </tr> </thead> <tbody> <tr> <td><a href="#"><i class="icon-star-empty"></i></a></td> <td><strong>John Doe</strong></td> <td><strong>Message body goes in here</strong> <span class="label label-success pull-right" style="margin-left: .5em;">Follow Up </span> <span class="label label-info pull-right">Work</span></td> <td><strong>11:23 PM</strong></td> </tr> <tr> <td><a href="#"><i class="icon-star-empty"></i></a></td> <td>John Doe</td> <td>Message body goes in here <span class="label label-success pull-right">Follow Up</span></td> <td>Sept4</td> </tr> <tr> <td><a href="#"><i class="icon-star"></i></a></td> <td><strong>John Doe</strong></td> <td><strong>Message body goes in here</strong> <span class="label label-important pull-right">Spam</span></td> <td><strong>Sept3</strong></td> </tr> <tr> <td><a href="#"><i class="icon-star"></i></a></td> <td><strong>John Doe</strong></td> <td> <strong>Message body goes in here</strong> <span class="label pull-right">Personal</span></td> <td><strong>Sept3</strong></td> </tr> </tbody> </table> <h2>Top Users</h2> <div class="well widget" style="display: none;"> <form class="form-inline" style="margin-bottom: 0px;"> <input class="input-xlarge" placeholder="Search All Users..." type="text"> <button class="btn btn-default" type="button"><i class="icon-search"></i> Go</button> </form> </div> <table class="table table-first-column-check"> <thead> <tr> <th><input type="checkbox"></th> <th>First</th> <th>Last</th> <th>Username</th> </tr> </thead> <tbody> <tr> <td><input type="checkbox"></td> <td>Mark</td> <td>Tompson</td> <td>the_mark7</td> </tr> <tr> <td><input type="checkbox"></td> <td>Ashley</td> <td>Jacobs</td> <td>ash11927</td> </tr> <tr> <td><input type="checkbox"></td> <td>Audrey</td> <td>Ann</td> <td>audann84</td> </tr> <tr> <td><input type="checkbox"></td> <td>John</td> <td>Robinson</td> <td>jr5527</td> </tr> <tr> <td><input type="checkbox"></td> <td>Aaron</td> <td>Butler</td> <td>aaron_butler</td> </tr> <tr> <td><input type="checkbox"></td> <td>Chris</td> <td>Albert</td> <td>cab79</td> </tr> </tbody> </table> </div> <div class="col-sm-4 sidebar"> <div class="widget"> <h2>Latest Comments</h2> <ul class="cards list-group"> <li class="list-group-item"> <p class="title">Ashley Jacobs</p> <div class="img"> <img src="images/faces/1b.png"> <div class="label label-info">Pro</div> </div> <p class="info-text">Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid.</p> <div class="stats"> <p class="time">5 minutes ago</p> <span>15 <i class="icon-pushpin"></i></span> <span>27 <i class="icon-comment"></i></span> <span>158 <i class="icon-eye-open"></i></span> </div> </li> <li class="list-group-item"> <p class="title">Sarah Whitman</p> <div class="img"> <img src="images/faces/2b.png"> <div class="label label-warning">Free</div> </div> <p class="info-text">Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master.</p> <div class="stats"> <p class="time">29 minutes ago</p> <span>10 <i class="icon-pushpin"></i></span> <span>19 <i class="icon-comment"></i></span> <span>58 <i class="icon-eye-open"></i></span> </div> </li> <li class="list-group-item"> <p class="title">Connor Adams</p> <div class="img"> <img src="images/faces/1a.png"> <div class="label label-info">Pro</div> </div> <p class="info-text">Anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack.</p> <div class="stats"> <p class="time">Yesterday</p> <span>25 <i class="icon-pushpin"></i></span> <span>39 <i class="icon-comment"></i></span> <span>252 <i class="icon-eye-open"></i></span> </div> </li> <li class="more"> <a href="#">Show All</a> </li> </ul> </div> <div class="widget"> <ul id="myTab" class="nav nav-tabs three-tabs fancy"> <li class="active"><a href="#home" data-toggle="tab">Orders</a></li> <li><a href="#promotions" data-toggle="tab">Promotions</a></li> <li class="dropdown"> <a href="#deals" data-toggle="tab">Deals</a> </li> </ul> <div class="tab-content"> <div class="tab-pane fade in active" id="home"> <ul class="list-group cards"> <li class="list-group-item"> <p class="pull-right text-error">$20,500</p> <a href="#"><p class="title">Care Hospital</p></a> <p class="info">Sales Rating: 86%</p> </li> <li class="list-group-item"> <p class="pull-right text-info">$9,400</p> <a href="#"><p class="title">New Automotive</p></a> <p class="info">Sales Rating: 72%</p> </li> <li class="list-group-item"> <p class="pull-right text-success">$60,200</p> <a href="#"><p class="title">Money Financial</p></a> <p class="info">Sales Rating: 92%</p> </li> <li class="list-group-item"> <p class="pull-right text-important">$8,640</p> <a href="#"><p class="title">Custom Insurance</p></a> <p class="info">Sales Rating: 84%</p> </li> <li class="list-group-item" style="border-bottom: 0px;"> <p class="pull-right text-warning">$36,700</p> <a href="#"><p class="title">New Technology</p></a> <p class="info">Sales Rating: 66%</p> </li> </ul> </div> <div class="tab-pane fade" id="promotions"> <ul class="cards"> <li style="padding: 0em 1em;"><h3>This is something interesting.</h3></li> <li>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation labore velit, blog sartorial PBR leggings next level wes anderson artisan.</li> <li>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation labore velit, blog sartorial PBR leggings next level wes anderson artisan.</li> <li>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation labore velit, blog sartorial PBR leggings next level wes anderson artisan.</li> </ul> </div> <div class="tab-pane fade" id="deals"> <ul class="cards"> <li><p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid oranges apples banana.</p><a class="btn btn-default btn-sm" href="#">Show me</a></li> <li><p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid oranges apples banana.</p><a class="btn btn-default btn-sm" href="#">Show me</a></li> <li><p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid oranges apples banana.</p><a class="btn btn-default btn-sm" href="#">Show me</a></li> <li><p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid oranges apples banana.</p><a class="btn btn-default btn-sm" href="#">Show me</a></li> </ul> </div> </div> </div> <div class="widget"> <ul class="nav nav-tabs two-tabs fancy"> <li class="active"><a href="#upgrade" data-toggle="tab">Upgrade Account</a></li> <li><a href="#why-upgrade" data-toggle="tab">Why Upgrade?</a></li> </ul> <div class="tab-content"> <div class="tab-pane fade in active" id="upgrade"> <ul class="cards list-group not-bottom no-sides"> <li class="list-group-item"> <i class="icon-leaf pull-left text-info"></i> <p class="title"><strong>More Features</strong></p> <p class="info small">This is the kind of thing you really need.</p> </li> <li class="list-group-item"> <i class="icon-group pull-left text-info"></i> <p class="title"><strong>Unlimited Users</strong></p> <p class="info small">This is the kind of thing you really need.</p> </li> <li class="list-group-item"> <i class="icon-trophy pull-left text-info"></i> <p class="title"><strong>Custom Database</strong></p> <p class="info small">This is the kind of thing you really need.</p> </li> <li class="list-group-item"> <i class="icon-book pull-left text-info"></i> <p class="title"><strong>Enhanced Reporting</strong></p> <p class="info small">This is the kind of thing you really need.</p> </li> </ul> <button class="btn btn-primary pull-right" style="margin:1em 0em;">Upgrade Now</button> </div> <div class="tab-pane fade" id="why-upgrade"> <h3>This is something interesting.</h3> <p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation labore velit, blog sartorial PBR leggings next level wes anderson artisan.</p> <button class="btn btn-primary pull-right" style="margin-bottom: 1em;">Upgrade Now</button> </div> </div> </div> </div> </div> <footer> <hr> <p class="pull-right">Design by <a href="http://www.portnine.com" target="_blank">Portnine</a></p> <p>&copy; 2013 <a href="#">Your Company</a></p> </footer> </div> <script src="lib/bootstrap3/dist/js/bootstrap.js"></script> <script type="text/javascript"> $("[rel=tooltip]").tooltip({animation:false}); $(function() { $('.demo-cancel-click').click(function(){return false;}); }); </script> </body> </html>
00-techstorm
trunk/assets/admin/AwesomeAdmin.html
HTML
gpl3
32,723
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Bootstrap Admin</title> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- For sample logo only--> <!--Remove if you no longer need this font--> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Aguafina+Script"> <!--For sample logo only--> <link rel="stylesheet" type="text/css" href="lib/bootstrap3/dist/css/bootstrap.css"> <link rel="stylesheet" href="lib/FontAwesome/css/font-awesome.css"> <script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="javascripts/site.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="stylesheets/theme.css"> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le fav and touch icons --> <link rel="shortcut icon" href="../assets/ico/favicon.ico"> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png"> </head> <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]--> <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]--> <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]--> <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <body class=""> <!--<![endif]--> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-reorder"></span> </button> <a class="navbar-brand" href="index.html">Awesome.</a> </div> <div class="hidden-xs"> <ul class="nav navbar-nav pull-right"> <li class="hidden-phone"><a href="#" role="button">Settings</a></li> <li id="fat-menu" class="dropdown"> <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user"></i> Jack Smith <i class="icon-caret-down"></i> </a> <ul class="dropdown-menu"> <li><a tabindex="-1" href="#">My Account</a></li> <li class="divider"></li> <li><a tabindex="-1" class="visible-phone" href="#">Settings</a></li> <li class="divider visible-phone"></li> <li><a tabindex="-1" href="sign-in.html">Logout</a></li> </ul> </li> </ul> </div><!--/.navbar-collapse --> </div> </div> <div class="navbar-collapse collapse"> <div id="main-menu"> <div id="phone-navigation" class="visible-xs"> <ul id="dashboard-menu" class="nav nav-list"> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Dashboard" href="index.html"><i class="icon-home"></i> <span class="caption">Dashboard</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Reports" href="reports.html"><i class="icon-bar-chart"></i> <span class="caption">Reports</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="UI Features" href="components.html"><i class="icon-briefcase"></i> <span class="caption">UI Features</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Pricing" href="pricing.html"><i class="icon-magic"></i> <span class="caption">Pricing</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Media" href="media.html"><i class="icon-film"></i> <span class="caption">Media</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog" href="blog.html"><i class="icon-beaker"></i> <span class="caption">Blog</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog Entry" href="blog-item.html"><i class="icon-coffee"></i> <span class="caption">Blog Entry</span></a></li> <li class="active "><a rel="tooltip" data-placement="right" data-original-title="Help" href="help.html"><i class="icon-question-sign"></i> <span class="caption">Help</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Faq" href="faq.html"><i class="icon-book"></i> <span class="caption">Faq</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Calendar" href="calendar.html"><i class="icon-calendar"></i> <span class="caption">Calendar</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Forms" href="forms.html"><i class="icon-tasks"></i> <span class="caption">Forms</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Tables" href="tables.html"><i class="icon-table"></i> <span class="caption">Tables</span></a></li> <li class=" theme-mobile-hack hidden-xs"><a rel="tooltip" data-placement="right" data-original-title="Mobile" href="mobile.html"><i class="icon-comment-alt"></i> <span class="caption">Mobile</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Icons" href="icons.html"><i class="icon-heart"></i> <span class="caption">Icons</span></a></li> </ul> </div> <ul class="nav nav-tabs hidden-xs"> <li ><a href="index.html"><i class="icon-dashboard"></i> <span>Dashboard</span></a></li> <li ><a href="reports.html" ><i class="icon-bar-chart"></i> <span>Reports</span></a></li> <li ><a href="components.html" ><i class="icon-cogs"></i> <span>Components</span></a></li> <li ><a href="pricing.html"><i class="icon-magic"></i> <span>Pricing</span></a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cog"></i> Settings <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="sign-in.html"><span>Sign-in Page</span></a></li> <li><a href="sign-up.html"><span>Sign-up Page</span></a></li> <li><a href="reset-password.html"><span>Forgot Password Page</span></a></li> </ul> </li> </ul> </div> </div> <div id="sidebar-nav" class="hidden-xs"> <ul id="dashboard-menu" class="nav nav-list"> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Dashboard" href="index.html"><i class="icon-home"></i> <span class="caption">Dashboard</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Reports" href="reports.html"><i class="icon-bar-chart"></i> <span class="caption">Reports</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="UI Features" href="components.html"><i class="icon-briefcase"></i> <span class="caption">UI Features</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Pricing" href="pricing.html"><i class="icon-magic"></i> <span class="caption">Pricing</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Media" href="media.html"><i class="icon-film"></i> <span class="caption">Media</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog" href="blog.html"><i class="icon-beaker"></i> <span class="caption">Blog</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog Entry" href="blog-item.html"><i class="icon-coffee"></i> <span class="caption">Blog Entry</span></a></li> <li class="active "><a rel="tooltip" data-placement="right" data-original-title="Help" href="help.html"><i class="icon-question-sign"></i> <span class="caption">Help</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Faq" href="faq.html"><i class="icon-book"></i> <span class="caption">Faq</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Calendar" href="calendar.html"><i class="icon-calendar"></i> <span class="caption">Calendar</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Forms" href="forms.html"><i class="icon-tasks"></i> <span class="caption">Forms</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Tables" href="tables.html"><i class="icon-table"></i> <span class="caption">Tables</span></a></li> <li class=" theme-mobile-hack"><a rel="tooltip" data-placement="right" data-original-title="Mobile" href="mobile.html"><i class="icon-comment-alt"></i> <span class="caption">Mobile</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Icons" href="icons.html"><i class="icon-heart"></i> <span class="caption">Icons</span></a></li> </ul> </div> <div class="content"> <div class="faq-content"> <div class="row"> <div class="col-sm-8"> <h2>Help and Support<span class="info">A variety of support options are available to you</span></h2> <h2>Popular Topics</h2> <div class="row"> <div class="col-md-4 col-sm-6"> <ul style="margin-bottom: 2em;"> <li><a href="#">What if I have a question?</a></li> <li><a href="#">Where can I get support?</a></li> <li><a href="#">How long does it take to fix a problem?</a></li> <li><a href="#">Who can help me out?</a></li> <li><a href="#">Where are you located?</a></li> </ul> </div> <div class="col-md-4 col-sm-6"> <ul style="margin-bottom: 2em;"> <li><a href="#">What if I have a question?</a></li> <li><a href="#">Where can I get support?</a></li> <li><a href="#">How long does it take to fix a problem?</a></li> <li><a href="#">Who can help me out?</a></li> <li><a href="#">Where are you located?</a></li> </ul> </div> <div class="col-md-4 hidden-sm"> <ul style="margin-bottom: 2em;"> <li><a href="#">What if I have a question?</a></li> <li><a href="#">Where can I get support?</a></li> <li><a href="#">How long does it take to fix a problem?</a></li> <li><a href="#">Who can help me out?</a></li> <li><a href="#">Where are you located?</a></li> </ul> </div> </div> <h2>Help Options</h2> <div class="row" style="text-align: center;"> <div class="col-md-3 col-sm-4 col-xs-6"> <p><a href="#" class="grid btn">Your Account</a></p> <p><a href="#" class="grid btn" >Past Orders</a></p> <p><a href="#" class="grid btn">Your Profile</a></p> </div> <div class="col-md-3 col-sm-4 col-xs-6"> <p><a href="#" class="grid btn">Your Account</a></p> <p><a href="#" class="grid btn">Past Orders</a></p> <p><a href="#" class="grid btn">Your Profile</a></p> </div> <div class="col-md-3 hidden-sm hidden-xs"> <p><a href="#" class="grid btn">Your Account</a></p> <p><a href="#" class="grid btn">Past Orders</a></p> <p><a href="#" class="grid btn">Your Profile</a></p> </div> <div class="col-md-3 col-xs-4 hidden-xs"> <p><a href="#" class="grid btn">Your Account</a></p> <p><a href="#" class="grid btn">Past Orders</a></p> <p><a href="#" class="grid btn">Your Profile</a></p> </div> <div class="clearfix"></div> </div> <h2>Some Helpful Information</h2> <p>Suspendisse eu dapibus elit. Vivamus pharetra lacus nec erat feugiat vestibulum ac eu ligula. Vivamus posuere libero facilisis, facilisis eros quis, eleifend est. Duis pellentesque neque vitae pharetra ultrices.</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae ligula sed est aliquam accumsan. Phasellus eleifend fermentum ullamcorper. Nulla mi mi, egestas id tortor non, auctor consectetur mi. Praesent in ante dolor. Proin pharetra nec augue quis imperdiet.</p> <div class="well banner"> <a class="btn btn-primary well-btn pull-right">Start Now</a> <h2>Premium Support Available</h2> <p>Ground round bacon shoulder sausage pastrami corned beef shank ball tip.</p> </div> <h2>A help topic goes here</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae ligula sed est aliquam accumsan. Phasellus eleifend fermentum ullamcorper. Nulla mi mi, egestas id tortor non, auctor consectetur mi.</p> <p>Suspendisse eu dapibus elit. Vivamus pharetra lacus nec erat feugiat vestibulum ac eu ligula. Vivamus posuere libero facilisis, facilisis eros quis, eleifend est. Duis pellentesque neque vitae pharetra ultrices. Fusce volutpat leo ipsum, eu suscipit elit accumsan ac.</p> <h2>An answer to a common problem</h2> <p>Suspendisse eu dapibus elit. Vivamus pharetra lacus nec erat feugiat vestibulum ac eu ligula. Vivamus posuere libero facilisis, facilisis eros quis, eleifend est. Duis pellentesque neque vitae pharetra ultrices.</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae ligula sed est aliquam accumsan. Phasellus eleifend fermentum ullamcorper. Nulla mi mi, egestas id tortor non, auctor consectetur mi. Praesent in ante dolor. Proin pharetra nec augue quis imperdiet.</p> </div> <div class="col-sm-3 col-sm-offset-1 hidden-xs well sidebar blog-sidebar"> <div> <div class="input-group"> <input type="text" class="form-control" placeholder="Search..."> <span class="input-group-btn"> <button class="btn btn-primary" type="button"><i class="icon-search"></i></button> </span> </div> <h3>Popular Topics</h3> <ul class="icon list-unstyled" style="padding-left: 0px;"> <li><a href="#"><i class="icon-angle-right"></i> Orders</a></li> <li><a href="#"><i class="icon-angle-right"></i> Billing</a></li> <li><a href="#"><i class="icon-angle-right"></i> Shipping</a></li> <li><a href="#"><i class="icon-angle-right"></i> Returns</a></li> <li><a href="#"><i class="icon-angle-right"></i> Your Account</a></li> <li><a href="#"><i class="icon-angle-right"></i> Products</a></li> </ul> </div> <div class="toc"> <h3>Call Us</h3> <p>+1-123-333-4321</p> <h3>Email Us</h3> <p><a href="#">hello@example.com</a></p> <h3>Address</h3> <address> 2817 S 49th<br> Apt 314<br> San Jose, CA 95101 </address> <div> <button class="btn"><i class="icon-facebook"></i></button> <button class="btn"><i class="icon-twitter"></i></button> <button class="btn"><i class="icon-linkedin"></i></button> <button class="btn"><i class="icon-google-plus"></i></button> <button class="btn"><i class="icon-pinterest"></i></button> </div> </div> </div> </div> </div> <footer> <hr> <p class="pull-right">Design by <a href="http://www.portnine.com" target="_blank">Portnine</a></p> <p>&copy; 2013 <a href="#">Your Company</a></p> </footer> </div> <script src="lib/bootstrap3/dist/js/bootstrap.js"></script> <script type="text/javascript"> $("[rel=tooltip]").tooltip({animation:false}); $(function() { $('.demo-cancel-click').click(function(){return false;}); }); </script> </body> </html>
00-techstorm
trunk/assets/admin/help.html
HTML
gpl3
19,029
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Bootstrap Admin</title> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- For sample logo only--> <!--Remove if you no longer need this font--> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Aguafina+Script"> <!--For sample logo only--> <link rel="stylesheet" type="text/css" href="lib/bootstrap3/dist/css/bootstrap.css"> <link rel="stylesheet" href="lib/FontAwesome/css/font-awesome.css"> <script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="javascripts/site.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="stylesheets/theme.css"> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le fav and touch icons --> <link rel="shortcut icon" href="../assets/ico/favicon.ico"> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png"> </head> <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]--> <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]--> <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]--> <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <body class=""> <!--<![endif]--> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-reorder"></span> </button> <a class="navbar-brand" href="index.html">Awesome.</a> </div> <div class="hidden-xs"> <ul class="nav navbar-nav pull-right"> <li class="hidden-phone"><a href="#" role="button">Settings</a></li> <li id="fat-menu" class="dropdown"> <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user"></i> Jack Smith <i class="icon-caret-down"></i> </a> <ul class="dropdown-menu"> <li><a tabindex="-1" href="#">My Account</a></li> <li class="divider"></li> <li><a tabindex="-1" class="visible-phone" href="#">Settings</a></li> <li class="divider visible-phone"></li> <li><a tabindex="-1" href="sign-in.html">Logout</a></li> </ul> </li> </ul> </div><!--/.navbar-collapse --> </div> </div> <div class="navbar-collapse collapse"> <div id="main-menu"> <div id="phone-navigation" class="visible-xs"> <ul id="dashboard-menu" class="nav nav-list"> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Dashboard" href="index.html"><i class="icon-home"></i> <span class="caption">Dashboard</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Reports" href="reports.html"><i class="icon-bar-chart"></i> <span class="caption">Reports</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="UI Features" href="components.html"><i class="icon-briefcase"></i> <span class="caption">UI Features</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Pricing" href="pricing.html"><i class="icon-magic"></i> <span class="caption">Pricing</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Media" href="media.html"><i class="icon-film"></i> <span class="caption">Media</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog" href="blog.html"><i class="icon-beaker"></i> <span class="caption">Blog</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog Entry" href="blog-item.html"><i class="icon-coffee"></i> <span class="caption">Blog Entry</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Help" href="help.html"><i class="icon-question-sign"></i> <span class="caption">Help</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Faq" href="faq.html"><i class="icon-book"></i> <span class="caption">Faq</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Calendar" href="calendar.html"><i class="icon-calendar"></i> <span class="caption">Calendar</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Forms" href="forms.html"><i class="icon-tasks"></i> <span class="caption">Forms</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Tables" href="tables.html"><i class="icon-table"></i> <span class="caption">Tables</span></a></li> <li class=" theme-mobile-hack hidden-xs"><a rel="tooltip" data-placement="right" data-original-title="Mobile" href="mobile.html"><i class="icon-comment-alt"></i> <span class="caption">Mobile</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Icons" href="icons.html"><i class="icon-heart"></i> <span class="caption">Icons</span></a></li> </ul> </div> <ul class="nav nav-tabs hidden-xs"> <li ><a href="index.html"><i class="icon-dashboard"></i> <span>Dashboard</span></a></li> <li ><a href="reports.html" ><i class="icon-bar-chart"></i> <span>Reports</span></a></li> <li ><a href="components.html" ><i class="icon-cogs"></i> <span>Components</span></a></li> <li ><a href="pricing.html"><i class="icon-magic"></i> <span>Pricing</span></a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cog"></i> Settings <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="sign-in.html"><span>Sign-in Page</span></a></li> <li><a href="sign-up.html"><span>Sign-up Page</span></a></li> <li><a href="reset-password.html"><span>Forgot Password Page</span></a></li> </ul> </li> </ul> </div> </div> <div id="sidebar-nav" class="hidden-xs"> <ul id="dashboard-menu" class="nav nav-list"> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Dashboard" href="index.html"><i class="icon-home"></i> <span class="caption">Dashboard</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Reports" href="reports.html"><i class="icon-bar-chart"></i> <span class="caption">Reports</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="UI Features" href="components.html"><i class="icon-briefcase"></i> <span class="caption">UI Features</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Pricing" href="pricing.html"><i class="icon-magic"></i> <span class="caption">Pricing</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Media" href="media.html"><i class="icon-film"></i> <span class="caption">Media</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog" href="blog.html"><i class="icon-beaker"></i> <span class="caption">Blog</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog Entry" href="blog-item.html"><i class="icon-coffee"></i> <span class="caption">Blog Entry</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Help" href="help.html"><i class="icon-question-sign"></i> <span class="caption">Help</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Faq" href="faq.html"><i class="icon-book"></i> <span class="caption">Faq</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Calendar" href="calendar.html"><i class="icon-calendar"></i> <span class="caption">Calendar</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Forms" href="forms.html"><i class="icon-tasks"></i> <span class="caption">Forms</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Tables" href="tables.html"><i class="icon-table"></i> <span class="caption">Tables</span></a></li> <li class=" theme-mobile-hack"><a rel="tooltip" data-placement="right" data-original-title="Mobile" href="mobile.html"><i class="icon-comment-alt"></i> <span class="caption">Mobile</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Icons" href="icons.html"><i class="icon-heart"></i> <span class="caption">Icons</span></a></li> </ul> </div> <div class="content"> <h2>Terms of Use</h2> These Terms and Conditions constitute an agreement (“Agreement”) between you (“you”, “your”, “user”, “Customer”) and the Company.Avocado gumbo artichoke ricebean groundnut tigernut. Daikon kakadu plum water spinach garbanzo eggplant fava bean chard rock melon carrot rutabaga water chestnut broccoli courgette onion. <h2>Eligibility and Identity.</h2> To be eligible to use our Services, you must be at least 13 years old. Sorrel jícama tomato silver beet wattle seed black-eyed pea garlic fennel tigernut okra beetroot shallot. Soko shallot melon dandelion bamboo shoot chickpea soybean pumpkin kakadu plum parsley ricebean grape courgette courgette jícama tatsoi. Black-eyed pea gourd tomatillo arugula cucumber celery mustard black-eyed pea cauliflower soybean rutabaga turnip groundnut. <h2>Termination</h2> You may terminate this Agreement at any time by ceasing all use of the Services and by notifying us. The Company may terminate this Agreement, at any time, without notice to you, if it believes, in its sole judgment, that you have breached or may breach any term or condition of this Agreement. Fennel garlic melon broccoli kohlrabi dulse black-eyed pea chicory watercress shallot bamboo shoot cucumber rutabaga ricebean gourd chickweed gumbo. Burdock fennel sorrel cress collard greens tomato tigernut salad chickweed yarrow water spinach catsear earthnut pea cabbage dulse potato. Onion courgette bitterleaf rutabaga tomatillo tigernut groundnut courgette water spinach tomato. Celery ricebean cabbage salsify caulie watercress cress collard greens potato chard gourd pea sprouts cucumber dulse gram. Leek summer purslane tatsoi catsear celtuce broccoli rabe onion zucchini. <h2>Use of Services & Account</h2> You represent and warrant that you possess the legal right and ability to enter into this Agreement. You agree not to use the Materials, Content, Services, and your Account for any unlawful or abusive purpose or in any way which interferes with our ability to provide Services to our customers, or which damages our property.
Chickpea gourd coriander daikon zucchini lettuce tomatillo sierra leone bologi maize parsnip grape melon kohlrabi welsh onion. Celery wakame corn garlic courgette silver beet cabbage gram amaranth jícama bitterleaf. Ricebean bunya nuts prairie turnip water chestnut artichoke cauliflower watercress gourd cabbage okra broccoli rabe. Burdock leek sorrel radicchio azuki bean collard greens winter purslane broccoli rabe gourd water chestnut pumpkin gumbo. Azuki bean green bean kohlrabi kombu aubergine salsify lotus root turnip lentil radicchio nori eggplant sorrel. <h2>Modification to Service</h2> The Company may change, suspend, or discontinue all or any part of the Service at any time, with or without reason. You acknowledge that the operation of the Service may from time to time encounter technical or other problems and may not necessarily continue uninterrupted or without technical or other errors and The Company shall not be responsible to you or others for any such interruptions, errors or problems or an outright discontinuance of the Service. <h2>Intellectual Property Ownership</h2> All Materials, Services, Accounts, and content, including, but not limited to, policy information, text, software, music, sound, photographs, video, graphics, the arrangement of text and images, commercially produced information, and other material contained on the Site or through the Services (“Content”), are provided by The Company unless indicated otherwise. Welsh onion tigernut broccoli asparagus brussels sprout jícama eggplant earthnut pea cress chickpea gourd zucchini. Radicchio lentil cucumber groundnut endive kohlrabi winter purslane. Seakale plantain quandong celtuce shallot fennel seakale epazote groundnut dandelion. <h2>Privacy</h2> Please see our <a href="privacy-policy.html">Privacy Policy</a> as set forth on the site. <h2>About These Terms</h2> <p>These Terms and Conditions are just a sample and are not legally binding. Real Terms of Services do not (usually) contain vegetables...</p> <footer> <hr> <p class="pull-right">Design by <a href="http://www.portnine.com" target="_blank">Portnine</a></p> <p>&copy; 2013 <a href="#">Your Company</a></p> </footer> </div> <script src="lib/bootstrap3/dist/js/bootstrap.js"></script> <script type="text/javascript"> $("[rel=tooltip]").tooltip({animation:false}); $(function() { $('.demo-cancel-click').click(function(){return false;}); }); </script> </body> </html>
00-techstorm
trunk/assets/admin/terms-and-conditions.html
HTML
gpl3
16,043
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Bootstrap Admin</title> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- For sample logo only--> <!--Remove if you no longer need this font--> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Aguafina+Script"> <!--For sample logo only--> <link rel="stylesheet" type="text/css" href="lib/bootstrap3/dist/css/bootstrap.css"> <link rel="stylesheet" href="lib/FontAwesome/css/font-awesome.css"> <script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="javascripts/site.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="stylesheets/theme.css"> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le fav and touch icons --> <link rel="shortcut icon" href="../assets/ico/favicon.ico"> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png"> </head> <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]--> <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]--> <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]--> <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <body class=""> <!--<![endif]--> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-reorder"></span> </button> <a class="navbar-brand" href="index.html">Awesome.</a> </div> <div class="hidden-xs"> <ul class="nav navbar-nav pull-right"> <li class="hidden-phone"><a href="#" role="button">Settings</a></li> <li id="fat-menu" class="dropdown"> <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user"></i> Jack Smith <i class="icon-caret-down"></i> </a> <ul class="dropdown-menu"> <li><a tabindex="-1" href="#">My Account</a></li> <li class="divider"></li> <li><a tabindex="-1" class="visible-phone" href="#">Settings</a></li> <li class="divider visible-phone"></li> <li><a tabindex="-1" href="sign-in.html">Logout</a></li> </ul> </li> </ul> </div><!--/.navbar-collapse --> </div> </div> <div class="navbar-collapse collapse"> <div id="main-menu"> <div id="phone-navigation" class="visible-xs"> <ul id="dashboard-menu" class="nav nav-list"> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Dashboard" href="index.html"><i class="icon-home"></i> <span class="caption">Dashboard</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Reports" href="reports.html"><i class="icon-bar-chart"></i> <span class="caption">Reports</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="UI Features" href="components.html"><i class="icon-briefcase"></i> <span class="caption">UI Features</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Pricing" href="pricing.html"><i class="icon-magic"></i> <span class="caption">Pricing</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Media" href="media.html"><i class="icon-film"></i> <span class="caption">Media</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog" href="blog.html"><i class="icon-beaker"></i> <span class="caption">Blog</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog Entry" href="blog-item.html"><i class="icon-coffee"></i> <span class="caption">Blog Entry</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Help" href="help.html"><i class="icon-question-sign"></i> <span class="caption">Help</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Faq" href="faq.html"><i class="icon-book"></i> <span class="caption">Faq</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Calendar" href="calendar.html"><i class="icon-calendar"></i> <span class="caption">Calendar</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Forms" href="forms.html"><i class="icon-tasks"></i> <span class="caption">Forms</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Tables" href="tables.html"><i class="icon-table"></i> <span class="caption">Tables</span></a></li> <li class=" theme-mobile-hack hidden-xs"><a rel="tooltip" data-placement="right" data-original-title="Mobile" href="mobile.html"><i class="icon-comment-alt"></i> <span class="caption">Mobile</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Icons" href="icons.html"><i class="icon-heart"></i> <span class="caption">Icons</span></a></li> </ul> </div> <ul class="nav nav-tabs hidden-xs"> <li ><a href="index.html"><i class="icon-dashboard"></i> <span>Dashboard</span></a></li> <li ><a href="reports.html" ><i class="icon-bar-chart"></i> <span>Reports</span></a></li> <li ><a href="components.html" ><i class="icon-cogs"></i> <span>Components</span></a></li> <li ><a href="pricing.html"><i class="icon-magic"></i> <span>Pricing</span></a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cog"></i> Settings <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="sign-in.html"><span>Sign-in Page</span></a></li> <li><a href="sign-up.html"><span>Sign-up Page</span></a></li> <li><a href="reset-password.html"><span>Forgot Password Page</span></a></li> </ul> </li> </ul> </div> </div> <div id="sidebar-nav" class="hidden-xs"> <ul id="dashboard-menu" class="nav nav-list"> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Dashboard" href="index.html"><i class="icon-home"></i> <span class="caption">Dashboard</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Reports" href="reports.html"><i class="icon-bar-chart"></i> <span class="caption">Reports</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="UI Features" href="components.html"><i class="icon-briefcase"></i> <span class="caption">UI Features</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Pricing" href="pricing.html"><i class="icon-magic"></i> <span class="caption">Pricing</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Media" href="media.html"><i class="icon-film"></i> <span class="caption">Media</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog" href="blog.html"><i class="icon-beaker"></i> <span class="caption">Blog</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Blog Entry" href="blog-item.html"><i class="icon-coffee"></i> <span class="caption">Blog Entry</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Help" href="help.html"><i class="icon-question-sign"></i> <span class="caption">Help</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Faq" href="faq.html"><i class="icon-book"></i> <span class="caption">Faq</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Calendar" href="calendar.html"><i class="icon-calendar"></i> <span class="caption">Calendar</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Forms" href="forms.html"><i class="icon-tasks"></i> <span class="caption">Forms</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Tables" href="tables.html"><i class="icon-table"></i> <span class="caption">Tables</span></a></li> <li class=" theme-mobile-hack"><a rel="tooltip" data-placement="right" data-original-title="Mobile" href="mobile.html"><i class="icon-comment-alt"></i> <span class="caption">Mobile</span></a></li> <li class=" "><a rel="tooltip" data-placement="right" data-original-title="Icons" href="icons.html"><i class="icon-heart"></i> <span class="caption">Icons</span></a></li> </ul> </div> <div class="content"> <h2>What we do with your data</h2> Veggies sunt bona vobis, proinde vos postulo esse magis pea sprouts rutabaga komatsuna salad collard greens. <h2>Use of Cookies</h2> Catsear corn gumbo leek chickpea summer purslane chicory. Taro azuki bean broccoli rabe soybean endive chicory. Pumpkin salsify horseradish avocado cabbage tomatillo ricebean caulie turnip greens eggplant. <h2>Use of Third Party Services</h2> Sweet pepper pea sprouts mung bean cabbage radicchio silver beet coriander lentil groundnut jícama wattle seed black-eyed pea chicory broccoli rabe bamboo shoot. Kombu garlic watercress garbanzo squash plantain amaranth wattle seed tomatillo tigernut. Wakame watercress swiss chard bamboo shoot garlic wakame azuki bean lentil lettuce chicory horseradish eggplant gumbo. Swiss chard turnip jícama courgette fennel salsify brussels sprout zucchini sea lettuce desert raisin fava bean artichoke kale bell pepper watercress wakame black-eyed pea garlic. Lentil spring onion caulie welsh onion sweet pepper quandong potato wakame carrot taro artichoke prairie turnip eggplant. <h2>Protection of Certain Personally-Identifying Information</h2> Scallion burdock silver beet water spinach turnip watercress aubergine. Komatsuna scallion bush tomato prairie turnip amaranth cress fennel parsnip plantain rutabaga lettuce chickweed radish. Yarrow bell pepper radish tomatillo avocado brussels sprout leek garlic salad pea sprouts sorrel courgette chickweed courgette carrot fennel cress lotus root. Brussels sprout water chestnut pea sprouts bell pepper bamboo shoot radicchio komatsuna celtuce chicory zucchini garlic groundnut epazote. Wakame kohlrabi radicchio artichoke shallot brussels sprout. Garlic garbanzo chicory welsh onion gram brussels sprout turnip endive. Tatsoi chickweed pea zucchini endive sierra leone bologi shallot artichoke. Gumbo tomatillo peanut onion lentil broccoli aubergine asparagus maize kakadu plum sweet pepper watercress artichoke brussels sprout shallot. Mustard sweet pepper welsh onion corn summer purslane potato green bean lettuce garbanzo jícama salsify amaranth lotus root sierra leone bologi radicchio mustard. Kombu cucumber sweet pepper winter purslane courgette silver beet zucchini dandelion arugula tatsoi welsh onion gumbo pea beet greens broccoli rabe kohlrabi. Spinach endive maize water spinach burdock bell pepper jícama bush tomato asparagus chickweed celery mustard kale tatsoi. Cress green bean potato bunya nuts water chestnut chicory rock melon jícama lotus root wattle seed eggplant coriander winter purslane spring onion. Leek coriander celery taro radicchio melon parsley tigernut water spinach maize brussels sprout cucumber arugula sweet pepper silver beet bell pepper kohlrabi. Cress gourd scallion salad jícama carrot water spinach garlic courgette black-eyed pea quandong tomatillo daikon epazote. <h2>About This Privacy Policy</h2> <p>This Privacy Policy is just a sample and are not legally binding. Real Privicy Policies do not (usually) contain vegetables...</p> <footer> <hr> <p class="pull-right">Design by <a href="http://www.portnine.com" target="_blank">Portnine</a></p> <p>&copy; 2013 <a href="#">Your Company</a></p> </footer> </div> <script src="lib/bootstrap3/dist/js/bootstrap.js"></script> <script type="text/javascript"> $("[rel=tooltip]").tooltip({animation:false}); $(function() { $('.demo-cancel-click').click(function(){return false;}); }); </script> </body> </html>
00-techstorm
trunk/assets/admin/privacy-policy.html
HTML
gpl3
14,964
$(function(){ $('#sidebar-nav').on('show.bs.tooltip', 'a', function(e) { if($(e.currentTarget).find('span:visible').length) { e.preventDefault(); return false; } }); }); var fancyFilter = function(filterListSelector, gallerySelector) { //Filter Button Code $(filterListSelector + ' a').click(function() { $(filterListSelector + ' li').removeClass('active'); var $this = $(this); var filterType = $this.data('filter'); if(!filterType) return true; $this.closest('li').addClass('active'); $(gallerySelector).isotope({ filter: filterType, }); return false; }); };
00-techstorm
trunk/assets/admin/javascripts/site.js
JavaScript
gpl3
705
/** * alert-blackgloss.css v1.0 * -- * Based off blackgloss growl theme. * Copyright 2012 Nijiko Yonskai * -- * Usage: * Set style to `blackgloss` and include this css. * * Note: * The gloss is only supported in webkit based browsers. * Chrome and Safari. */ @-webkit-keyframes notification { 0% { -webkit-transform: rotateY(-90deg); opacity: 0; } 70% { -webkit-transform: rotateY(20deg); opacity: .8; } 90% { -webkit-transform: rotateY(-10deg); opacity: 1; } 100% { -webkit-transform: rotateY(-0deg); opacity: 1; } } @-moz-keyframes notification { 0% { -webkit-transform: rotateY(-90deg); opacity: 0; } 70% { -webkit-transform: rotateY(20deg); opacity: .8; } 90% { -webkit-transform: rotateY(-10deg); opacity: 1; } 100% { -webkit-transform: rotateY(-0deg); opacity: 1; } } @-o-keyframes notification { 0% { -webkit-transform: rotateY(-90deg); opacity: 0; } 70% { -webkit-transform: rotateY(20deg); opacity: .8; } 90% { -webkit-transform: rotateY(-10deg); opacity: 1; } 100% { -webkit-transform: rotateY(-0deg); opacity: 1; } } keyframes notification { 0% { -webkit-transform: rotateY(-90deg); opacity: 0; } 70% { -webkit-transform: rotateY(20deg); opacity: .8; } 90% { -webkit-transform: rotateY(-10deg); opacity: 1; } 100% { -webkit-transform: rotateY(-0deg); opacity: 1; } } /* Webkit Only */ .alert-blackgloss:before { background: -webkit-gradient(linear, 0% -16.5%, 16.5% -100%, from(rgba(255,255,255,.0)), to(rgba(255,255,255,.6)), color-stop(.99,rgba(255,255,255,.2)),color-stop(.5,rgba(255,255,255,.0))) no-repeat; -webkit-mask-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(255,255,255,.5)), color-stop(.8,rgba(255,255,255,.0))); position: absolute; content: '.'; line-height: 0; top: 0; right: 0; bottom: 0; left: 0; display: block; overflow: hidden; text-indent: -99999px; -webkit-border-radius: 5px; } .alert-blackgloss { -webkit-animation: notification .75s linear; -moz-animation: notification .75s linear; -ms-animation: notification .75s linear; -o-animation: notification .75s linear; animation: notification .75s linear; background: rgba(0,0,0,1); -webkit-box-shadow: 0 2px 5px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.1); -moz-box-shadow: 0 2px 5px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.1); -ms-box-shadow: 0 2px 5px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.1); -o-box-shadow: 0 2px 5px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.1); box-shadow: 0 2px 5px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.1); border: 1px solid rgba(0,0,0,.95); -webkit-border-radius: 5px; -moz-border-radius: 5px; -ms-border-radius: 5px; -o-border-radius: 5px; border-radius: 5px; -webkit-font-smoothing: antialiased; text-shadow: 0 1px 2px rgba(0,0,0,.5); color: #fff; -webkit-transform: rotateY(-0deg); -moz-transform: rotateY(-0deg); -o-transform: rotateY(-0deg); transform: rotateY(-0deg); position: relative; background-clip: padding-box; } .alert-blackgloss .close { position: relative; top: -3px; right: -25px; color: #fff; content: 'x'; }
00-techstorm
trunk/assets/admin/lib/bootstrap-notify/alert-blackgloss.css
CSS
gpl3
3,268
/** * @license wysihtml5 v0.3.0 * https://github.com/xing/wysihtml5 * * Author: Christopher Blum (https://github.com/tiff) * * Copyright (C) 2012 XING AG * Licensed under the MIT license (MIT) * */ var wysihtml5 = { version: "0.3.0", // namespaces commands: {}, dom: {}, quirks: {}, toolbar: {}, lang: {}, selection: {}, views: {}, INVISIBLE_SPACE: "\uFEFF", EMPTY_FUNCTION: function() {}, ELEMENT_NODE: 1, TEXT_NODE: 3, BACKSPACE_KEY: 8, ENTER_KEY: 13, ESCAPE_KEY: 27, SPACE_KEY: 32, DELETE_KEY: 46 };/** * @license Rangy, a cross-browser JavaScript range and selection library * http://code.google.com/p/rangy/ * * Copyright 2011, Tim Down * Licensed under the MIT license. * Version: 1.2.2 * Build date: 13 November 2011 */ window['rangy'] = (function() { var OBJECT = "object", FUNCTION = "function", UNDEFINED = "undefined"; var domRangeProperties = ["startContainer", "startOffset", "endContainer", "endOffset", "collapsed", "commonAncestorContainer", "START_TO_START", "START_TO_END", "END_TO_START", "END_TO_END"]; var domRangeMethods = ["setStart", "setStartBefore", "setStartAfter", "setEnd", "setEndBefore", "setEndAfter", "collapse", "selectNode", "selectNodeContents", "compareBoundaryPoints", "deleteContents", "extractContents", "cloneContents", "insertNode", "surroundContents", "cloneRange", "toString", "detach"]; var textRangeProperties = ["boundingHeight", "boundingLeft", "boundingTop", "boundingWidth", "htmlText", "text"]; // Subset of TextRange's full set of methods that we're interested in var textRangeMethods = ["collapse", "compareEndPoints", "duplicate", "getBookmark", "moveToBookmark", "moveToElementText", "parentElement", "pasteHTML", "select", "setEndPoint", "getBoundingClientRect"]; /*----------------------------------------------------------------------------------------------------------------*/ // Trio of functions taken from Peter Michaux's article: // http://peter.michaux.ca/articles/feature-detection-state-of-the-art-browser-scripting function isHostMethod(o, p) { var t = typeof o[p]; return t == FUNCTION || (!!(t == OBJECT && o[p])) || t == "unknown"; } function isHostObject(o, p) { return !!(typeof o[p] == OBJECT && o[p]); } function isHostProperty(o, p) { return typeof o[p] != UNDEFINED; } // Creates a convenience function to save verbose repeated calls to tests functions function createMultiplePropertyTest(testFunc) { return function(o, props) { var i = props.length; while (i--) { if (!testFunc(o, props[i])) { return false; } } return true; }; } // Next trio of functions are a convenience to save verbose repeated calls to previous two functions var areHostMethods = createMultiplePropertyTest(isHostMethod); var areHostObjects = createMultiplePropertyTest(isHostObject); var areHostProperties = createMultiplePropertyTest(isHostProperty); function isTextRange(range) { return range && areHostMethods(range, textRangeMethods) && areHostProperties(range, textRangeProperties); } var api = { version: "1.2.2", initialized: false, supported: true, util: { isHostMethod: isHostMethod, isHostObject: isHostObject, isHostProperty: isHostProperty, areHostMethods: areHostMethods, areHostObjects: areHostObjects, areHostProperties: areHostProperties, isTextRange: isTextRange }, features: {}, modules: {}, config: { alertOnWarn: false, preferTextRange: false } }; function fail(reason) { window.alert("Rangy not supported in your browser. Reason: " + reason); api.initialized = true; api.supported = false; } api.fail = fail; function warn(msg) { var warningMessage = "Rangy warning: " + msg; if (api.config.alertOnWarn) { window.alert(warningMessage); } else if (typeof window.console != UNDEFINED && typeof window.console.log != UNDEFINED) { window.console.log(warningMessage); } } api.warn = warn; if ({}.hasOwnProperty) { api.util.extend = function(o, props) { for (var i in props) { if (props.hasOwnProperty(i)) { o[i] = props[i]; } } }; } else { fail("hasOwnProperty not supported"); } var initListeners = []; var moduleInitializers = []; // Initialization function init() { if (api.initialized) { return; } var testRange; var implementsDomRange = false, implementsTextRange = false; // First, perform basic feature tests if (isHostMethod(document, "createRange")) { testRange = document.createRange(); if (areHostMethods(testRange, domRangeMethods) && areHostProperties(testRange, domRangeProperties)) { implementsDomRange = true; } testRange.detach(); } var body = isHostObject(document, "body") ? document.body : document.getElementsByTagName("body")[0]; if (body && isHostMethod(body, "createTextRange")) { testRange = body.createTextRange(); if (isTextRange(testRange)) { implementsTextRange = true; } } if (!implementsDomRange && !implementsTextRange) { fail("Neither Range nor TextRange are implemented"); } api.initialized = true; api.features = { implementsDomRange: implementsDomRange, implementsTextRange: implementsTextRange }; // Initialize modules and call init listeners var allListeners = moduleInitializers.concat(initListeners); for (var i = 0, len = allListeners.length; i < len; ++i) { try { allListeners[i](api); } catch (ex) { if (isHostObject(window, "console") && isHostMethod(window.console, "log")) { window.console.log("Init listener threw an exception. Continuing.", ex); } } } } // Allow external scripts to initialize this library in case it's loaded after the document has loaded api.init = init; // Execute listener immediately if already initialized api.addInitListener = function(listener) { if (api.initialized) { listener(api); } else { initListeners.push(listener); } }; var createMissingNativeApiListeners = []; api.addCreateMissingNativeApiListener = function(listener) { createMissingNativeApiListeners.push(listener); }; function createMissingNativeApi(win) { win = win || window; init(); // Notify listeners for (var i = 0, len = createMissingNativeApiListeners.length; i < len; ++i) { createMissingNativeApiListeners[i](win); } } api.createMissingNativeApi = createMissingNativeApi; /** * @constructor */ function Module(name) { this.name = name; this.initialized = false; this.supported = false; } Module.prototype.fail = function(reason) { this.initialized = true; this.supported = false; throw new Error("Module '" + this.name + "' failed to load: " + reason); }; Module.prototype.warn = function(msg) { api.warn("Module " + this.name + ": " + msg); }; Module.prototype.createError = function(msg) { return new Error("Error in Rangy " + this.name + " module: " + msg); }; api.createModule = function(name, initFunc) { var module = new Module(name); api.modules[name] = module; moduleInitializers.push(function(api) { initFunc(api, module); module.initialized = true; module.supported = true; }); }; api.requireModules = function(modules) { for (var i = 0, len = modules.length, module, moduleName; i < len; ++i) { moduleName = modules[i]; module = api.modules[moduleName]; if (!module || !(module instanceof Module)) { throw new Error("Module '" + moduleName + "' not found"); } if (!module.supported) { throw new Error("Module '" + moduleName + "' not supported"); } } }; /*----------------------------------------------------------------------------------------------------------------*/ // Wait for document to load before running tests var docReady = false; var loadHandler = function(e) { if (!docReady) { docReady = true; if (!api.initialized) { init(); } } }; // Test whether we have window and document objects that we will need if (typeof window == UNDEFINED) { fail("No window found"); return; } if (typeof document == UNDEFINED) { fail("No document found"); return; } if (isHostMethod(document, "addEventListener")) { document.addEventListener("DOMContentLoaded", loadHandler, false); } // Add a fallback in case the DOMContentLoaded event isn't supported if (isHostMethod(window, "addEventListener")) { window.addEventListener("load", loadHandler, false); } else if (isHostMethod(window, "attachEvent")) { window.attachEvent("onload", loadHandler); } else { fail("Window does not have required addEventListener or attachEvent method"); } return api; })(); rangy.createModule("DomUtil", function(api, module) { var UNDEF = "undefined"; var util = api.util; // Perform feature tests if (!util.areHostMethods(document, ["createDocumentFragment", "createElement", "createTextNode"])) { module.fail("document missing a Node creation method"); } if (!util.isHostMethod(document, "getElementsByTagName")) { module.fail("document missing getElementsByTagName method"); } var el = document.createElement("div"); if (!util.areHostMethods(el, ["insertBefore", "appendChild", "cloneNode"] || !util.areHostObjects(el, ["previousSibling", "nextSibling", "childNodes", "parentNode"]))) { module.fail("Incomplete Element implementation"); } // innerHTML is required for Range's createContextualFragment method if (!util.isHostProperty(el, "innerHTML")) { module.fail("Element is missing innerHTML property"); } var textNode = document.createTextNode("test"); if (!util.areHostMethods(textNode, ["splitText", "deleteData", "insertData", "appendData", "cloneNode"] || !util.areHostObjects(el, ["previousSibling", "nextSibling", "childNodes", "parentNode"]) || !util.areHostProperties(textNode, ["data"]))) { module.fail("Incomplete Text Node implementation"); } /*----------------------------------------------------------------------------------------------------------------*/ // Removed use of indexOf because of a bizarre bug in Opera that is thrown in one of the Acid3 tests. I haven't been // able to replicate it outside of the test. The bug is that indexOf returns -1 when called on an Array that // contains just the document as a single element and the value searched for is the document. var arrayContains = /*Array.prototype.indexOf ? function(arr, val) { return arr.indexOf(val) > -1; }:*/ function(arr, val) { var i = arr.length; while (i--) { if (arr[i] === val) { return true; } } return false; }; // Opera 11 puts HTML elements in the null namespace, it seems, and IE 7 has undefined namespaceURI function isHtmlNamespace(node) { var ns; return typeof node.namespaceURI == UNDEF || ((ns = node.namespaceURI) === null || ns == "http://www.w3.org/1999/xhtml"); } function parentElement(node) { var parent = node.parentNode; return (parent.nodeType == 1) ? parent : null; } function getNodeIndex(node) { var i = 0; while( (node = node.previousSibling) ) { i++; } return i; } function getNodeLength(node) { var childNodes; return isCharacterDataNode(node) ? node.length : ((childNodes = node.childNodes) ? childNodes.length : 0); } function getCommonAncestor(node1, node2) { var ancestors = [], n; for (n = node1; n; n = n.parentNode) { ancestors.push(n); } for (n = node2; n; n = n.parentNode) { if (arrayContains(ancestors, n)) { return n; } } return null; } function isAncestorOf(ancestor, descendant, selfIsAncestor) { var n = selfIsAncestor ? descendant : descendant.parentNode; while (n) { if (n === ancestor) { return true; } else { n = n.parentNode; } } return false; } function getClosestAncestorIn(node, ancestor, selfIsAncestor) { var p, n = selfIsAncestor ? node : node.parentNode; while (n) { p = n.parentNode; if (p === ancestor) { return n; } n = p; } return null; } function isCharacterDataNode(node) { var t = node.nodeType; return t == 3 || t == 4 || t == 8 ; // Text, CDataSection or Comment } function insertAfter(node, precedingNode) { var nextNode = precedingNode.nextSibling, parent = precedingNode.parentNode; if (nextNode) { parent.insertBefore(node, nextNode); } else { parent.appendChild(node); } return node; } // Note that we cannot use splitText() because it is bugridden in IE 9. function splitDataNode(node, index) { var newNode = node.cloneNode(false); newNode.deleteData(0, index); node.deleteData(index, node.length - index); insertAfter(newNode, node); return newNode; } function getDocument(node) { if (node.nodeType == 9) { return node; } else if (typeof node.ownerDocument != UNDEF) { return node.ownerDocument; } else if (typeof node.document != UNDEF) { return node.document; } else if (node.parentNode) { return getDocument(node.parentNode); } else { throw new Error("getDocument: no document found for node"); } } function getWindow(node) { var doc = getDocument(node); if (typeof doc.defaultView != UNDEF) { return doc.defaultView; } else if (typeof doc.parentWindow != UNDEF) { return doc.parentWindow; } else { throw new Error("Cannot get a window object for node"); } } function getIframeDocument(iframeEl) { if (typeof iframeEl.contentDocument != UNDEF) { return iframeEl.contentDocument; } else if (typeof iframeEl.contentWindow != UNDEF) { return iframeEl.contentWindow.document; } else { throw new Error("getIframeWindow: No Document object found for iframe element"); } } function getIframeWindow(iframeEl) { if (typeof iframeEl.contentWindow != UNDEF) { return iframeEl.contentWindow; } else if (typeof iframeEl.contentDocument != UNDEF) { return iframeEl.contentDocument.defaultView; } else { throw new Error("getIframeWindow: No Window object found for iframe element"); } } function getBody(doc) { return util.isHostObject(doc, "body") ? doc.body : doc.getElementsByTagName("body")[0]; } function getRootContainer(node) { var parent; while ( (parent = node.parentNode) ) { node = parent; } return node; } function comparePoints(nodeA, offsetA, nodeB, offsetB) { // See http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-Comparing var nodeC, root, childA, childB, n; if (nodeA == nodeB) { // Case 1: nodes are the same return offsetA === offsetB ? 0 : (offsetA < offsetB) ? -1 : 1; } else if ( (nodeC = getClosestAncestorIn(nodeB, nodeA, true)) ) { // Case 2: node C (container B or an ancestor) is a child node of A return offsetA <= getNodeIndex(nodeC) ? -1 : 1; } else if ( (nodeC = getClosestAncestorIn(nodeA, nodeB, true)) ) { // Case 3: node C (container A or an ancestor) is a child node of B return getNodeIndex(nodeC) < offsetB ? -1 : 1; } else { // Case 4: containers are siblings or descendants of siblings root = getCommonAncestor(nodeA, nodeB); childA = (nodeA === root) ? root : getClosestAncestorIn(nodeA, root, true); childB = (nodeB === root) ? root : getClosestAncestorIn(nodeB, root, true); if (childA === childB) { // This shouldn't be possible throw new Error("comparePoints got to case 4 and childA and childB are the same!"); } else { n = root.firstChild; while (n) { if (n === childA) { return -1; } else if (n === childB) { return 1; } n = n.nextSibling; } throw new Error("Should not be here!"); } } } function fragmentFromNodeChildren(node) { var fragment = getDocument(node).createDocumentFragment(), child; while ( (child = node.firstChild) ) { fragment.appendChild(child); } return fragment; } function inspectNode(node) { if (!node) { return "[No node]"; } if (isCharacterDataNode(node)) { return '"' + node.data + '"'; } else if (node.nodeType == 1) { var idAttr = node.id ? ' id="' + node.id + '"' : ""; return "<" + node.nodeName + idAttr + ">[" + node.childNodes.length + "]"; } else { return node.nodeName; } } /** * @constructor */ function NodeIterator(root) { this.root = root; this._next = root; } NodeIterator.prototype = { _current: null, hasNext: function() { return !!this._next; }, next: function() { var n = this._current = this._next; var child, next; if (this._current) { child = n.firstChild; if (child) { this._next = child; } else { next = null; while ((n !== this.root) && !(next = n.nextSibling)) { n = n.parentNode; } this._next = next; } } return this._current; }, detach: function() { this._current = this._next = this.root = null; } }; function createIterator(root) { return new NodeIterator(root); } /** * @constructor */ function DomPosition(node, offset) { this.node = node; this.offset = offset; } DomPosition.prototype = { equals: function(pos) { return this.node === pos.node & this.offset == pos.offset; }, inspect: function() { return "[DomPosition(" + inspectNode(this.node) + ":" + this.offset + ")]"; } }; /** * @constructor */ function DOMException(codeName) { this.code = this[codeName]; this.codeName = codeName; this.message = "DOMException: " + this.codeName; } DOMException.prototype = { INDEX_SIZE_ERR: 1, HIERARCHY_REQUEST_ERR: 3, WRONG_DOCUMENT_ERR: 4, NO_MODIFICATION_ALLOWED_ERR: 7, NOT_FOUND_ERR: 8, NOT_SUPPORTED_ERR: 9, INVALID_STATE_ERR: 11 }; DOMException.prototype.toString = function() { return this.message; }; api.dom = { arrayContains: arrayContains, isHtmlNamespace: isHtmlNamespace, parentElement: parentElement, getNodeIndex: getNodeIndex, getNodeLength: getNodeLength, getCommonAncestor: getCommonAncestor, isAncestorOf: isAncestorOf, getClosestAncestorIn: getClosestAncestorIn, isCharacterDataNode: isCharacterDataNode, insertAfter: insertAfter, splitDataNode: splitDataNode, getDocument: getDocument, getWindow: getWindow, getIframeWindow: getIframeWindow, getIframeDocument: getIframeDocument, getBody: getBody, getRootContainer: getRootContainer, comparePoints: comparePoints, inspectNode: inspectNode, fragmentFromNodeChildren: fragmentFromNodeChildren, createIterator: createIterator, DomPosition: DomPosition }; api.DOMException = DOMException; });rangy.createModule("DomRange", function(api, module) { api.requireModules( ["DomUtil"] ); var dom = api.dom; var DomPosition = dom.DomPosition; var DOMException = api.DOMException; /*----------------------------------------------------------------------------------------------------------------*/ // Utility functions function isNonTextPartiallySelected(node, range) { return (node.nodeType != 3) && (dom.isAncestorOf(node, range.startContainer, true) || dom.isAncestorOf(node, range.endContainer, true)); } function getRangeDocument(range) { return dom.getDocument(range.startContainer); } function dispatchEvent(range, type, args) { var listeners = range._listeners[type]; if (listeners) { for (var i = 0, len = listeners.length; i < len; ++i) { listeners[i].call(range, {target: range, args: args}); } } } function getBoundaryBeforeNode(node) { return new DomPosition(node.parentNode, dom.getNodeIndex(node)); } function getBoundaryAfterNode(node) { return new DomPosition(node.parentNode, dom.getNodeIndex(node) + 1); } function insertNodeAtPosition(node, n, o) { var firstNodeInserted = node.nodeType == 11 ? node.firstChild : node; if (dom.isCharacterDataNode(n)) { if (o == n.length) { dom.insertAfter(node, n); } else { n.parentNode.insertBefore(node, o == 0 ? n : dom.splitDataNode(n, o)); } } else if (o >= n.childNodes.length) { n.appendChild(node); } else { n.insertBefore(node, n.childNodes[o]); } return firstNodeInserted; } function cloneSubtree(iterator) { var partiallySelected; for (var node, frag = getRangeDocument(iterator.range).createDocumentFragment(), subIterator; node = iterator.next(); ) { partiallySelected = iterator.isPartiallySelectedSubtree(); node = node.cloneNode(!partiallySelected); if (partiallySelected) { subIterator = iterator.getSubtreeIterator(); node.appendChild(cloneSubtree(subIterator)); subIterator.detach(true); } if (node.nodeType == 10) { // DocumentType throw new DOMException("HIERARCHY_REQUEST_ERR"); } frag.appendChild(node); } return frag; } function iterateSubtree(rangeIterator, func, iteratorState) { var it, n; iteratorState = iteratorState || { stop: false }; for (var node, subRangeIterator; node = rangeIterator.next(); ) { //log.debug("iterateSubtree, partially selected: " + rangeIterator.isPartiallySelectedSubtree(), nodeToString(node)); if (rangeIterator.isPartiallySelectedSubtree()) { // The node is partially selected by the Range, so we can use a new RangeIterator on the portion of the // node selected by the Range. if (func(node) === false) { iteratorState.stop = true; return; } else { subRangeIterator = rangeIterator.getSubtreeIterator(); iterateSubtree(subRangeIterator, func, iteratorState); subRangeIterator.detach(true); if (iteratorState.stop) { return; } } } else { // The whole node is selected, so we can use efficient DOM iteration to iterate over the node and its // descendant it = dom.createIterator(node); while ( (n = it.next()) ) { if (func(n) === false) { iteratorState.stop = true; return; } } } } } function deleteSubtree(iterator) { var subIterator; while (iterator.next()) { if (iterator.isPartiallySelectedSubtree()) { subIterator = iterator.getSubtreeIterator(); deleteSubtree(subIterator); subIterator.detach(true); } else { iterator.remove(); } } } function extractSubtree(iterator) { for (var node, frag = getRangeDocument(iterator.range).createDocumentFragment(), subIterator; node = iterator.next(); ) { if (iterator.isPartiallySelectedSubtree()) { node = node.cloneNode(false); subIterator = iterator.getSubtreeIterator(); node.appendChild(extractSubtree(subIterator)); subIterator.detach(true); } else { iterator.remove(); } if (node.nodeType == 10) { // DocumentType throw new DOMException("HIERARCHY_REQUEST_ERR"); } frag.appendChild(node); } return frag; } function getNodesInRange(range, nodeTypes, filter) { //log.info("getNodesInRange, " + nodeTypes.join(",")); var filterNodeTypes = !!(nodeTypes && nodeTypes.length), regex; var filterExists = !!filter; if (filterNodeTypes) { regex = new RegExp("^(" + nodeTypes.join("|") + ")$"); } var nodes = []; iterateSubtree(new RangeIterator(range, false), function(node) { if ((!filterNodeTypes || regex.test(node.nodeType)) && (!filterExists || filter(node))) { nodes.push(node); } }); return nodes; } function inspect(range) { var name = (typeof range.getName == "undefined") ? "Range" : range.getName(); return "[" + name + "(" + dom.inspectNode(range.startContainer) + ":" + range.startOffset + ", " + dom.inspectNode(range.endContainer) + ":" + range.endOffset + ")]"; } /*----------------------------------------------------------------------------------------------------------------*/ // RangeIterator code partially borrows from IERange by Tim Ryan (http://github.com/timcameronryan/IERange) /** * @constructor */ function RangeIterator(range, clonePartiallySelectedTextNodes) { this.range = range; this.clonePartiallySelectedTextNodes = clonePartiallySelectedTextNodes; if (!range.collapsed) { this.sc = range.startContainer; this.so = range.startOffset; this.ec = range.endContainer; this.eo = range.endOffset; var root = range.commonAncestorContainer; if (this.sc === this.ec && dom.isCharacterDataNode(this.sc)) { this.isSingleCharacterDataNode = true; this._first = this._last = this._next = this.sc; } else { this._first = this._next = (this.sc === root && !dom.isCharacterDataNode(this.sc)) ? this.sc.childNodes[this.so] : dom.getClosestAncestorIn(this.sc, root, true); this._last = (this.ec === root && !dom.isCharacterDataNode(this.ec)) ? this.ec.childNodes[this.eo - 1] : dom.getClosestAncestorIn(this.ec, root, true); } } } RangeIterator.prototype = { _current: null, _next: null, _first: null, _last: null, isSingleCharacterDataNode: false, reset: function() { this._current = null; this._next = this._first; }, hasNext: function() { return !!this._next; }, next: function() { // Move to next node var current = this._current = this._next; if (current) { this._next = (current !== this._last) ? current.nextSibling : null; // Check for partially selected text nodes if (dom.isCharacterDataNode(current) && this.clonePartiallySelectedTextNodes) { if (current === this.ec) { (current = current.cloneNode(true)).deleteData(this.eo, current.length - this.eo); } if (this._current === this.sc) { (current = current.cloneNode(true)).deleteData(0, this.so); } } } return current; }, remove: function() { var current = this._current, start, end; if (dom.isCharacterDataNode(current) && (current === this.sc || current === this.ec)) { start = (current === this.sc) ? this.so : 0; end = (current === this.ec) ? this.eo : current.length; if (start != end) { current.deleteData(start, end - start); } } else { if (current.parentNode) { current.parentNode.removeChild(current); } else { } } }, // Checks if the current node is partially selected isPartiallySelectedSubtree: function() { var current = this._current; return isNonTextPartiallySelected(current, this.range); }, getSubtreeIterator: function() { var subRange; if (this.isSingleCharacterDataNode) { subRange = this.range.cloneRange(); subRange.collapse(); } else { subRange = new Range(getRangeDocument(this.range)); var current = this._current; var startContainer = current, startOffset = 0, endContainer = current, endOffset = dom.getNodeLength(current); if (dom.isAncestorOf(current, this.sc, true)) { startContainer = this.sc; startOffset = this.so; } if (dom.isAncestorOf(current, this.ec, true)) { endContainer = this.ec; endOffset = this.eo; } updateBoundaries(subRange, startContainer, startOffset, endContainer, endOffset); } return new RangeIterator(subRange, this.clonePartiallySelectedTextNodes); }, detach: function(detachRange) { if (detachRange) { this.range.detach(); } this.range = this._current = this._next = this._first = this._last = this.sc = this.so = this.ec = this.eo = null; } }; /*----------------------------------------------------------------------------------------------------------------*/ // Exceptions /** * @constructor */ function RangeException(codeName) { this.code = this[codeName]; this.codeName = codeName; this.message = "RangeException: " + this.codeName; } RangeException.prototype = { BAD_BOUNDARYPOINTS_ERR: 1, INVALID_NODE_TYPE_ERR: 2 }; RangeException.prototype.toString = function() { return this.message; }; /*----------------------------------------------------------------------------------------------------------------*/ /** * Currently iterates through all nodes in the range on creation until I think of a decent way to do it * TODO: Look into making this a proper iterator, not requiring preloading everything first * @constructor */ function RangeNodeIterator(range, nodeTypes, filter) { this.nodes = getNodesInRange(range, nodeTypes, filter); this._next = this.nodes[0]; this._position = 0; } RangeNodeIterator.prototype = { _current: null, hasNext: function() { return !!this._next; }, next: function() { this._current = this._next; this._next = this.nodes[ ++this._position ]; return this._current; }, detach: function() { this._current = this._next = this.nodes = null; } }; var beforeAfterNodeTypes = [1, 3, 4, 5, 7, 8, 10]; var rootContainerNodeTypes = [2, 9, 11]; var readonlyNodeTypes = [5, 6, 10, 12]; var insertableNodeTypes = [1, 3, 4, 5, 7, 8, 10, 11]; var surroundNodeTypes = [1, 3, 4, 5, 7, 8]; function createAncestorFinder(nodeTypes) { return function(node, selfIsAncestor) { var t, n = selfIsAncestor ? node : node.parentNode; while (n) { t = n.nodeType; if (dom.arrayContains(nodeTypes, t)) { return n; } n = n.parentNode; } return null; }; } var getRootContainer = dom.getRootContainer; var getDocumentOrFragmentContainer = createAncestorFinder( [9, 11] ); var getReadonlyAncestor = createAncestorFinder(readonlyNodeTypes); var getDocTypeNotationEntityAncestor = createAncestorFinder( [6, 10, 12] ); function assertNoDocTypeNotationEntityAncestor(node, allowSelf) { if (getDocTypeNotationEntityAncestor(node, allowSelf)) { throw new RangeException("INVALID_NODE_TYPE_ERR"); } } function assertNotDetached(range) { if (!range.startContainer) { throw new DOMException("INVALID_STATE_ERR"); } } function assertValidNodeType(node, invalidTypes) { if (!dom.arrayContains(invalidTypes, node.nodeType)) { throw new RangeException("INVALID_NODE_TYPE_ERR"); } } function assertValidOffset(node, offset) { if (offset < 0 || offset > (dom.isCharacterDataNode(node) ? node.length : node.childNodes.length)) { throw new DOMException("INDEX_SIZE_ERR"); } } function assertSameDocumentOrFragment(node1, node2) { if (getDocumentOrFragmentContainer(node1, true) !== getDocumentOrFragmentContainer(node2, true)) { throw new DOMException("WRONG_DOCUMENT_ERR"); } } function assertNodeNotReadOnly(node) { if (getReadonlyAncestor(node, true)) { throw new DOMException("NO_MODIFICATION_ALLOWED_ERR"); } } function assertNode(node, codeName) { if (!node) { throw new DOMException(codeName); } } function isOrphan(node) { return !dom.arrayContains(rootContainerNodeTypes, node.nodeType) && !getDocumentOrFragmentContainer(node, true); } function isValidOffset(node, offset) { return offset <= (dom.isCharacterDataNode(node) ? node.length : node.childNodes.length); } function assertRangeValid(range) { assertNotDetached(range); if (isOrphan(range.startContainer) || isOrphan(range.endContainer) || !isValidOffset(range.startContainer, range.startOffset) || !isValidOffset(range.endContainer, range.endOffset)) { throw new Error("Range error: Range is no longer valid after DOM mutation (" + range.inspect() + ")"); } } /*----------------------------------------------------------------------------------------------------------------*/ // Test the browser's innerHTML support to decide how to implement createContextualFragment var styleEl = document.createElement("style"); var htmlParsingConforms = false; try { styleEl.innerHTML = "<b>x</b>"; htmlParsingConforms = (styleEl.firstChild.nodeType == 3); // Opera incorrectly creates an element node } catch (e) { // IE 6 and 7 throw } api.features.htmlParsingConforms = htmlParsingConforms; var createContextualFragment = htmlParsingConforms ? // Implementation as per HTML parsing spec, trusting in the browser's implementation of innerHTML. See // discussion and base code for this implementation at issue 67. // Spec: http://html5.org/specs/dom-parsing.html#extensions-to-the-range-interface // Thanks to Aleks Williams. function(fragmentStr) { // "Let node the context object's start's node." var node = this.startContainer; var doc = dom.getDocument(node); // "If the context object's start's node is null, raise an INVALID_STATE_ERR // exception and abort these steps." if (!node) { throw new DOMException("INVALID_STATE_ERR"); } // "Let element be as follows, depending on node's interface:" // Document, Document Fragment: null var el = null; // "Element: node" if (node.nodeType == 1) { el = node; // "Text, Comment: node's parentElement" } else if (dom.isCharacterDataNode(node)) { el = dom.parentElement(node); } // "If either element is null or element's ownerDocument is an HTML document // and element's local name is "html" and element's namespace is the HTML // namespace" if (el === null || ( el.nodeName == "HTML" && dom.isHtmlNamespace(dom.getDocument(el).documentElement) && dom.isHtmlNamespace(el) )) { // "let element be a new Element with "body" as its local name and the HTML // namespace as its namespace."" el = doc.createElement("body"); } else { el = el.cloneNode(false); } // "If the node's document is an HTML document: Invoke the HTML fragment parsing algorithm." // "If the node's document is an XML document: Invoke the XML fragment parsing algorithm." // "In either case, the algorithm must be invoked with fragment as the input // and element as the context element." el.innerHTML = fragmentStr; // "If this raises an exception, then abort these steps. Otherwise, let new // children be the nodes returned." // "Let fragment be a new DocumentFragment." // "Append all new children to fragment." // "Return fragment." return dom.fragmentFromNodeChildren(el); } : // In this case, innerHTML cannot be trusted, so fall back to a simpler, non-conformant implementation that // previous versions of Rangy used (with the exception of using a body element rather than a div) function(fragmentStr) { assertNotDetached(this); var doc = getRangeDocument(this); var el = doc.createElement("body"); el.innerHTML = fragmentStr; return dom.fragmentFromNodeChildren(el); }; /*----------------------------------------------------------------------------------------------------------------*/ var rangeProperties = ["startContainer", "startOffset", "endContainer", "endOffset", "collapsed", "commonAncestorContainer"]; var s2s = 0, s2e = 1, e2e = 2, e2s = 3; var n_b = 0, n_a = 1, n_b_a = 2, n_i = 3; function RangePrototype() {} RangePrototype.prototype = { attachListener: function(type, listener) { this._listeners[type].push(listener); }, compareBoundaryPoints: function(how, range) { assertRangeValid(this); assertSameDocumentOrFragment(this.startContainer, range.startContainer); var nodeA, offsetA, nodeB, offsetB; var prefixA = (how == e2s || how == s2s) ? "start" : "end"; var prefixB = (how == s2e || how == s2s) ? "start" : "end"; nodeA = this[prefixA + "Container"]; offsetA = this[prefixA + "Offset"]; nodeB = range[prefixB + "Container"]; offsetB = range[prefixB + "Offset"]; return dom.comparePoints(nodeA, offsetA, nodeB, offsetB); }, insertNode: function(node) { assertRangeValid(this); assertValidNodeType(node, insertableNodeTypes); assertNodeNotReadOnly(this.startContainer); if (dom.isAncestorOf(node, this.startContainer, true)) { throw new DOMException("HIERARCHY_REQUEST_ERR"); } // No check for whether the container of the start of the Range is of a type that does not allow // children of the type of node: the browser's DOM implementation should do this for us when we attempt // to add the node var firstNodeInserted = insertNodeAtPosition(node, this.startContainer, this.startOffset); this.setStartBefore(firstNodeInserted); }, cloneContents: function() { assertRangeValid(this); var clone, frag; if (this.collapsed) { return getRangeDocument(this).createDocumentFragment(); } else { if (this.startContainer === this.endContainer && dom.isCharacterDataNode(this.startContainer)) { clone = this.startContainer.cloneNode(true); clone.data = clone.data.slice(this.startOffset, this.endOffset); frag = getRangeDocument(this).createDocumentFragment(); frag.appendChild(clone); return frag; } else { var iterator = new RangeIterator(this, true); clone = cloneSubtree(iterator); iterator.detach(); } return clone; } }, canSurroundContents: function() { assertRangeValid(this); assertNodeNotReadOnly(this.startContainer); assertNodeNotReadOnly(this.endContainer); // Check if the contents can be surrounded. Specifically, this means whether the range partially selects // no non-text nodes. var iterator = new RangeIterator(this, true); var boundariesInvalid = (iterator._first && (isNonTextPartiallySelected(iterator._first, this)) || (iterator._last && isNonTextPartiallySelected(iterator._last, this))); iterator.detach(); return !boundariesInvalid; }, surroundContents: function(node) { assertValidNodeType(node, surroundNodeTypes); if (!this.canSurroundContents()) { throw new RangeException("BAD_BOUNDARYPOINTS_ERR"); } // Extract the contents var content = this.extractContents(); // Clear the children of the node if (node.hasChildNodes()) { while (node.lastChild) { node.removeChild(node.lastChild); } } // Insert the new node and add the extracted contents insertNodeAtPosition(node, this.startContainer, this.startOffset); node.appendChild(content); this.selectNode(node); }, cloneRange: function() { assertRangeValid(this); var range = new Range(getRangeDocument(this)); var i = rangeProperties.length, prop; while (i--) { prop = rangeProperties[i]; range[prop] = this[prop]; } return range; }, toString: function() { assertRangeValid(this); var sc = this.startContainer; if (sc === this.endContainer && dom.isCharacterDataNode(sc)) { return (sc.nodeType == 3 || sc.nodeType == 4) ? sc.data.slice(this.startOffset, this.endOffset) : ""; } else { var textBits = [], iterator = new RangeIterator(this, true); iterateSubtree(iterator, function(node) { // Accept only text or CDATA nodes, not comments if (node.nodeType == 3 || node.nodeType == 4) { textBits.push(node.data); } }); iterator.detach(); return textBits.join(""); } }, // The methods below are all non-standard. The following batch were introduced by Mozilla but have since // been removed from Mozilla. compareNode: function(node) { assertRangeValid(this); var parent = node.parentNode; var nodeIndex = dom.getNodeIndex(node); if (!parent) { throw new DOMException("NOT_FOUND_ERR"); } var startComparison = this.comparePoint(parent, nodeIndex), endComparison = this.comparePoint(parent, nodeIndex + 1); if (startComparison < 0) { // Node starts before return (endComparison > 0) ? n_b_a : n_b; } else { return (endComparison > 0) ? n_a : n_i; } }, comparePoint: function(node, offset) { assertRangeValid(this); assertNode(node, "HIERARCHY_REQUEST_ERR"); assertSameDocumentOrFragment(node, this.startContainer); if (dom.comparePoints(node, offset, this.startContainer, this.startOffset) < 0) { return -1; } else if (dom.comparePoints(node, offset, this.endContainer, this.endOffset) > 0) { return 1; } return 0; }, createContextualFragment: createContextualFragment, toHtml: function() { assertRangeValid(this); var container = getRangeDocument(this).createElement("div"); container.appendChild(this.cloneContents()); return container.innerHTML; }, // touchingIsIntersecting determines whether this method considers a node that borders a range intersects // with it (as in WebKit) or not (as in Gecko pre-1.9, and the default) intersectsNode: function(node, touchingIsIntersecting) { assertRangeValid(this); assertNode(node, "NOT_FOUND_ERR"); if (dom.getDocument(node) !== getRangeDocument(this)) { return false; } var parent = node.parentNode, offset = dom.getNodeIndex(node); assertNode(parent, "NOT_FOUND_ERR"); var startComparison = dom.comparePoints(parent, offset, this.endContainer, this.endOffset), endComparison = dom.comparePoints(parent, offset + 1, this.startContainer, this.startOffset); return touchingIsIntersecting ? startComparison <= 0 && endComparison >= 0 : startComparison < 0 && endComparison > 0; }, isPointInRange: function(node, offset) { assertRangeValid(this); assertNode(node, "HIERARCHY_REQUEST_ERR"); assertSameDocumentOrFragment(node, this.startContainer); return (dom.comparePoints(node, offset, this.startContainer, this.startOffset) >= 0) && (dom.comparePoints(node, offset, this.endContainer, this.endOffset) <= 0); }, // The methods below are non-standard and invented by me. // Sharing a boundary start-to-end or end-to-start does not count as intersection. intersectsRange: function(range, touchingIsIntersecting) { assertRangeValid(this); if (getRangeDocument(range) != getRangeDocument(this)) { throw new DOMException("WRONG_DOCUMENT_ERR"); } var startComparison = dom.comparePoints(this.startContainer, this.startOffset, range.endContainer, range.endOffset), endComparison = dom.comparePoints(this.endContainer, this.endOffset, range.startContainer, range.startOffset); return touchingIsIntersecting ? startComparison <= 0 && endComparison >= 0 : startComparison < 0 && endComparison > 0; }, intersection: function(range) { if (this.intersectsRange(range)) { var startComparison = dom.comparePoints(this.startContainer, this.startOffset, range.startContainer, range.startOffset), endComparison = dom.comparePoints(this.endContainer, this.endOffset, range.endContainer, range.endOffset); var intersectionRange = this.cloneRange(); if (startComparison == -1) { intersectionRange.setStart(range.startContainer, range.startOffset); } if (endComparison == 1) { intersectionRange.setEnd(range.endContainer, range.endOffset); } return intersectionRange; } return null; }, union: function(range) { if (this.intersectsRange(range, true)) { var unionRange = this.cloneRange(); if (dom.comparePoints(range.startContainer, range.startOffset, this.startContainer, this.startOffset) == -1) { unionRange.setStart(range.startContainer, range.startOffset); } if (dom.comparePoints(range.endContainer, range.endOffset, this.endContainer, this.endOffset) == 1) { unionRange.setEnd(range.endContainer, range.endOffset); } return unionRange; } else { throw new RangeException("Ranges do not intersect"); } }, containsNode: function(node, allowPartial) { if (allowPartial) { return this.intersectsNode(node, false); } else { return this.compareNode(node) == n_i; } }, containsNodeContents: function(node) { return this.comparePoint(node, 0) >= 0 && this.comparePoint(node, dom.getNodeLength(node)) <= 0; }, containsRange: function(range) { return this.intersection(range).equals(range); }, containsNodeText: function(node) { var nodeRange = this.cloneRange(); nodeRange.selectNode(node); var textNodes = nodeRange.getNodes([3]); if (textNodes.length > 0) { nodeRange.setStart(textNodes[0], 0); var lastTextNode = textNodes.pop(); nodeRange.setEnd(lastTextNode, lastTextNode.length); var contains = this.containsRange(nodeRange); nodeRange.detach(); return contains; } else { return this.containsNodeContents(node); } }, createNodeIterator: function(nodeTypes, filter) { assertRangeValid(this); return new RangeNodeIterator(this, nodeTypes, filter); }, getNodes: function(nodeTypes, filter) { assertRangeValid(this); return getNodesInRange(this, nodeTypes, filter); }, getDocument: function() { return getRangeDocument(this); }, collapseBefore: function(node) { assertNotDetached(this); this.setEndBefore(node); this.collapse(false); }, collapseAfter: function(node) { assertNotDetached(this); this.setStartAfter(node); this.collapse(true); }, getName: function() { return "DomRange"; }, equals: function(range) { return Range.rangesEqual(this, range); }, inspect: function() { return inspect(this); } }; function copyComparisonConstantsToObject(obj) { obj.START_TO_START = s2s; obj.START_TO_END = s2e; obj.END_TO_END = e2e; obj.END_TO_START = e2s; obj.NODE_BEFORE = n_b; obj.NODE_AFTER = n_a; obj.NODE_BEFORE_AND_AFTER = n_b_a; obj.NODE_INSIDE = n_i; } function copyComparisonConstants(constructor) { copyComparisonConstantsToObject(constructor); copyComparisonConstantsToObject(constructor.prototype); } function createRangeContentRemover(remover, boundaryUpdater) { return function() { assertRangeValid(this); var sc = this.startContainer, so = this.startOffset, root = this.commonAncestorContainer; var iterator = new RangeIterator(this, true); // Work out where to position the range after content removal var node, boundary; if (sc !== root) { node = dom.getClosestAncestorIn(sc, root, true); boundary = getBoundaryAfterNode(node); sc = boundary.node; so = boundary.offset; } // Check none of the range is read-only iterateSubtree(iterator, assertNodeNotReadOnly); iterator.reset(); // Remove the content var returnValue = remover(iterator); iterator.detach(); // Move to the new position boundaryUpdater(this, sc, so, sc, so); return returnValue; }; } function createPrototypeRange(constructor, boundaryUpdater, detacher) { function createBeforeAfterNodeSetter(isBefore, isStart) { return function(node) { assertNotDetached(this); assertValidNodeType(node, beforeAfterNodeTypes); assertValidNodeType(getRootContainer(node), rootContainerNodeTypes); var boundary = (isBefore ? getBoundaryBeforeNode : getBoundaryAfterNode)(node); (isStart ? setRangeStart : setRangeEnd)(this, boundary.node, boundary.offset); }; } function setRangeStart(range, node, offset) { var ec = range.endContainer, eo = range.endOffset; if (node !== range.startContainer || offset !== range.startOffset) { // Check the root containers of the range and the new boundary, and also check whether the new boundary // is after the current end. In either case, collapse the range to the new position if (getRootContainer(node) != getRootContainer(ec) || dom.comparePoints(node, offset, ec, eo) == 1) { ec = node; eo = offset; } boundaryUpdater(range, node, offset, ec, eo); } } function setRangeEnd(range, node, offset) { var sc = range.startContainer, so = range.startOffset; if (node !== range.endContainer || offset !== range.endOffset) { // Check the root containers of the range and the new boundary, and also check whether the new boundary // is after the current end. In either case, collapse the range to the new position if (getRootContainer(node) != getRootContainer(sc) || dom.comparePoints(node, offset, sc, so) == -1) { sc = node; so = offset; } boundaryUpdater(range, sc, so, node, offset); } } function setRangeStartAndEnd(range, node, offset) { if (node !== range.startContainer || offset !== range.startOffset || node !== range.endContainer || offset !== range.endOffset) { boundaryUpdater(range, node, offset, node, offset); } } constructor.prototype = new RangePrototype(); api.util.extend(constructor.prototype, { setStart: function(node, offset) { assertNotDetached(this); assertNoDocTypeNotationEntityAncestor(node, true); assertValidOffset(node, offset); setRangeStart(this, node, offset); }, setEnd: function(node, offset) { assertNotDetached(this); assertNoDocTypeNotationEntityAncestor(node, true); assertValidOffset(node, offset); setRangeEnd(this, node, offset); }, setStartBefore: createBeforeAfterNodeSetter(true, true), setStartAfter: createBeforeAfterNodeSetter(false, true), setEndBefore: createBeforeAfterNodeSetter(true, false), setEndAfter: createBeforeAfterNodeSetter(false, false), collapse: function(isStart) { assertRangeValid(this); if (isStart) { boundaryUpdater(this, this.startContainer, this.startOffset, this.startContainer, this.startOffset); } else { boundaryUpdater(this, this.endContainer, this.endOffset, this.endContainer, this.endOffset); } }, selectNodeContents: function(node) { // This doesn't seem well specified: the spec talks only about selecting the node's contents, which // could be taken to mean only its children. However, browsers implement this the same as selectNode for // text nodes, so I shall do likewise assertNotDetached(this); assertNoDocTypeNotationEntityAncestor(node, true); boundaryUpdater(this, node, 0, node, dom.getNodeLength(node)); }, selectNode: function(node) { assertNotDetached(this); assertNoDocTypeNotationEntityAncestor(node, false); assertValidNodeType(node, beforeAfterNodeTypes); var start = getBoundaryBeforeNode(node), end = getBoundaryAfterNode(node); boundaryUpdater(this, start.node, start.offset, end.node, end.offset); }, extractContents: createRangeContentRemover(extractSubtree, boundaryUpdater), deleteContents: createRangeContentRemover(deleteSubtree, boundaryUpdater), canSurroundContents: function() { assertRangeValid(this); assertNodeNotReadOnly(this.startContainer); assertNodeNotReadOnly(this.endContainer); // Check if the contents can be surrounded. Specifically, this means whether the range partially selects // no non-text nodes. var iterator = new RangeIterator(this, true); var boundariesInvalid = (iterator._first && (isNonTextPartiallySelected(iterator._first, this)) || (iterator._last && isNonTextPartiallySelected(iterator._last, this))); iterator.detach(); return !boundariesInvalid; }, detach: function() { detacher(this); }, splitBoundaries: function() { assertRangeValid(this); var sc = this.startContainer, so = this.startOffset, ec = this.endContainer, eo = this.endOffset; var startEndSame = (sc === ec); if (dom.isCharacterDataNode(ec) && eo > 0 && eo < ec.length) { dom.splitDataNode(ec, eo); } if (dom.isCharacterDataNode(sc) && so > 0 && so < sc.length) { sc = dom.splitDataNode(sc, so); if (startEndSame) { eo -= so; ec = sc; } else if (ec == sc.parentNode && eo >= dom.getNodeIndex(sc)) { eo++; } so = 0; } boundaryUpdater(this, sc, so, ec, eo); }, normalizeBoundaries: function() { assertRangeValid(this); var sc = this.startContainer, so = this.startOffset, ec = this.endContainer, eo = this.endOffset; var mergeForward = function(node) { var sibling = node.nextSibling; if (sibling && sibling.nodeType == node.nodeType) { ec = node; eo = node.length; node.appendData(sibling.data); sibling.parentNode.removeChild(sibling); } }; var mergeBackward = function(node) { var sibling = node.previousSibling; if (sibling && sibling.nodeType == node.nodeType) { sc = node; var nodeLength = node.length; so = sibling.length; node.insertData(0, sibling.data); sibling.parentNode.removeChild(sibling); if (sc == ec) { eo += so; ec = sc; } else if (ec == node.parentNode) { var nodeIndex = dom.getNodeIndex(node); if (eo == nodeIndex) { ec = node; eo = nodeLength; } else if (eo > nodeIndex) { eo--; } } } }; var normalizeStart = true; if (dom.isCharacterDataNode(ec)) { if (ec.length == eo) { mergeForward(ec); } } else { if (eo > 0) { var endNode = ec.childNodes[eo - 1]; if (endNode && dom.isCharacterDataNode(endNode)) { mergeForward(endNode); } } normalizeStart = !this.collapsed; } if (normalizeStart) { if (dom.isCharacterDataNode(sc)) { if (so == 0) { mergeBackward(sc); } } else { if (so < sc.childNodes.length) { var startNode = sc.childNodes[so]; if (startNode && dom.isCharacterDataNode(startNode)) { mergeBackward(startNode); } } } } else { sc = ec; so = eo; } boundaryUpdater(this, sc, so, ec, eo); }, collapseToPoint: function(node, offset) { assertNotDetached(this); assertNoDocTypeNotationEntityAncestor(node, true); assertValidOffset(node, offset); setRangeStartAndEnd(this, node, offset); } }); copyComparisonConstants(constructor); } /*----------------------------------------------------------------------------------------------------------------*/ // Updates commonAncestorContainer and collapsed after boundary change function updateCollapsedAndCommonAncestor(range) { range.collapsed = (range.startContainer === range.endContainer && range.startOffset === range.endOffset); range.commonAncestorContainer = range.collapsed ? range.startContainer : dom.getCommonAncestor(range.startContainer, range.endContainer); } function updateBoundaries(range, startContainer, startOffset, endContainer, endOffset) { var startMoved = (range.startContainer !== startContainer || range.startOffset !== startOffset); var endMoved = (range.endContainer !== endContainer || range.endOffset !== endOffset); range.startContainer = startContainer; range.startOffset = startOffset; range.endContainer = endContainer; range.endOffset = endOffset; updateCollapsedAndCommonAncestor(range); dispatchEvent(range, "boundarychange", {startMoved: startMoved, endMoved: endMoved}); } function detach(range) { assertNotDetached(range); range.startContainer = range.startOffset = range.endContainer = range.endOffset = null; range.collapsed = range.commonAncestorContainer = null; dispatchEvent(range, "detach", null); range._listeners = null; } /** * @constructor */ function Range(doc) { this.startContainer = doc; this.startOffset = 0; this.endContainer = doc; this.endOffset = 0; this._listeners = { boundarychange: [], detach: [] }; updateCollapsedAndCommonAncestor(this); } createPrototypeRange(Range, updateBoundaries, detach); api.rangePrototype = RangePrototype.prototype; Range.rangeProperties = rangeProperties; Range.RangeIterator = RangeIterator; Range.copyComparisonConstants = copyComparisonConstants; Range.createPrototypeRange = createPrototypeRange; Range.inspect = inspect; Range.getRangeDocument = getRangeDocument; Range.rangesEqual = function(r1, r2) { return r1.startContainer === r2.startContainer && r1.startOffset === r2.startOffset && r1.endContainer === r2.endContainer && r1.endOffset === r2.endOffset; }; api.DomRange = Range; api.RangeException = RangeException; });rangy.createModule("WrappedRange", function(api, module) { api.requireModules( ["DomUtil", "DomRange"] ); /** * @constructor */ var WrappedRange; var dom = api.dom; var DomPosition = dom.DomPosition; var DomRange = api.DomRange; /*----------------------------------------------------------------------------------------------------------------*/ /* This is a workaround for a bug where IE returns the wrong container element from the TextRange's parentElement() method. For example, in the following (where pipes denote the selection boundaries): <ul id="ul"><li id="a">| a </li><li id="b"> b |</li></ul> var range = document.selection.createRange(); alert(range.parentElement().id); // Should alert "ul" but alerts "b" This method returns the common ancestor node of the following: - the parentElement() of the textRange - the parentElement() of the textRange after calling collapse(true) - the parentElement() of the textRange after calling collapse(false) */ function getTextRangeContainerElement(textRange) { var parentEl = textRange.parentElement(); var range = textRange.duplicate(); range.collapse(true); var startEl = range.parentElement(); range = textRange.duplicate(); range.collapse(false); var endEl = range.parentElement(); var startEndContainer = (startEl == endEl) ? startEl : dom.getCommonAncestor(startEl, endEl); return startEndContainer == parentEl ? startEndContainer : dom.getCommonAncestor(parentEl, startEndContainer); } function textRangeIsCollapsed(textRange) { return textRange.compareEndPoints("StartToEnd", textRange) == 0; } // Gets the boundary of a TextRange expressed as a node and an offset within that node. This function started out as // an improved version of code found in Tim Cameron Ryan's IERange (http://code.google.com/p/ierange/) but has // grown, fixing problems with line breaks in preformatted text, adding workaround for IE TextRange bugs, handling // for inputs and images, plus optimizations. function getTextRangeBoundaryPosition(textRange, wholeRangeContainerElement, isStart, isCollapsed) { var workingRange = textRange.duplicate(); workingRange.collapse(isStart); var containerElement = workingRange.parentElement(); // Sometimes collapsing a TextRange that's at the start of a text node can move it into the previous node, so // check for that // TODO: Find out when. Workaround for wholeRangeContainerElement may break this if (!dom.isAncestorOf(wholeRangeContainerElement, containerElement, true)) { containerElement = wholeRangeContainerElement; } // Deal with nodes that cannot "contain rich HTML markup". In practice, this means form inputs, images and // similar. See http://msdn.microsoft.com/en-us/library/aa703950%28VS.85%29.aspx if (!containerElement.canHaveHTML) { return new DomPosition(containerElement.parentNode, dom.getNodeIndex(containerElement)); } var workingNode = dom.getDocument(containerElement).createElement("span"); var comparison, workingComparisonType = isStart ? "StartToStart" : "StartToEnd"; var previousNode, nextNode, boundaryPosition, boundaryNode; // Move the working range through the container's children, starting at the end and working backwards, until the // working range reaches or goes past the boundary we're interested in do { containerElement.insertBefore(workingNode, workingNode.previousSibling); workingRange.moveToElementText(workingNode); } while ( (comparison = workingRange.compareEndPoints(workingComparisonType, textRange)) > 0 && workingNode.previousSibling); // We've now reached or gone past the boundary of the text range we're interested in // so have identified the node we want boundaryNode = workingNode.nextSibling; if (comparison == -1 && boundaryNode && dom.isCharacterDataNode(boundaryNode)) { // This is a character data node (text, comment, cdata). The working range is collapsed at the start of the // node containing the text range's boundary, so we move the end of the working range to the boundary point // and measure the length of its text to get the boundary's offset within the node. workingRange.setEndPoint(isStart ? "EndToStart" : "EndToEnd", textRange); var offset; if (/[\r\n]/.test(boundaryNode.data)) { /* For the particular case of a boundary within a text node containing line breaks (within a <pre> element, for example), we need a slightly complicated approach to get the boundary's offset in IE. The facts: - Each line break is represented as \r in the text node's data/nodeValue properties - Each line break is represented as \r\n in the TextRange's 'text' property - The 'text' property of the TextRange does not contain trailing line breaks To get round the problem presented by the final fact above, we can use the fact that TextRange's moveStart() and moveEnd() methods return the actual number of characters moved, which is not necessarily the same as the number of characters it was instructed to move. The simplest approach is to use this to store the characters moved when moving both the start and end of the range to the start of the document body and subtracting the start offset from the end offset (the "move-negative-gazillion" method). However, this is extremely slow when the document is large and the range is near the end of it. Clearly doing the mirror image (i.e. moving the range boundaries to the end of the document) has the same problem. Another approach that works is to use moveStart() to move the start boundary of the range up to the end boundary one character at a time and incrementing a counter with the value returned by the moveStart() call. However, the check for whether the start boundary has reached the end boundary is expensive, so this method is slow (although unlike "move-negative-gazillion" is largely unaffected by the location of the range within the document). The method below is a hybrid of the two methods above. It uses the fact that a string containing the TextRange's 'text' property with each \r\n converted to a single \r character cannot be longer than the text of the TextRange, so the start of the range is moved that length initially and then a character at a time to make up for any trailing line breaks not contained in the 'text' property. This has good performance in most situations compared to the previous two methods. */ var tempRange = workingRange.duplicate(); var rangeLength = tempRange.text.replace(/\r\n/g, "\r").length; offset = tempRange.moveStart("character", rangeLength); while ( (comparison = tempRange.compareEndPoints("StartToEnd", tempRange)) == -1) { offset++; tempRange.moveStart("character", 1); } } else { offset = workingRange.text.length; } boundaryPosition = new DomPosition(boundaryNode, offset); } else { // If the boundary immediately follows a character data node and this is the end boundary, we should favour // a position within that, and likewise for a start boundary preceding a character data node previousNode = (isCollapsed || !isStart) && workingNode.previousSibling; nextNode = (isCollapsed || isStart) && workingNode.nextSibling; if (nextNode && dom.isCharacterDataNode(nextNode)) { boundaryPosition = new DomPosition(nextNode, 0); } else if (previousNode && dom.isCharacterDataNode(previousNode)) { boundaryPosition = new DomPosition(previousNode, previousNode.length); } else { boundaryPosition = new DomPosition(containerElement, dom.getNodeIndex(workingNode)); } } // Clean up workingNode.parentNode.removeChild(workingNode); return boundaryPosition; } // Returns a TextRange representing the boundary of a TextRange expressed as a node and an offset within that node. // This function started out as an optimized version of code found in Tim Cameron Ryan's IERange // (http://code.google.com/p/ierange/) function createBoundaryTextRange(boundaryPosition, isStart) { var boundaryNode, boundaryParent, boundaryOffset = boundaryPosition.offset; var doc = dom.getDocument(boundaryPosition.node); var workingNode, childNodes, workingRange = doc.body.createTextRange(); var nodeIsDataNode = dom.isCharacterDataNode(boundaryPosition.node); if (nodeIsDataNode) { boundaryNode = boundaryPosition.node; boundaryParent = boundaryNode.parentNode; } else { childNodes = boundaryPosition.node.childNodes; boundaryNode = (boundaryOffset < childNodes.length) ? childNodes[boundaryOffset] : null; boundaryParent = boundaryPosition.node; } // Position the range immediately before the node containing the boundary workingNode = doc.createElement("span"); // Making the working element non-empty element persuades IE to consider the TextRange boundary to be within the // element rather than immediately before or after it, which is what we want workingNode.innerHTML = "&#feff;"; // insertBefore is supposed to work like appendChild if the second parameter is null. However, a bug report // for IERange suggests that it can crash the browser: http://code.google.com/p/ierange/issues/detail?id=12 if (boundaryNode) { boundaryParent.insertBefore(workingNode, boundaryNode); } else { boundaryParent.appendChild(workingNode); } workingRange.moveToElementText(workingNode); workingRange.collapse(!isStart); // Clean up boundaryParent.removeChild(workingNode); // Move the working range to the text offset, if required if (nodeIsDataNode) { workingRange[isStart ? "moveStart" : "moveEnd"]("character", boundaryOffset); } return workingRange; } /*----------------------------------------------------------------------------------------------------------------*/ if (api.features.implementsDomRange && (!api.features.implementsTextRange || !api.config.preferTextRange)) { // This is a wrapper around the browser's native DOM Range. It has two aims: // - Provide workarounds for specific browser bugs // - provide convenient extensions, which are inherited from Rangy's DomRange (function() { var rangeProto; var rangeProperties = DomRange.rangeProperties; var canSetRangeStartAfterEnd; function updateRangeProperties(range) { var i = rangeProperties.length, prop; while (i--) { prop = rangeProperties[i]; range[prop] = range.nativeRange[prop]; } } function updateNativeRange(range, startContainer, startOffset, endContainer,endOffset) { var startMoved = (range.startContainer !== startContainer || range.startOffset != startOffset); var endMoved = (range.endContainer !== endContainer || range.endOffset != endOffset); // Always set both boundaries for the benefit of IE9 (see issue 35) if (startMoved || endMoved) { range.setEnd(endContainer, endOffset); range.setStart(startContainer, startOffset); } } function detach(range) { range.nativeRange.detach(); range.detached = true; var i = rangeProperties.length, prop; while (i--) { prop = rangeProperties[i]; range[prop] = null; } } var createBeforeAfterNodeSetter; WrappedRange = function(range) { if (!range) { throw new Error("Range must be specified"); } this.nativeRange = range; updateRangeProperties(this); }; DomRange.createPrototypeRange(WrappedRange, updateNativeRange, detach); rangeProto = WrappedRange.prototype; rangeProto.selectNode = function(node) { this.nativeRange.selectNode(node); updateRangeProperties(this); }; rangeProto.deleteContents = function() { this.nativeRange.deleteContents(); updateRangeProperties(this); }; rangeProto.extractContents = function() { var frag = this.nativeRange.extractContents(); updateRangeProperties(this); return frag; }; rangeProto.cloneContents = function() { return this.nativeRange.cloneContents(); }; // TODO: Until I can find a way to programmatically trigger the Firefox bug (apparently long-standing, still // present in 3.6.8) that throws "Index or size is negative or greater than the allowed amount" for // insertNode in some circumstances, all browsers will have to use the Rangy's own implementation of // insertNode, which works but is almost certainly slower than the native implementation. /* rangeProto.insertNode = function(node) { this.nativeRange.insertNode(node); updateRangeProperties(this); }; */ rangeProto.surroundContents = function(node) { this.nativeRange.surroundContents(node); updateRangeProperties(this); }; rangeProto.collapse = function(isStart) { this.nativeRange.collapse(isStart); updateRangeProperties(this); }; rangeProto.cloneRange = function() { return new WrappedRange(this.nativeRange.cloneRange()); }; rangeProto.refresh = function() { updateRangeProperties(this); }; rangeProto.toString = function() { return this.nativeRange.toString(); }; // Create test range and node for feature detection var testTextNode = document.createTextNode("test"); dom.getBody(document).appendChild(testTextNode); var range = document.createRange(); /*--------------------------------------------------------------------------------------------------------*/ // Test for Firefox 2 bug that prevents moving the start of a Range to a point after its current end and // correct for it range.setStart(testTextNode, 0); range.setEnd(testTextNode, 0); try { range.setStart(testTextNode, 1); canSetRangeStartAfterEnd = true; rangeProto.setStart = function(node, offset) { this.nativeRange.setStart(node, offset); updateRangeProperties(this); }; rangeProto.setEnd = function(node, offset) { this.nativeRange.setEnd(node, offset); updateRangeProperties(this); }; createBeforeAfterNodeSetter = function(name) { return function(node) { this.nativeRange[name](node); updateRangeProperties(this); }; }; } catch(ex) { canSetRangeStartAfterEnd = false; rangeProto.setStart = function(node, offset) { try { this.nativeRange.setStart(node, offset); } catch (ex) { this.nativeRange.setEnd(node, offset); this.nativeRange.setStart(node, offset); } updateRangeProperties(this); }; rangeProto.setEnd = function(node, offset) { try { this.nativeRange.setEnd(node, offset); } catch (ex) { this.nativeRange.setStart(node, offset); this.nativeRange.setEnd(node, offset); } updateRangeProperties(this); }; createBeforeAfterNodeSetter = function(name, oppositeName) { return function(node) { try { this.nativeRange[name](node); } catch (ex) { this.nativeRange[oppositeName](node); this.nativeRange[name](node); } updateRangeProperties(this); }; }; } rangeProto.setStartBefore = createBeforeAfterNodeSetter("setStartBefore", "setEndBefore"); rangeProto.setStartAfter = createBeforeAfterNodeSetter("setStartAfter", "setEndAfter"); rangeProto.setEndBefore = createBeforeAfterNodeSetter("setEndBefore", "setStartBefore"); rangeProto.setEndAfter = createBeforeAfterNodeSetter("setEndAfter", "setStartAfter"); /*--------------------------------------------------------------------------------------------------------*/ // Test for and correct Firefox 2 behaviour with selectNodeContents on text nodes: it collapses the range to // the 0th character of the text node range.selectNodeContents(testTextNode); if (range.startContainer == testTextNode && range.endContainer == testTextNode && range.startOffset == 0 && range.endOffset == testTextNode.length) { rangeProto.selectNodeContents = function(node) { this.nativeRange.selectNodeContents(node); updateRangeProperties(this); }; } else { rangeProto.selectNodeContents = function(node) { this.setStart(node, 0); this.setEnd(node, DomRange.getEndOffset(node)); }; } /*--------------------------------------------------------------------------------------------------------*/ // Test for WebKit bug that has the beahviour of compareBoundaryPoints round the wrong way for constants // START_TO_END and END_TO_START: https://bugs.webkit.org/show_bug.cgi?id=20738 range.selectNodeContents(testTextNode); range.setEnd(testTextNode, 3); var range2 = document.createRange(); range2.selectNodeContents(testTextNode); range2.setEnd(testTextNode, 4); range2.setStart(testTextNode, 2); if (range.compareBoundaryPoints(range.START_TO_END, range2) == -1 & range.compareBoundaryPoints(range.END_TO_START, range2) == 1) { // This is the wrong way round, so correct for it rangeProto.compareBoundaryPoints = function(type, range) { range = range.nativeRange || range; if (type == range.START_TO_END) { type = range.END_TO_START; } else if (type == range.END_TO_START) { type = range.START_TO_END; } return this.nativeRange.compareBoundaryPoints(type, range); }; } else { rangeProto.compareBoundaryPoints = function(type, range) { return this.nativeRange.compareBoundaryPoints(type, range.nativeRange || range); }; } /*--------------------------------------------------------------------------------------------------------*/ // Test for existence of createContextualFragment and delegate to it if it exists if (api.util.isHostMethod(range, "createContextualFragment")) { rangeProto.createContextualFragment = function(fragmentStr) { return this.nativeRange.createContextualFragment(fragmentStr); }; } /*--------------------------------------------------------------------------------------------------------*/ // Clean up dom.getBody(document).removeChild(testTextNode); range.detach(); range2.detach(); })(); api.createNativeRange = function(doc) { doc = doc || document; return doc.createRange(); }; } else if (api.features.implementsTextRange) { // This is a wrapper around a TextRange, providing full DOM Range functionality using rangy's DomRange as a // prototype WrappedRange = function(textRange) { this.textRange = textRange; this.refresh(); }; WrappedRange.prototype = new DomRange(document); WrappedRange.prototype.refresh = function() { var start, end; // TextRange's parentElement() method cannot be trusted. getTextRangeContainerElement() works around that. var rangeContainerElement = getTextRangeContainerElement(this.textRange); if (textRangeIsCollapsed(this.textRange)) { end = start = getTextRangeBoundaryPosition(this.textRange, rangeContainerElement, true, true); } else { start = getTextRangeBoundaryPosition(this.textRange, rangeContainerElement, true, false); end = getTextRangeBoundaryPosition(this.textRange, rangeContainerElement, false, false); } this.setStart(start.node, start.offset); this.setEnd(end.node, end.offset); }; DomRange.copyComparisonConstants(WrappedRange); // Add WrappedRange as the Range property of the global object to allow expression like Range.END_TO_END to work var globalObj = (function() { return this; })(); if (typeof globalObj.Range == "undefined") { globalObj.Range = WrappedRange; } api.createNativeRange = function(doc) { doc = doc || document; return doc.body.createTextRange(); }; } if (api.features.implementsTextRange) { WrappedRange.rangeToTextRange = function(range) { if (range.collapsed) { var tr = createBoundaryTextRange(new DomPosition(range.startContainer, range.startOffset), true); return tr; //return createBoundaryTextRange(new DomPosition(range.startContainer, range.startOffset), true); } else { var startRange = createBoundaryTextRange(new DomPosition(range.startContainer, range.startOffset), true); var endRange = createBoundaryTextRange(new DomPosition(range.endContainer, range.endOffset), false); var textRange = dom.getDocument(range.startContainer).body.createTextRange(); textRange.setEndPoint("StartToStart", startRange); textRange.setEndPoint("EndToEnd", endRange); return textRange; } }; } WrappedRange.prototype.getName = function() { return "WrappedRange"; }; api.WrappedRange = WrappedRange; api.createRange = function(doc) { doc = doc || document; return new WrappedRange(api.createNativeRange(doc)); }; api.createRangyRange = function(doc) { doc = doc || document; return new DomRange(doc); }; api.createIframeRange = function(iframeEl) { return api.createRange(dom.getIframeDocument(iframeEl)); }; api.createIframeRangyRange = function(iframeEl) { return api.createRangyRange(dom.getIframeDocument(iframeEl)); }; api.addCreateMissingNativeApiListener(function(win) { var doc = win.document; if (typeof doc.createRange == "undefined") { doc.createRange = function() { return api.createRange(this); }; } doc = win = null; }); });rangy.createModule("WrappedSelection", function(api, module) { // This will create a selection object wrapper that follows the Selection object found in the WHATWG draft DOM Range // spec (http://html5.org/specs/dom-range.html) api.requireModules( ["DomUtil", "DomRange", "WrappedRange"] ); api.config.checkSelectionRanges = true; var BOOLEAN = "boolean", windowPropertyName = "_rangySelection", dom = api.dom, util = api.util, DomRange = api.DomRange, WrappedRange = api.WrappedRange, DOMException = api.DOMException, DomPosition = dom.DomPosition, getSelection, selectionIsCollapsed, CONTROL = "Control"; function getWinSelection(winParam) { return (winParam || window).getSelection(); } function getDocSelection(winParam) { return (winParam || window).document.selection; } // Test for the Range/TextRange and Selection features required // Test for ability to retrieve selection var implementsWinGetSelection = api.util.isHostMethod(window, "getSelection"), implementsDocSelection = api.util.isHostObject(document, "selection"); var useDocumentSelection = implementsDocSelection && (!implementsWinGetSelection || api.config.preferTextRange); if (useDocumentSelection) { getSelection = getDocSelection; api.isSelectionValid = function(winParam) { var doc = (winParam || window).document, nativeSel = doc.selection; // Check whether the selection TextRange is actually contained within the correct document return (nativeSel.type != "None" || dom.getDocument(nativeSel.createRange().parentElement()) == doc); }; } else if (implementsWinGetSelection) { getSelection = getWinSelection; api.isSelectionValid = function() { return true; }; } else { module.fail("Neither document.selection or window.getSelection() detected."); } api.getNativeSelection = getSelection; var testSelection = getSelection(); var testRange = api.createNativeRange(document); var body = dom.getBody(document); // Obtaining a range from a selection var selectionHasAnchorAndFocus = util.areHostObjects(testSelection, ["anchorNode", "focusNode"] && util.areHostProperties(testSelection, ["anchorOffset", "focusOffset"])); api.features.selectionHasAnchorAndFocus = selectionHasAnchorAndFocus; // Test for existence of native selection extend() method var selectionHasExtend = util.isHostMethod(testSelection, "extend"); api.features.selectionHasExtend = selectionHasExtend; // Test if rangeCount exists var selectionHasRangeCount = (typeof testSelection.rangeCount == "number"); api.features.selectionHasRangeCount = selectionHasRangeCount; var selectionSupportsMultipleRanges = false; var collapsedNonEditableSelectionsSupported = true; if (util.areHostMethods(testSelection, ["addRange", "getRangeAt", "removeAllRanges"]) && typeof testSelection.rangeCount == "number" && api.features.implementsDomRange) { (function() { var iframe = document.createElement("iframe"); body.appendChild(iframe); var iframeDoc = dom.getIframeDocument(iframe); iframeDoc.open(); iframeDoc.write("<html><head></head><body>12</body></html>"); iframeDoc.close(); var sel = dom.getIframeWindow(iframe).getSelection(); var docEl = iframeDoc.documentElement; var iframeBody = docEl.lastChild, textNode = iframeBody.firstChild; // Test whether the native selection will allow a collapsed selection within a non-editable element var r1 = iframeDoc.createRange(); r1.setStart(textNode, 1); r1.collapse(true); sel.addRange(r1); collapsedNonEditableSelectionsSupported = (sel.rangeCount == 1); sel.removeAllRanges(); // Test whether the native selection is capable of supporting multiple ranges var r2 = r1.cloneRange(); r1.setStart(textNode, 0); r2.setEnd(textNode, 2); sel.addRange(r1); sel.addRange(r2); selectionSupportsMultipleRanges = (sel.rangeCount == 2); // Clean up r1.detach(); r2.detach(); body.removeChild(iframe); })(); } api.features.selectionSupportsMultipleRanges = selectionSupportsMultipleRanges; api.features.collapsedNonEditableSelectionsSupported = collapsedNonEditableSelectionsSupported; // ControlRanges var implementsControlRange = false, testControlRange; if (body && util.isHostMethod(body, "createControlRange")) { testControlRange = body.createControlRange(); if (util.areHostProperties(testControlRange, ["item", "add"])) { implementsControlRange = true; } } api.features.implementsControlRange = implementsControlRange; // Selection collapsedness if (selectionHasAnchorAndFocus) { selectionIsCollapsed = function(sel) { return sel.anchorNode === sel.focusNode && sel.anchorOffset === sel.focusOffset; }; } else { selectionIsCollapsed = function(sel) { return sel.rangeCount ? sel.getRangeAt(sel.rangeCount - 1).collapsed : false; }; } function updateAnchorAndFocusFromRange(sel, range, backwards) { var anchorPrefix = backwards ? "end" : "start", focusPrefix = backwards ? "start" : "end"; sel.anchorNode = range[anchorPrefix + "Container"]; sel.anchorOffset = range[anchorPrefix + "Offset"]; sel.focusNode = range[focusPrefix + "Container"]; sel.focusOffset = range[focusPrefix + "Offset"]; } function updateAnchorAndFocusFromNativeSelection(sel) { var nativeSel = sel.nativeSelection; sel.anchorNode = nativeSel.anchorNode; sel.anchorOffset = nativeSel.anchorOffset; sel.focusNode = nativeSel.focusNode; sel.focusOffset = nativeSel.focusOffset; } function updateEmptySelection(sel) { sel.anchorNode = sel.focusNode = null; sel.anchorOffset = sel.focusOffset = 0; sel.rangeCount = 0; sel.isCollapsed = true; sel._ranges.length = 0; } function getNativeRange(range) { var nativeRange; if (range instanceof DomRange) { nativeRange = range._selectionNativeRange; if (!nativeRange) { nativeRange = api.createNativeRange(dom.getDocument(range.startContainer)); nativeRange.setEnd(range.endContainer, range.endOffset); nativeRange.setStart(range.startContainer, range.startOffset); range._selectionNativeRange = nativeRange; range.attachListener("detach", function() { this._selectionNativeRange = null; }); } } else if (range instanceof WrappedRange) { nativeRange = range.nativeRange; } else if (api.features.implementsDomRange && (range instanceof dom.getWindow(range.startContainer).Range)) { nativeRange = range; } return nativeRange; } function rangeContainsSingleElement(rangeNodes) { if (!rangeNodes.length || rangeNodes[0].nodeType != 1) { return false; } for (var i = 1, len = rangeNodes.length; i < len; ++i) { if (!dom.isAncestorOf(rangeNodes[0], rangeNodes[i])) { return false; } } return true; } function getSingleElementFromRange(range) { var nodes = range.getNodes(); if (!rangeContainsSingleElement(nodes)) { throw new Error("getSingleElementFromRange: range " + range.inspect() + " did not consist of a single element"); } return nodes[0]; } function isTextRange(range) { return !!range && typeof range.text != "undefined"; } function updateFromTextRange(sel, range) { // Create a Range from the selected TextRange var wrappedRange = new WrappedRange(range); sel._ranges = [wrappedRange]; updateAnchorAndFocusFromRange(sel, wrappedRange, false); sel.rangeCount = 1; sel.isCollapsed = wrappedRange.collapsed; } function updateControlSelection(sel) { // Update the wrapped selection based on what's now in the native selection sel._ranges.length = 0; if (sel.docSelection.type == "None") { updateEmptySelection(sel); } else { var controlRange = sel.docSelection.createRange(); if (isTextRange(controlRange)) { // This case (where the selection type is "Control" and calling createRange() on the selection returns // a TextRange) can happen in IE 9. It happens, for example, when all elements in the selected // ControlRange have been removed from the ControlRange and removed from the document. updateFromTextRange(sel, controlRange); } else { sel.rangeCount = controlRange.length; var range, doc = dom.getDocument(controlRange.item(0)); for (var i = 0; i < sel.rangeCount; ++i) { range = api.createRange(doc); range.selectNode(controlRange.item(i)); sel._ranges.push(range); } sel.isCollapsed = sel.rangeCount == 1 && sel._ranges[0].collapsed; updateAnchorAndFocusFromRange(sel, sel._ranges[sel.rangeCount - 1], false); } } } function addRangeToControlSelection(sel, range) { var controlRange = sel.docSelection.createRange(); var rangeElement = getSingleElementFromRange(range); // Create a new ControlRange containing all the elements in the selected ControlRange plus the element // contained by the supplied range var doc = dom.getDocument(controlRange.item(0)); var newControlRange = dom.getBody(doc).createControlRange(); for (var i = 0, len = controlRange.length; i < len; ++i) { newControlRange.add(controlRange.item(i)); } try { newControlRange.add(rangeElement); } catch (ex) { throw new Error("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)"); } newControlRange.select(); // Update the wrapped selection based on what's now in the native selection updateControlSelection(sel); } var getSelectionRangeAt; if (util.isHostMethod(testSelection, "getRangeAt")) { getSelectionRangeAt = function(sel, index) { try { return sel.getRangeAt(index); } catch(ex) { return null; } }; } else if (selectionHasAnchorAndFocus) { getSelectionRangeAt = function(sel) { var doc = dom.getDocument(sel.anchorNode); var range = api.createRange(doc); range.setStart(sel.anchorNode, sel.anchorOffset); range.setEnd(sel.focusNode, sel.focusOffset); // Handle the case when the selection was selected backwards (from the end to the start in the // document) if (range.collapsed !== this.isCollapsed) { range.setStart(sel.focusNode, sel.focusOffset); range.setEnd(sel.anchorNode, sel.anchorOffset); } return range; }; } /** * @constructor */ function WrappedSelection(selection, docSelection, win) { this.nativeSelection = selection; this.docSelection = docSelection; this._ranges = []; this.win = win; this.refresh(); } api.getSelection = function(win) { win = win || window; var sel = win[windowPropertyName]; var nativeSel = getSelection(win), docSel = implementsDocSelection ? getDocSelection(win) : null; if (sel) { sel.nativeSelection = nativeSel; sel.docSelection = docSel; sel.refresh(win); } else { sel = new WrappedSelection(nativeSel, docSel, win); win[windowPropertyName] = sel; } return sel; }; api.getIframeSelection = function(iframeEl) { return api.getSelection(dom.getIframeWindow(iframeEl)); }; var selProto = WrappedSelection.prototype; function createControlSelection(sel, ranges) { // Ensure that the selection becomes of type "Control" var doc = dom.getDocument(ranges[0].startContainer); var controlRange = dom.getBody(doc).createControlRange(); for (var i = 0, el; i < rangeCount; ++i) { el = getSingleElementFromRange(ranges[i]); try { controlRange.add(el); } catch (ex) { throw new Error("setRanges(): Element within the one of the specified Ranges could not be added to control selection (does it have layout?)"); } } controlRange.select(); // Update the wrapped selection based on what's now in the native selection updateControlSelection(sel); } // Selecting a range if (!useDocumentSelection && selectionHasAnchorAndFocus && util.areHostMethods(testSelection, ["removeAllRanges", "addRange"])) { selProto.removeAllRanges = function() { this.nativeSelection.removeAllRanges(); updateEmptySelection(this); }; var addRangeBackwards = function(sel, range) { var doc = DomRange.getRangeDocument(range); var endRange = api.createRange(doc); endRange.collapseToPoint(range.endContainer, range.endOffset); sel.nativeSelection.addRange(getNativeRange(endRange)); sel.nativeSelection.extend(range.startContainer, range.startOffset); sel.refresh(); }; if (selectionHasRangeCount) { selProto.addRange = function(range, backwards) { if (implementsControlRange && implementsDocSelection && this.docSelection.type == CONTROL) { addRangeToControlSelection(this, range); } else { if (backwards && selectionHasExtend) { addRangeBackwards(this, range); } else { var previousRangeCount; if (selectionSupportsMultipleRanges) { previousRangeCount = this.rangeCount; } else { this.removeAllRanges(); previousRangeCount = 0; } this.nativeSelection.addRange(getNativeRange(range)); // Check whether adding the range was successful this.rangeCount = this.nativeSelection.rangeCount; if (this.rangeCount == previousRangeCount + 1) { // The range was added successfully // Check whether the range that we added to the selection is reflected in the last range extracted from // the selection if (api.config.checkSelectionRanges) { var nativeRange = getSelectionRangeAt(this.nativeSelection, this.rangeCount - 1); if (nativeRange && !DomRange.rangesEqual(nativeRange, range)) { // Happens in WebKit with, for example, a selection placed at the start of a text node range = new WrappedRange(nativeRange); } } this._ranges[this.rangeCount - 1] = range; updateAnchorAndFocusFromRange(this, range, selectionIsBackwards(this.nativeSelection)); this.isCollapsed = selectionIsCollapsed(this); } else { // The range was not added successfully. The simplest thing is to refresh this.refresh(); } } } }; } else { selProto.addRange = function(range, backwards) { if (backwards && selectionHasExtend) { addRangeBackwards(this, range); } else { this.nativeSelection.addRange(getNativeRange(range)); this.refresh(); } }; } selProto.setRanges = function(ranges) { if (implementsControlRange && ranges.length > 1) { createControlSelection(this, ranges); } else { this.removeAllRanges(); for (var i = 0, len = ranges.length; i < len; ++i) { this.addRange(ranges[i]); } } }; } else if (util.isHostMethod(testSelection, "empty") && util.isHostMethod(testRange, "select") && implementsControlRange && useDocumentSelection) { selProto.removeAllRanges = function() { // Added try/catch as fix for issue #21 try { this.docSelection.empty(); // Check for empty() not working (issue #24) if (this.docSelection.type != "None") { // Work around failure to empty a control selection by instead selecting a TextRange and then // calling empty() var doc; if (this.anchorNode) { doc = dom.getDocument(this.anchorNode); } else if (this.docSelection.type == CONTROL) { var controlRange = this.docSelection.createRange(); if (controlRange.length) { doc = dom.getDocument(controlRange.item(0)).body.createTextRange(); } } if (doc) { var textRange = doc.body.createTextRange(); textRange.select(); this.docSelection.empty(); } } } catch(ex) {} updateEmptySelection(this); }; selProto.addRange = function(range) { if (this.docSelection.type == CONTROL) { addRangeToControlSelection(this, range); } else { WrappedRange.rangeToTextRange(range).select(); this._ranges[0] = range; this.rangeCount = 1; this.isCollapsed = this._ranges[0].collapsed; updateAnchorAndFocusFromRange(this, range, false); } }; selProto.setRanges = function(ranges) { this.removeAllRanges(); var rangeCount = ranges.length; if (rangeCount > 1) { createControlSelection(this, ranges); } else if (rangeCount) { this.addRange(ranges[0]); } }; } else { module.fail("No means of selecting a Range or TextRange was found"); return false; } selProto.getRangeAt = function(index) { if (index < 0 || index >= this.rangeCount) { throw new DOMException("INDEX_SIZE_ERR"); } else { return this._ranges[index]; } }; var refreshSelection; if (useDocumentSelection) { refreshSelection = function(sel) { var range; if (api.isSelectionValid(sel.win)) { range = sel.docSelection.createRange(); } else { range = dom.getBody(sel.win.document).createTextRange(); range.collapse(true); } if (sel.docSelection.type == CONTROL) { updateControlSelection(sel); } else if (isTextRange(range)) { updateFromTextRange(sel, range); } else { updateEmptySelection(sel); } }; } else if (util.isHostMethod(testSelection, "getRangeAt") && typeof testSelection.rangeCount == "number") { refreshSelection = function(sel) { if (implementsControlRange && implementsDocSelection && sel.docSelection.type == CONTROL) { updateControlSelection(sel); } else { sel._ranges.length = sel.rangeCount = sel.nativeSelection.rangeCount; if (sel.rangeCount) { for (var i = 0, len = sel.rangeCount; i < len; ++i) { sel._ranges[i] = new api.WrappedRange(sel.nativeSelection.getRangeAt(i)); } updateAnchorAndFocusFromRange(sel, sel._ranges[sel.rangeCount - 1], selectionIsBackwards(sel.nativeSelection)); sel.isCollapsed = selectionIsCollapsed(sel); } else { updateEmptySelection(sel); } } }; } else if (selectionHasAnchorAndFocus && typeof testSelection.isCollapsed == BOOLEAN && typeof testRange.collapsed == BOOLEAN && api.features.implementsDomRange) { refreshSelection = function(sel) { var range, nativeSel = sel.nativeSelection; if (nativeSel.anchorNode) { range = getSelectionRangeAt(nativeSel, 0); sel._ranges = [range]; sel.rangeCount = 1; updateAnchorAndFocusFromNativeSelection(sel); sel.isCollapsed = selectionIsCollapsed(sel); } else { updateEmptySelection(sel); } }; } else { module.fail("No means of obtaining a Range or TextRange from the user's selection was found"); return false; } selProto.refresh = function(checkForChanges) { var oldRanges = checkForChanges ? this._ranges.slice(0) : null; refreshSelection(this); if (checkForChanges) { var i = oldRanges.length; if (i != this._ranges.length) { return false; } while (i--) { if (!DomRange.rangesEqual(oldRanges[i], this._ranges[i])) { return false; } } return true; } }; // Removal of a single range var removeRangeManually = function(sel, range) { var ranges = sel.getAllRanges(), removed = false; sel.removeAllRanges(); for (var i = 0, len = ranges.length; i < len; ++i) { if (removed || range !== ranges[i]) { sel.addRange(ranges[i]); } else { // According to the draft WHATWG Range spec, the same range may be added to the selection multiple // times. removeRange should only remove the first instance, so the following ensures only the first // instance is removed removed = true; } } if (!sel.rangeCount) { updateEmptySelection(sel); } }; if (implementsControlRange) { selProto.removeRange = function(range) { if (this.docSelection.type == CONTROL) { var controlRange = this.docSelection.createRange(); var rangeElement = getSingleElementFromRange(range); // Create a new ControlRange containing all the elements in the selected ControlRange minus the // element contained by the supplied range var doc = dom.getDocument(controlRange.item(0)); var newControlRange = dom.getBody(doc).createControlRange(); var el, removed = false; for (var i = 0, len = controlRange.length; i < len; ++i) { el = controlRange.item(i); if (el !== rangeElement || removed) { newControlRange.add(controlRange.item(i)); } else { removed = true; } } newControlRange.select(); // Update the wrapped selection based on what's now in the native selection updateControlSelection(this); } else { removeRangeManually(this, range); } }; } else { selProto.removeRange = function(range) { removeRangeManually(this, range); }; } // Detecting if a selection is backwards var selectionIsBackwards; if (!useDocumentSelection && selectionHasAnchorAndFocus && api.features.implementsDomRange) { selectionIsBackwards = function(sel) { var backwards = false; if (sel.anchorNode) { backwards = (dom.comparePoints(sel.anchorNode, sel.anchorOffset, sel.focusNode, sel.focusOffset) == 1); } return backwards; }; selProto.isBackwards = function() { return selectionIsBackwards(this); }; } else { selectionIsBackwards = selProto.isBackwards = function() { return false; }; } // Selection text // This is conformant to the new WHATWG DOM Range draft spec but differs from WebKit and Mozilla's implementation selProto.toString = function() { var rangeTexts = []; for (var i = 0, len = this.rangeCount; i < len; ++i) { rangeTexts[i] = "" + this._ranges[i]; } return rangeTexts.join(""); }; function assertNodeInSameDocument(sel, node) { if (sel.anchorNode && (dom.getDocument(sel.anchorNode) !== dom.getDocument(node))) { throw new DOMException("WRONG_DOCUMENT_ERR"); } } // No current browsers conform fully to the HTML 5 draft spec for this method, so Rangy's own method is always used selProto.collapse = function(node, offset) { assertNodeInSameDocument(this, node); var range = api.createRange(dom.getDocument(node)); range.collapseToPoint(node, offset); this.removeAllRanges(); this.addRange(range); this.isCollapsed = true; }; selProto.collapseToStart = function() { if (this.rangeCount) { var range = this._ranges[0]; this.collapse(range.startContainer, range.startOffset); } else { throw new DOMException("INVALID_STATE_ERR"); } }; selProto.collapseToEnd = function() { if (this.rangeCount) { var range = this._ranges[this.rangeCount - 1]; this.collapse(range.endContainer, range.endOffset); } else { throw new DOMException("INVALID_STATE_ERR"); } }; // The HTML 5 spec is very specific on how selectAllChildren should be implemented so the native implementation is // never used by Rangy. selProto.selectAllChildren = function(node) { assertNodeInSameDocument(this, node); var range = api.createRange(dom.getDocument(node)); range.selectNodeContents(node); this.removeAllRanges(); this.addRange(range); }; selProto.deleteFromDocument = function() { // Sepcial behaviour required for Control selections if (implementsControlRange && implementsDocSelection && this.docSelection.type == CONTROL) { var controlRange = this.docSelection.createRange(); var element; while (controlRange.length) { element = controlRange.item(0); controlRange.remove(element); element.parentNode.removeChild(element); } this.refresh(); } else if (this.rangeCount) { var ranges = this.getAllRanges(); this.removeAllRanges(); for (var i = 0, len = ranges.length; i < len; ++i) { ranges[i].deleteContents(); } // The HTML5 spec says nothing about what the selection should contain after calling deleteContents on each // range. Firefox moves the selection to where the final selected range was, so we emulate that this.addRange(ranges[len - 1]); } }; // The following are non-standard extensions selProto.getAllRanges = function() { return this._ranges.slice(0); }; selProto.setSingleRange = function(range) { this.setRanges( [range] ); }; selProto.containsNode = function(node, allowPartial) { for (var i = 0, len = this._ranges.length; i < len; ++i) { if (this._ranges[i].containsNode(node, allowPartial)) { return true; } } return false; }; selProto.toHtml = function() { var html = ""; if (this.rangeCount) { var container = DomRange.getRangeDocument(this._ranges[0]).createElement("div"); for (var i = 0, len = this._ranges.length; i < len; ++i) { container.appendChild(this._ranges[i].cloneContents()); } html = container.innerHTML; } return html; }; function inspect(sel) { var rangeInspects = []; var anchor = new DomPosition(sel.anchorNode, sel.anchorOffset); var focus = new DomPosition(sel.focusNode, sel.focusOffset); var name = (typeof sel.getName == "function") ? sel.getName() : "Selection"; if (typeof sel.rangeCount != "undefined") { for (var i = 0, len = sel.rangeCount; i < len; ++i) { rangeInspects[i] = DomRange.inspect(sel.getRangeAt(i)); } } return "[" + name + "(Ranges: " + rangeInspects.join(", ") + ")(anchor: " + anchor.inspect() + ", focus: " + focus.inspect() + "]"; } selProto.getName = function() { return "WrappedSelection"; }; selProto.inspect = function() { return inspect(this); }; selProto.detach = function() { this.win[windowPropertyName] = null; this.win = this.anchorNode = this.focusNode = null; }; WrappedSelection.inspect = inspect; api.Selection = WrappedSelection; api.selectionPrototype = selProto; api.addCreateMissingNativeApiListener(function(win) { if (typeof win.getSelection == "undefined") { win.getSelection = function() { return api.getSelection(this); }; } win = null; }); }); /* Base.js, version 1.1a Copyright 2006-2010, Dean Edwards License: http://www.opensource.org/licenses/mit-license.php */ var Base = function() { // dummy }; Base.extend = function(_instance, _static) { // subclass var extend = Base.prototype.extend; // build the prototype Base._prototyping = true; var proto = new this; extend.call(proto, _instance); proto.base = function() { // call this method from any other method to invoke that method's ancestor }; delete Base._prototyping; // create the wrapper for the constructor function //var constructor = proto.constructor.valueOf(); //-dean var constructor = proto.constructor; var klass = proto.constructor = function() { if (!Base._prototyping) { if (this._constructing || this.constructor == klass) { // instantiation this._constructing = true; constructor.apply(this, arguments); delete this._constructing; } else if (arguments[0] != null) { // casting return (arguments[0].extend || extend).call(arguments[0], proto); } } }; // build the class interface klass.ancestor = this; klass.extend = this.extend; klass.forEach = this.forEach; klass.implement = this.implement; klass.prototype = proto; klass.toString = this.toString; klass.valueOf = function(type) { //return (type == "object") ? klass : constructor; //-dean return (type == "object") ? klass : constructor.valueOf(); }; extend.call(klass, _static); // class initialisation if (typeof klass.init == "function") klass.init(); return klass; }; Base.prototype = { extend: function(source, value) { if (arguments.length > 1) { // extending with a name/value pair var ancestor = this[source]; if (ancestor && (typeof value == "function") && // overriding a method? // the valueOf() comparison is to avoid circular references (!ancestor.valueOf || ancestor.valueOf() != value.valueOf()) && /\bbase\b/.test(value)) { // get the underlying method var method = value.valueOf(); // override value = function() { var previous = this.base || Base.prototype.base; this.base = ancestor; var returnValue = method.apply(this, arguments); this.base = previous; return returnValue; }; // point to the underlying method value.valueOf = function(type) { return (type == "object") ? value : method; }; value.toString = Base.toString; } this[source] = value; } else if (source) { // extending with an object literal var extend = Base.prototype.extend; // if this object has a customised extend method then use it if (!Base._prototyping && typeof this != "function") { extend = this.extend || extend; } var proto = {toSource: null}; // do the "toString" and other methods manually var hidden = ["constructor", "toString", "valueOf"]; // if we are prototyping then include the constructor var i = Base._prototyping ? 0 : 1; while (key = hidden[i++]) { if (source[key] != proto[key]) { extend.call(this, key, source[key]); } } // copy each of the source object's properties to this object for (var key in source) { if (!proto[key]) extend.call(this, key, source[key]); } } return this; } }; // initialise Base = Base.extend({ constructor: function() { this.extend(arguments[0]); } }, { ancestor: Object, version: "1.1", forEach: function(object, block, context) { for (var key in object) { if (this.prototype[key] === undefined) { block.call(context, object[key], key, object); } } }, implement: function() { for (var i = 0; i < arguments.length; i++) { if (typeof arguments[i] == "function") { // if it's a function, call it arguments[i](this.prototype); } else { // add the interface using the extend method this.prototype.extend(arguments[i]); } } return this; }, toString: function() { return String(this.valueOf()); } });/** * Detect browser support for specific features */ wysihtml5.browser = (function() { var userAgent = navigator.userAgent, testElement = document.createElement("div"), // Browser sniffing is unfortunately needed since some behaviors are impossible to feature detect isIE = userAgent.indexOf("MSIE") !== -1 && userAgent.indexOf("Opera") === -1, isGecko = userAgent.indexOf("Gecko") !== -1 && userAgent.indexOf("KHTML") === -1, isWebKit = userAgent.indexOf("AppleWebKit/") !== -1, isChrome = userAgent.indexOf("Chrome/") !== -1, isOpera = userAgent.indexOf("Opera/") !== -1; function iosVersion(userAgent) { return ((/ipad|iphone|ipod/.test(userAgent) && userAgent.match(/ os (\d+).+? like mac os x/)) || [, 0])[1]; } return { // Static variable needed, publicly accessible, to be able override it in unit tests USER_AGENT: userAgent, /** * Exclude browsers that are not capable of displaying and handling * contentEditable as desired: * - iPhone, iPad (tested iOS 4.2.2) and Android (tested 2.2) refuse to make contentEditables focusable * - IE < 8 create invalid markup and crash randomly from time to time * * @return {Boolean} */ supported: function() { var userAgent = this.USER_AGENT.toLowerCase(), // Essential for making html elements editable hasContentEditableSupport = "contentEditable" in testElement, // Following methods are needed in order to interact with the contentEditable area hasEditingApiSupport = document.execCommand && document.queryCommandSupported && document.queryCommandState, // document selector apis are only supported by IE 8+, Safari 4+, Chrome and Firefox 3.5+ hasQuerySelectorSupport = document.querySelector && document.querySelectorAll, // contentEditable is unusable in mobile browsers (tested iOS 4.2.2, Android 2.2, Opera Mobile, WebOS 3.05) isIncompatibleMobileBrowser = (this.isIos() && iosVersion(userAgent) < 5) || userAgent.indexOf("opera mobi") !== -1 || userAgent.indexOf("hpwos/") !== -1; return hasContentEditableSupport && hasEditingApiSupport && hasQuerySelectorSupport && !isIncompatibleMobileBrowser; }, isTouchDevice: function() { return this.supportsEvent("touchmove"); }, isIos: function() { var userAgent = this.USER_AGENT.toLowerCase(); return userAgent.indexOf("webkit") !== -1 && userAgent.indexOf("mobile") !== -1; }, /** * Whether the browser supports sandboxed iframes * Currently only IE 6+ offers such feature <iframe security="restricted"> * * http://msdn.microsoft.com/en-us/library/ms534622(v=vs.85).aspx * http://blogs.msdn.com/b/ie/archive/2008/01/18/using-frames-more-securely.aspx * * HTML5 sandboxed iframes are still buggy and their DOM is not reachable from the outside (except when using postMessage) */ supportsSandboxedIframes: function() { return isIE; }, /** * IE6+7 throw a mixed content warning when the src of an iframe * is empty/unset or about:blank * window.querySelector is implemented as of IE8 */ throwsMixedContentWarningWhenIframeSrcIsEmpty: function() { return !("querySelector" in document); }, /** * Whether the caret is correctly displayed in contentEditable elements * Firefox sometimes shows a huge caret in the beginning after focusing */ displaysCaretInEmptyContentEditableCorrectly: function() { return !isGecko; }, /** * Opera and IE are the only browsers who offer the css value * in the original unit, thx to the currentStyle object * All other browsers provide the computed style in px via window.getComputedStyle */ hasCurrentStyleProperty: function() { return "currentStyle" in testElement; }, /** * Whether the browser inserts a <br> when pressing enter in a contentEditable element */ insertsLineBreaksOnReturn: function() { return isGecko; }, supportsPlaceholderAttributeOn: function(element) { return "placeholder" in element; }, supportsEvent: function(eventName) { return "on" + eventName in testElement || (function() { testElement.setAttribute("on" + eventName, "return;"); return typeof(testElement["on" + eventName]) === "function"; })(); }, /** * Opera doesn't correctly fire focus/blur events when clicking in- and outside of iframe */ supportsEventsInIframeCorrectly: function() { return !isOpera; }, /** * Chrome & Safari only fire the ondrop/ondragend/... events when the ondragover event is cancelled * with event.preventDefault * Firefox 3.6 fires those events anyway, but the mozilla doc says that the dragover/dragenter event needs * to be cancelled */ firesOnDropOnlyWhenOnDragOverIsCancelled: function() { return isWebKit || isGecko; }, /** * Whether the browser supports the event.dataTransfer property in a proper way */ supportsDataTransfer: function() { try { // Firefox doesn't support dataTransfer in a safe way, it doesn't strip script code in the html payload (like Chrome does) return isWebKit && (window.Clipboard || window.DataTransfer).prototype.getData; } catch(e) { return false; } }, /** * Everything below IE9 doesn't know how to treat HTML5 tags * * @param {Object} context The document object on which to check HTML5 support * * @example * wysihtml5.browser.supportsHTML5Tags(document); */ supportsHTML5Tags: function(context) { var element = context.createElement("div"), html5 = "<article>foo</article>"; element.innerHTML = html5; return element.innerHTML.toLowerCase() === html5; }, /** * Checks whether a document supports a certain queryCommand * In particular, Opera needs a reference to a document that has a contentEditable in it's dom tree * in oder to report correct results * * @param {Object} doc Document object on which to check for a query command * @param {String} command The query command to check for * @return {Boolean} * * @example * wysihtml5.browser.supportsCommand(document, "bold"); */ supportsCommand: (function() { // Following commands are supported but contain bugs in some browsers var buggyCommands = { // formatBlock fails with some tags (eg. <blockquote>) "formatBlock": isIE, // When inserting unordered or ordered lists in Firefox, Chrome or Safari, the current selection or line gets // converted into a list (<ul><li>...</li></ul>, <ol><li>...</li></ol>) // IE and Opera act a bit different here as they convert the entire content of the current block element into a list "insertUnorderedList": isIE || isOpera || isWebKit, "insertOrderedList": isIE || isOpera || isWebKit }; // Firefox throws errors for queryCommandSupported, so we have to build up our own object of supported commands var supported = { "insertHTML": isGecko }; return function(doc, command) { var isBuggy = buggyCommands[command]; if (!isBuggy) { // Firefox throws errors when invoking queryCommandSupported or queryCommandEnabled try { return doc.queryCommandSupported(command); } catch(e1) {} try { return doc.queryCommandEnabled(command); } catch(e2) { return !!supported[command]; } } return false; }; })(), /** * IE: URLs starting with: * www., http://, https://, ftp://, gopher://, mailto:, new:, snews:, telnet:, wasis:, file://, * nntp://, newsrc:, ldap://, ldaps://, outlook:, mic:// and url: * will automatically be auto-linked when either the user inserts them via copy&paste or presses the * space bar when the caret is directly after such an url. * This behavior cannot easily be avoided in IE < 9 since the logic is hardcoded in the mshtml.dll * (related blog post on msdn * http://blogs.msdn.com/b/ieinternals/archive/2009/09/17/prevent-automatic-hyperlinking-in-contenteditable-html.aspx). */ doesAutoLinkingInContentEditable: function() { return isIE; }, /** * As stated above, IE auto links urls typed into contentEditable elements * Since IE9 it's possible to prevent this behavior */ canDisableAutoLinking: function() { return this.supportsCommand(document, "AutoUrlDetect"); }, /** * IE leaves an empty paragraph in the contentEditable element after clearing it * Chrome/Safari sometimes an empty <div> */ clearsContentEditableCorrectly: function() { return isGecko || isOpera || isWebKit; }, /** * IE gives wrong results for getAttribute */ supportsGetAttributeCorrectly: function() { var td = document.createElement("td"); return td.getAttribute("rowspan") != "1"; }, /** * When clicking on images in IE, Opera and Firefox, they are selected, which makes it easy to interact with them. * Chrome and Safari both don't support this */ canSelectImagesInContentEditable: function() { return isGecko || isIE || isOpera; }, /** * When the caret is in an empty list (<ul><li>|</li></ul>) which is the first child in an contentEditable container * pressing backspace doesn't remove the entire list as done in other browsers */ clearsListsInContentEditableCorrectly: function() { return isGecko || isIE || isWebKit; }, /** * All browsers except Safari and Chrome automatically scroll the range/caret position into view */ autoScrollsToCaret: function() { return !isWebKit; }, /** * Check whether the browser automatically closes tags that don't need to be opened */ autoClosesUnclosedTags: function() { var clonedTestElement = testElement.cloneNode(false), returnValue, innerHTML; clonedTestElement.innerHTML = "<p><div></div>"; innerHTML = clonedTestElement.innerHTML.toLowerCase(); returnValue = innerHTML === "<p></p><div></div>" || innerHTML === "<p><div></div></p>"; // Cache result by overwriting current function this.autoClosesUnclosedTags = function() { return returnValue; }; return returnValue; }, /** * Whether the browser supports the native document.getElementsByClassName which returns live NodeLists */ supportsNativeGetElementsByClassName: function() { return String(document.getElementsByClassName).indexOf("[native code]") !== -1; }, /** * As of now (19.04.2011) only supported by Firefox 4 and Chrome * See https://developer.mozilla.org/en/DOM/Selection/modify */ supportsSelectionModify: function() { return "getSelection" in window && "modify" in window.getSelection(); }, /** * Whether the browser supports the classList object for fast className manipulation * See https://developer.mozilla.org/en/DOM/element.classList */ supportsClassList: function() { return "classList" in testElement; }, /** * Opera needs a white space after a <br> in order to position the caret correctly */ needsSpaceAfterLineBreak: function() { return isOpera; }, /** * Whether the browser supports the speech api on the given element * See http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/ * * @example * var input = document.createElement("input"); * if (wysihtml5.browser.supportsSpeechApiOn(input)) { * // ... * } */ supportsSpeechApiOn: function(input) { var chromeVersion = userAgent.match(/Chrome\/(\d+)/) || [, 0]; return chromeVersion[1] >= 11 && ("onwebkitspeechchange" in input || "speech" in input); }, /** * IE9 crashes when setting a getter via Object.defineProperty on XMLHttpRequest or XDomainRequest * See https://connect.microsoft.com/ie/feedback/details/650112 * or try the POC http://tifftiff.de/ie9_crash/ */ crashesWhenDefineProperty: function(property) { return isIE && (property === "XMLHttpRequest" || property === "XDomainRequest"); }, /** * IE is the only browser who fires the "focus" event not immediately when .focus() is called on an element */ doesAsyncFocus: function() { return isIE; }, /** * In IE it's impssible for the user and for the selection library to set the caret after an <img> when it's the lastChild in the document */ hasProblemsSettingCaretAfterImg: function() { return isIE; }, hasUndoInContextMenu: function() { return isGecko || isChrome || isOpera; } }; })();wysihtml5.lang.array = function(arr) { return { /** * Check whether a given object exists in an array * * @example * wysihtml5.lang.array([1, 2]).contains(1); * // => true */ contains: function(needle) { if (arr.indexOf) { return arr.indexOf(needle) !== -1; } else { for (var i=0, length=arr.length; i<length; i++) { if (arr[i] === needle) { return true; } } return false; } }, /** * Substract one array from another * * @example * wysihtml5.lang.array([1, 2, 3, 4]).without([3, 4]); * // => [1, 2] */ without: function(arrayToSubstract) { arrayToSubstract = wysihtml5.lang.array(arrayToSubstract); var newArr = [], i = 0, length = arr.length; for (; i<length; i++) { if (!arrayToSubstract.contains(arr[i])) { newArr.push(arr[i]); } } return newArr; }, /** * Return a clean native array * * Following will convert a Live NodeList to a proper Array * @example * var childNodes = wysihtml5.lang.array(document.body.childNodes).get(); */ get: function() { var i = 0, length = arr.length, newArray = []; for (; i<length; i++) { newArray.push(arr[i]); } return newArray; } }; };wysihtml5.lang.Dispatcher = Base.extend( /** @scope wysihtml5.lang.Dialog.prototype */ { observe: function(eventName, handler) { this.events = this.events || {}; this.events[eventName] = this.events[eventName] || []; this.events[eventName].push(handler); return this; }, on: function() { return this.observe.apply(this, wysihtml5.lang.array(arguments).get()); }, fire: function(eventName, payload) { this.events = this.events || {}; var handlers = this.events[eventName] || [], i = 0; for (; i<handlers.length; i++) { handlers[i].call(this, payload); } return this; }, stopObserving: function(eventName, handler) { this.events = this.events || {}; var i = 0, handlers, newHandlers; if (eventName) { handlers = this.events[eventName] || [], newHandlers = []; for (; i<handlers.length; i++) { if (handlers[i] !== handler && handler) { newHandlers.push(handlers[i]); } } this.events[eventName] = newHandlers; } else { // Clean up all events this.events = {}; } return this; } });wysihtml5.lang.object = function(obj) { return { /** * @example * wysihtml5.lang.object({ foo: 1, bar: 1 }).merge({ bar: 2, baz: 3 }).get(); * // => { foo: 1, bar: 2, baz: 3 } */ merge: function(otherObj) { for (var i in otherObj) { obj[i] = otherObj[i]; } return this; }, get: function() { return obj; }, /** * @example * wysihtml5.lang.object({ foo: 1 }).clone(); * // => { foo: 1 } */ clone: function() { var newObj = {}, i; for (i in obj) { newObj[i] = obj[i]; } return newObj; }, /** * @example * wysihtml5.lang.object([]).isArray(); * // => true */ isArray: function() { return Object.prototype.toString.call(obj) === "[object Array]"; } }; };(function() { var WHITE_SPACE_START = /^\s+/, WHITE_SPACE_END = /\s+$/; wysihtml5.lang.string = function(str) { str = String(str); return { /** * @example * wysihtml5.lang.string(" foo ").trim(); * // => "foo" */ trim: function() { return str.replace(WHITE_SPACE_START, "").replace(WHITE_SPACE_END, ""); }, /** * @example * wysihtml5.lang.string("Hello #{name}").interpolate({ name: "Christopher" }); * // => "Hello Christopher" */ interpolate: function(vars) { for (var i in vars) { str = this.replace("#{" + i + "}").by(vars[i]); } return str; }, /** * @example * wysihtml5.lang.string("Hello Tom").replace("Tom").with("Hans"); * // => "Hello Hans" */ replace: function(search) { return { by: function(replace) { return str.split(search).join(replace); } } } }; }; })();/** * Find urls in descendant text nodes of an element and auto-links them * Inspired by http://james.padolsey.com/javascript/find-and-replace-text-with-javascript/ * * @param {Element} element Container element in which to search for urls * * @example * <div id="text-container">Please click here: www.google.com</div> * <script>wysihtml5.dom.autoLink(document.getElementById("text-container"));</script> */ (function(wysihtml5) { var /** * Don't auto-link urls that are contained in the following elements: */ IGNORE_URLS_IN = wysihtml5.lang.array(["CODE", "PRE", "A", "SCRIPT", "HEAD", "TITLE", "STYLE"]), /** * revision 1: * /(\S+\.{1}[^\s\,\.\!]+)/g * * revision 2: * /(\b(((https?|ftp):\/\/)|(www\.))[-A-Z0-9+&@#\/%?=~_|!:,.;\[\]]*[-A-Z0-9+&@#\/%=~_|])/gim * * put this in the beginning if you don't wan't to match within a word * (^|[\>\(\{\[\s\>]) */ URL_REG_EXP = /((https?:\/\/|www\.)[^\s<]{3,})/gi, TRAILING_CHAR_REG_EXP = /([^\w\/\-](,?))$/i, MAX_DISPLAY_LENGTH = 100, BRACKETS = { ")": "(", "]": "[", "}": "{" }; function autoLink(element) { if (_hasParentThatShouldBeIgnored(element)) { return element; } if (element === element.ownerDocument.documentElement) { element = element.ownerDocument.body; } return _parseNode(element); } /** * This is basically a rebuild of * the rails auto_link_urls text helper */ function _convertUrlsToLinks(str) { return str.replace(URL_REG_EXP, function(match, url) { var punctuation = (url.match(TRAILING_CHAR_REG_EXP) || [])[1] || "", opening = BRACKETS[punctuation]; url = url.replace(TRAILING_CHAR_REG_EXP, ""); if (url.split(opening).length > url.split(punctuation).length) { url = url + punctuation; punctuation = ""; } var realUrl = url, displayUrl = url; if (url.length > MAX_DISPLAY_LENGTH) { displayUrl = displayUrl.substr(0, MAX_DISPLAY_LENGTH) + "..."; } // Add http prefix if necessary if (realUrl.substr(0, 4) === "www.") { realUrl = "http://" + realUrl; } return '<a href="' + realUrl + '">' + displayUrl + '</a>' + punctuation; }); } /** * Creates or (if already cached) returns a temp element * for the given document object */ function _getTempElement(context) { var tempElement = context._wysihtml5_tempElement; if (!tempElement) { tempElement = context._wysihtml5_tempElement = context.createElement("div"); } return tempElement; } /** * Replaces the original text nodes with the newly auto-linked dom tree */ function _wrapMatchesInNode(textNode) { var parentNode = textNode.parentNode, tempElement = _getTempElement(parentNode.ownerDocument); // We need to insert an empty/temporary <span /> to fix IE quirks // Elsewise IE would strip white space in the beginning tempElement.innerHTML = "<span></span>" + _convertUrlsToLinks(textNode.data); tempElement.removeChild(tempElement.firstChild); while (tempElement.firstChild) { // inserts tempElement.firstChild before textNode parentNode.insertBefore(tempElement.firstChild, textNode); } parentNode.removeChild(textNode); } function _hasParentThatShouldBeIgnored(node) { var nodeName; while (node.parentNode) { node = node.parentNode; nodeName = node.nodeName; if (IGNORE_URLS_IN.contains(nodeName)) { return true; } else if (nodeName === "body") { return false; } } return false; } function _parseNode(element) { if (IGNORE_URLS_IN.contains(element.nodeName)) { return; } if (element.nodeType === wysihtml5.TEXT_NODE && element.data.match(URL_REG_EXP)) { _wrapMatchesInNode(element); return; } var childNodes = wysihtml5.lang.array(element.childNodes).get(), childNodesLength = childNodes.length, i = 0; for (; i<childNodesLength; i++) { _parseNode(childNodes[i]); } return element; } wysihtml5.dom.autoLink = autoLink; // Reveal url reg exp to the outside wysihtml5.dom.autoLink.URL_REG_EXP = URL_REG_EXP; })(wysihtml5);(function(wysihtml5) { var supportsClassList = wysihtml5.browser.supportsClassList(), api = wysihtml5.dom; api.addClass = function(element, className) { if (supportsClassList) { return element.classList.add(className); } if (api.hasClass(element, className)) { return; } element.className += " " + className; }; api.removeClass = function(element, className) { if (supportsClassList) { return element.classList.remove(className); } element.className = element.className.replace(new RegExp("(^|\\s+)" + className + "(\\s+|$)"), " "); }; api.hasClass = function(element, className) { if (supportsClassList) { return element.classList.contains(className); } var elementClassName = element.className; return (elementClassName.length > 0 && (elementClassName == className || new RegExp("(^|\\s)" + className + "(\\s|$)").test(elementClassName))); }; })(wysihtml5); wysihtml5.dom.contains = (function() { var documentElement = document.documentElement; if (documentElement.contains) { return function(container, element) { if (element.nodeType !== wysihtml5.ELEMENT_NODE) { element = element.parentNode; } return container !== element && container.contains(element); }; } else if (documentElement.compareDocumentPosition) { return function(container, element) { // https://developer.mozilla.org/en/DOM/Node.compareDocumentPosition return !!(container.compareDocumentPosition(element) & 16); }; } })();/** * Converts an HTML fragment/element into a unordered/ordered list * * @param {Element} element The element which should be turned into a list * @param {String} listType The list type in which to convert the tree (either "ul" or "ol") * @return {Element} The created list * * @example * <!-- Assume the following dom: --> * <span id="pseudo-list"> * eminem<br> * dr. dre * <div>50 Cent</div> * </span> * * <script> * wysihtml5.dom.convertToList(document.getElementById("pseudo-list"), "ul"); * </script> * * <!-- Will result in: --> * <ul> * <li>eminem</li> * <li>dr. dre</li> * <li>50 Cent</li> * </ul> */ wysihtml5.dom.convertToList = (function() { function _createListItem(doc, list) { var listItem = doc.createElement("li"); list.appendChild(listItem); return listItem; } function _createList(doc, type) { return doc.createElement(type); } function convertToList(element, listType) { if (element.nodeName === "UL" || element.nodeName === "OL" || element.nodeName === "MENU") { // Already a list return element; } var doc = element.ownerDocument, list = _createList(doc, listType), lineBreaks = element.querySelectorAll("br"), lineBreaksLength = lineBreaks.length, childNodes, childNodesLength, childNode, lineBreak, parentNode, isBlockElement, isLineBreak, currentListItem, i; // First find <br> at the end of inline elements and move them behind them for (i=0; i<lineBreaksLength; i++) { lineBreak = lineBreaks[i]; while ((parentNode = lineBreak.parentNode) && parentNode !== element && parentNode.lastChild === lineBreak) { if (wysihtml5.dom.getStyle("display").from(parentNode) === "block") { parentNode.removeChild(lineBreak); break; } wysihtml5.dom.insert(lineBreak).after(lineBreak.parentNode); } } childNodes = wysihtml5.lang.array(element.childNodes).get(); childNodesLength = childNodes.length; for (i=0; i<childNodesLength; i++) { currentListItem = currentListItem || _createListItem(doc, list); childNode = childNodes[i]; isBlockElement = wysihtml5.dom.getStyle("display").from(childNode) === "block"; isLineBreak = childNode.nodeName === "BR"; if (isBlockElement) { // Append blockElement to current <li> if empty, otherwise create a new one currentListItem = currentListItem.firstChild ? _createListItem(doc, list) : currentListItem; currentListItem.appendChild(childNode); currentListItem = null; continue; } if (isLineBreak) { // Only create a new list item in the next iteration when the current one has already content currentListItem = currentListItem.firstChild ? null : currentListItem; continue; } currentListItem.appendChild(childNode); } element.parentNode.replaceChild(list, element); return list; } return convertToList; })();/** * Copy a set of attributes from one element to another * * @param {Array} attributesToCopy List of attributes which should be copied * @return {Object} Returns an object which offers the "from" method which can be invoked with the element where to * copy the attributes from., this again returns an object which provides a method named "to" which can be invoked * with the element where to copy the attributes to (see example) * * @example * var textarea = document.querySelector("textarea"), * div = document.querySelector("div[contenteditable=true]"), * anotherDiv = document.querySelector("div.preview"); * wysihtml5.dom.copyAttributes(["spellcheck", "value", "placeholder"]).from(textarea).to(div).andTo(anotherDiv); * */ wysihtml5.dom.copyAttributes = function(attributesToCopy) { return { from: function(elementToCopyFrom) { return { to: function(elementToCopyTo) { var attribute, i = 0, length = attributesToCopy.length; for (; i<length; i++) { attribute = attributesToCopy[i]; if (typeof(elementToCopyFrom[attribute]) !== "undefined" && elementToCopyFrom[attribute] !== "") { elementToCopyTo[attribute] = elementToCopyFrom[attribute]; } } return { andTo: arguments.callee }; } }; } }; };/** * Copy a set of styles from one element to another * Please note that this only works properly across browsers when the element from which to copy the styles * is in the dom * * Interesting article on how to copy styles * * @param {Array} stylesToCopy List of styles which should be copied * @return {Object} Returns an object which offers the "from" method which can be invoked with the element where to * copy the styles from., this again returns an object which provides a method named "to" which can be invoked * with the element where to copy the styles to (see example) * * @example * var textarea = document.querySelector("textarea"), * div = document.querySelector("div[contenteditable=true]"), * anotherDiv = document.querySelector("div.preview"); * wysihtml5.dom.copyStyles(["overflow-y", "width", "height"]).from(textarea).to(div).andTo(anotherDiv); * */ (function(dom) { /** * Mozilla, WebKit and Opera recalculate the computed width when box-sizing: boder-box; is set * So if an element has "width: 200px; -moz-box-sizing: border-box; border: 1px;" then * its computed css width will be 198px */ var BOX_SIZING_PROPERTIES = ["-webkit-box-sizing", "-moz-box-sizing", "-ms-box-sizing", "box-sizing"]; var shouldIgnoreBoxSizingBorderBox = function(element) { if (hasBoxSizingBorderBox(element)) { return parseInt(dom.getStyle("width").from(element), 10) < element.offsetWidth; } return false; }; var hasBoxSizingBorderBox = function(element) { var i = 0, length = BOX_SIZING_PROPERTIES.length; for (; i<length; i++) { if (dom.getStyle(BOX_SIZING_PROPERTIES[i]).from(element) === "border-box") { return BOX_SIZING_PROPERTIES[i]; } } }; dom.copyStyles = function(stylesToCopy) { return { from: function(element) { if (shouldIgnoreBoxSizingBorderBox(element)) { stylesToCopy = wysihtml5.lang.array(stylesToCopy).without(BOX_SIZING_PROPERTIES); } var cssText = "", length = stylesToCopy.length, i = 0, property; for (; i<length; i++) { property = stylesToCopy[i]; cssText += property + ":" + dom.getStyle(property).from(element) + ";"; } return { to: function(element) { dom.setStyles(cssText).on(element); return { andTo: arguments.callee }; } }; } }; }; })(wysihtml5.dom);/** * Event Delegation * * @example * wysihtml5.dom.delegate(document.body, "a", "click", function() { * // foo * }); */ (function(wysihtml5) { wysihtml5.dom.delegate = function(container, selector, eventName, handler) { return wysihtml5.dom.observe(container, eventName, function(event) { var target = event.target, match = wysihtml5.lang.array(container.querySelectorAll(selector)); while (target && target !== container) { if (match.contains(target)) { handler.call(target, event); break; } target = target.parentNode; } }); }; })(wysihtml5);/** * Returns the given html wrapped in a div element * * Fixing IE's inability to treat unknown elements (HTML5 section, article, ...) correctly * when inserted via innerHTML * * @param {String} html The html which should be wrapped in a dom element * @param {Obejct} [context] Document object of the context the html belongs to * * @example * wysihtml5.dom.getAsDom("<article>foo</article>"); */ wysihtml5.dom.getAsDom = (function() { var _innerHTMLShiv = function(html, context) { var tempElement = context.createElement("div"); tempElement.style.display = "none"; context.body.appendChild(tempElement); // IE throws an exception when trying to insert <frameset></frameset> via innerHTML try { tempElement.innerHTML = html; } catch(e) {} context.body.removeChild(tempElement); return tempElement; }; /** * Make sure IE supports HTML5 tags, which is accomplished by simply creating one instance of each element */ var _ensureHTML5Compatibility = function(context) { if (context._wysihtml5_supportsHTML5Tags) { return; } for (var i=0, length=HTML5_ELEMENTS.length; i<length; i++) { context.createElement(HTML5_ELEMENTS[i]); } context._wysihtml5_supportsHTML5Tags = true; }; /** * List of html5 tags * taken from http://simon.html5.org/html5-elements */ var HTML5_ELEMENTS = [ "abbr", "article", "aside", "audio", "bdi", "canvas", "command", "datalist", "details", "figcaption", "figure", "footer", "header", "hgroup", "keygen", "mark", "meter", "nav", "output", "progress", "rp", "rt", "ruby", "svg", "section", "source", "summary", "time", "track", "video", "wbr" ]; return function(html, context) { context = context || document; var tempElement; if (typeof(html) === "object" && html.nodeType) { tempElement = context.createElement("div"); tempElement.appendChild(html); } else if (wysihtml5.browser.supportsHTML5Tags(context)) { tempElement = context.createElement("div"); tempElement.innerHTML = html; } else { _ensureHTML5Compatibility(context); tempElement = _innerHTMLShiv(html, context); } return tempElement; }; })();/** * Walks the dom tree from the given node up until it finds a match * Designed for optimal performance. * * @param {Element} node The from which to check the parent nodes * @param {Object} matchingSet Object to match against (possible properties: nodeName, className, classRegExp) * @param {Number} [levels] How many parents should the function check up from the current node (defaults to 50) * @return {null|Element} Returns the first element that matched the desiredNodeName(s) * @example * var listElement = wysihtml5.dom.getParentElement(document.querySelector("li"), { nodeName: ["MENU", "UL", "OL"] }); * // ... or ... * var unorderedListElement = wysihtml5.dom.getParentElement(document.querySelector("li"), { nodeName: "UL" }); * // ... or ... * var coloredElement = wysihtml5.dom.getParentElement(myTextNode, { nodeName: "SPAN", className: "wysiwyg-color-red", classRegExp: /wysiwyg-color-[a-z]/g }); */ wysihtml5.dom.getParentElement = (function() { function _isSameNodeName(nodeName, desiredNodeNames) { if (!desiredNodeNames || !desiredNodeNames.length) { return true; } if (typeof(desiredNodeNames) === "string") { return nodeName === desiredNodeNames; } else { return wysihtml5.lang.array(desiredNodeNames).contains(nodeName); } } function _isElement(node) { return node.nodeType === wysihtml5.ELEMENT_NODE; } function _hasClassName(element, className, classRegExp) { var classNames = (element.className || "").match(classRegExp) || []; if (!className) { return !!classNames.length; } return classNames[classNames.length - 1] === className; } function _getParentElementWithNodeName(node, nodeName, levels) { while (levels-- && node && node.nodeName !== "BODY") { if (_isSameNodeName(node.nodeName, nodeName)) { return node; } node = node.parentNode; } return null; } function _getParentElementWithNodeNameAndClassName(node, nodeName, className, classRegExp, levels) { while (levels-- && node && node.nodeName !== "BODY") { if (_isElement(node) && _isSameNodeName(node.nodeName, nodeName) && _hasClassName(node, className, classRegExp)) { return node; } node = node.parentNode; } return null; } return function(node, matchingSet, levels) { levels = levels || 50; // Go max 50 nodes upwards from current node if (matchingSet.className || matchingSet.classRegExp) { return _getParentElementWithNodeNameAndClassName( node, matchingSet.nodeName, matchingSet.className, matchingSet.classRegExp, levels ); } else { return _getParentElementWithNodeName( node, matchingSet.nodeName, levels ); } }; })(); /** * Get element's style for a specific css property * * @param {Element} element The element on which to retrieve the style * @param {String} property The CSS property to retrieve ("float", "display", "text-align", ...) * * @example * wysihtml5.dom.getStyle("display").from(document.body); * // => "block" */ wysihtml5.dom.getStyle = (function() { var stylePropertyMapping = { "float": ("styleFloat" in document.createElement("div").style) ? "styleFloat" : "cssFloat" }, REG_EXP_CAMELIZE = /\-[a-z]/g; function camelize(str) { return str.replace(REG_EXP_CAMELIZE, function(match) { return match.charAt(1).toUpperCase(); }); } return function(property) { return { from: function(element) { if (element.nodeType !== wysihtml5.ELEMENT_NODE) { return; } var doc = element.ownerDocument, camelizedProperty = stylePropertyMapping[property] || camelize(property), style = element.style, currentStyle = element.currentStyle, styleValue = style[camelizedProperty]; if (styleValue) { return styleValue; } // currentStyle is no standard and only supported by Opera and IE but it has one important advantage over the standard-compliant // window.getComputedStyle, since it returns css property values in their original unit: // If you set an elements width to "50%", window.getComputedStyle will give you it's current width in px while currentStyle // gives you the original "50%". // Opera supports both, currentStyle and window.getComputedStyle, that's why checking for currentStyle should have higher prio if (currentStyle) { try { return currentStyle[camelizedProperty]; } catch(e) { //ie will occasionally fail for unknown reasons. swallowing exception } } var win = doc.defaultView || doc.parentWindow, needsOverflowReset = (property === "height" || property === "width") && element.nodeName === "TEXTAREA", originalOverflow, returnValue; if (win.getComputedStyle) { // Chrome and Safari both calculate a wrong width and height for textareas when they have scroll bars // therfore we remove and restore the scrollbar and calculate the value in between if (needsOverflowReset) { originalOverflow = style.overflow; style.overflow = "hidden"; } returnValue = win.getComputedStyle(element, null).getPropertyValue(property); if (needsOverflowReset) { style.overflow = originalOverflow || ""; } return returnValue; } } }; }; })();/** * High performant way to check whether an element with a specific tag name is in the given document * Optimized for being heavily executed * Unleashes the power of live node lists * * @param {Object} doc The document object of the context where to check * @param {String} tagName Upper cased tag name * @example * wysihtml5.dom.hasElementWithTagName(document, "IMG"); */ wysihtml5.dom.hasElementWithTagName = (function() { var LIVE_CACHE = {}, DOCUMENT_IDENTIFIER = 1; function _getDocumentIdentifier(doc) { return doc._wysihtml5_identifier || (doc._wysihtml5_identifier = DOCUMENT_IDENTIFIER++); } return function(doc, tagName) { var key = _getDocumentIdentifier(doc) + ":" + tagName, cacheEntry = LIVE_CACHE[key]; if (!cacheEntry) { cacheEntry = LIVE_CACHE[key] = doc.getElementsByTagName(tagName); } return cacheEntry.length > 0; }; })();/** * High performant way to check whether an element with a specific class name is in the given document * Optimized for being heavily executed * Unleashes the power of live node lists * * @param {Object} doc The document object of the context where to check * @param {String} tagName Upper cased tag name * @example * wysihtml5.dom.hasElementWithClassName(document, "foobar"); */ (function(wysihtml5) { var LIVE_CACHE = {}, DOCUMENT_IDENTIFIER = 1; function _getDocumentIdentifier(doc) { return doc._wysihtml5_identifier || (doc._wysihtml5_identifier = DOCUMENT_IDENTIFIER++); } wysihtml5.dom.hasElementWithClassName = function(doc, className) { // getElementsByClassName is not supported by IE<9 // but is sometimes mocked via library code (which then doesn't return live node lists) if (!wysihtml5.browser.supportsNativeGetElementsByClassName()) { return !!doc.querySelector("." + className); } var key = _getDocumentIdentifier(doc) + ":" + className, cacheEntry = LIVE_CACHE[key]; if (!cacheEntry) { cacheEntry = LIVE_CACHE[key] = doc.getElementsByClassName(className); } return cacheEntry.length > 0; }; })(wysihtml5); wysihtml5.dom.insert = function(elementToInsert) { return { after: function(element) { element.parentNode.insertBefore(elementToInsert, element.nextSibling); }, before: function(element) { element.parentNode.insertBefore(elementToInsert, element); }, into: function(element) { element.appendChild(elementToInsert); } }; };wysihtml5.dom.insertCSS = function(rules) { rules = rules.join("\n"); return { into: function(doc) { var head = doc.head || doc.getElementsByTagName("head")[0], styleElement = doc.createElement("style"); styleElement.type = "text/css"; if (styleElement.styleSheet) { styleElement.styleSheet.cssText = rules; } else { styleElement.appendChild(doc.createTextNode(rules)); } if (head) { head.appendChild(styleElement); } } }; };/** * Method to set dom events * * @example * wysihtml5.dom.observe(iframe.contentWindow.document.body, ["focus", "blur"], function() { ... }); */ wysihtml5.dom.observe = function(element, eventNames, handler) { eventNames = typeof(eventNames) === "string" ? [eventNames] : eventNames; var handlerWrapper, eventName, i = 0, length = eventNames.length; for (; i<length; i++) { eventName = eventNames[i]; if (element.addEventListener) { element.addEventListener(eventName, handler, false); } else { handlerWrapper = function(event) { if (!("target" in event)) { event.target = event.srcElement; } event.preventDefault = event.preventDefault || function() { this.returnValue = false; }; event.stopPropagation = event.stopPropagation || function() { this.cancelBubble = true; }; handler.call(element, event); }; element.attachEvent("on" + eventName, handlerWrapper); } } return { stop: function() { var eventName, i = 0, length = eventNames.length; for (; i<length; i++) { eventName = eventNames[i]; if (element.removeEventListener) { element.removeEventListener(eventName, handler, false); } else { element.detachEvent("on" + eventName, handlerWrapper); } } } }; }; /** * HTML Sanitizer * Rewrites the HTML based on given rules * * @param {Element|String} elementOrHtml HTML String to be sanitized OR element whose content should be sanitized * @param {Object} [rules] List of rules for rewriting the HTML, if there's no rule for an element it will * be converted to a "span". Each rule is a key/value pair where key is the tag to convert, and value the * desired substitution. * @param {Object} context Document object in which to parse the html, needed to sandbox the parsing * * @return {Element|String} Depends on the elementOrHtml parameter. When html then the sanitized html as string elsewise the element. * * @example * var userHTML = '<div id="foo" onclick="alert(1);"><p><font color="red">foo</font><script>alert(1);</script></p></div>'; * wysihtml5.dom.parse(userHTML, { * tags { * p: "div", // Rename p tags to div tags * font: "span" // Rename font tags to span tags * div: true, // Keep them, also possible (same result when passing: "div" or true) * script: undefined // Remove script elements * } * }); * // => <div><div><span>foo bar</span></div></div> * * var userHTML = '<table><tbody><tr><td>I'm a table!</td></tr></tbody></table>'; * wysihtml5.dom.parse(userHTML); * // => '<span><span><span><span>I'm a table!</span></span></span></span>' * * var userHTML = '<div>foobar<br>foobar</div>'; * wysihtml5.dom.parse(userHTML, { * tags: { * div: undefined, * br: true * } * }); * // => '' * * var userHTML = '<div class="red">foo</div><div class="pink">bar</div>'; * wysihtml5.dom.parse(userHTML, { * classes: { * red: 1, * green: 1 * }, * tags: { * div: { * rename_tag: "p" * } * } * }); * // => '<p class="red">foo</p><p>bar</p>' */ wysihtml5.dom.parse = (function() { /** * It's not possible to use a XMLParser/DOMParser as HTML5 is not always well-formed XML * new DOMParser().parseFromString('<img src="foo.gif">') will cause a parseError since the * node isn't closed * * Therefore we've to use the browser's ordinary HTML parser invoked by setting innerHTML. */ var NODE_TYPE_MAPPING = { "1": _handleElement, "3": _handleText }, // Rename unknown tags to this DEFAULT_NODE_NAME = "span", WHITE_SPACE_REG_EXP = /\s+/, defaultRules = { tags: {}, classes: {} }, currentRules = {}; /** * Iterates over all childs of the element, recreates them, appends them into a document fragment * which later replaces the entire body content */ function parse(elementOrHtml, rules, context, cleanUp) { wysihtml5.lang.object(currentRules).merge(defaultRules).merge(rules).get(); context = context || elementOrHtml.ownerDocument || document; var fragment = context.createDocumentFragment(), isString = typeof(elementOrHtml) === "string", element, newNode, firstChild; if (isString) { element = wysihtml5.dom.getAsDom(elementOrHtml, context); } else { element = elementOrHtml; } while (element.firstChild) { firstChild = element.firstChild; element.removeChild(firstChild); newNode = _convert(firstChild, cleanUp); if (newNode) { fragment.appendChild(newNode); } } // Clear element contents element.innerHTML = ""; // Insert new DOM tree element.appendChild(fragment); return isString ? wysihtml5.quirks.getCorrectInnerHTML(element) : element; } function _convert(oldNode, cleanUp) { var oldNodeType = oldNode.nodeType, oldChilds = oldNode.childNodes, oldChildsLength = oldChilds.length, newNode, method = NODE_TYPE_MAPPING[oldNodeType], i = 0; newNode = method && method(oldNode); if (!newNode) { return null; } for (i=0; i<oldChildsLength; i++) { newChild = _convert(oldChilds[i], cleanUp); if (newChild) { newNode.appendChild(newChild); } } // Cleanup senseless <span> elements if (cleanUp && newNode.childNodes.length <= 1 && newNode.nodeName.toLowerCase() === DEFAULT_NODE_NAME && !newNode.attributes.length) { return newNode.firstChild; } return newNode; } function _handleElement(oldNode) { var rule, newNode, endTag, tagRules = currentRules.tags, nodeName = oldNode.nodeName.toLowerCase(), scopeName = oldNode.scopeName; /** * We already parsed that element * ignore it! (yes, this sometimes happens in IE8 when the html is invalid) */ if (oldNode._wysihtml5) { return null; } oldNode._wysihtml5 = 1; if (oldNode.className === "wysihtml5-temp") { return null; } /** * IE is the only browser who doesn't include the namespace in the * nodeName, that's why we have to prepend it by ourselves * scopeName is a proprietary IE feature * read more here http://msdn.microsoft.com/en-us/library/ms534388(v=vs.85).aspx */ if (scopeName && scopeName != "HTML") { nodeName = scopeName + ":" + nodeName; } /** * Repair node * IE is a bit bitchy when it comes to invalid nested markup which includes unclosed tags * A <p> doesn't need to be closed according HTML4-5 spec, we simply replace it with a <div> to preserve its content and layout */ if ("outerHTML" in oldNode) { if (!wysihtml5.browser.autoClosesUnclosedTags() && oldNode.nodeName === "P" && oldNode.outerHTML.slice(-4).toLowerCase() !== "</p>") { nodeName = "div"; } } if (nodeName in tagRules) { rule = tagRules[nodeName]; if (!rule || rule.remove) { return null; } rule = typeof(rule) === "string" ? { rename_tag: rule } : rule; } else if (oldNode.firstChild) { rule = { rename_tag: DEFAULT_NODE_NAME }; } else { // Remove empty unknown elements return null; } newNode = oldNode.ownerDocument.createElement(rule.rename_tag || nodeName); _handleAttributes(oldNode, newNode, rule); oldNode = null; return newNode; } function _handleAttributes(oldNode, newNode, rule) { var attributes = {}, // fresh new set of attributes to set on newNode setClass = rule.set_class, // classes to set addClass = rule.add_class, // add classes based on existing attributes setAttributes = rule.set_attributes, // attributes to set on the current node checkAttributes = rule.check_attributes, // check/convert values of attributes allowedClasses = currentRules.classes, i = 0, classes = [], newClasses = [], newUniqueClasses = [], oldClasses = [], classesLength, newClassesLength, currentClass, newClass, attributeName, newAttributeValue, method; if (setAttributes) { attributes = wysihtml5.lang.object(setAttributes).clone(); } if (checkAttributes) { for (attributeName in checkAttributes) { method = attributeCheckMethods[checkAttributes[attributeName]]; if (!method) { continue; } newAttributeValue = method(_getAttribute(oldNode, attributeName)); if (typeof(newAttributeValue) === "string") { attributes[attributeName] = newAttributeValue; } } } if (setClass) { classes.push(setClass); } if (addClass) { for (attributeName in addClass) { method = addClassMethods[addClass[attributeName]]; if (!method) { continue; } newClass = method(_getAttribute(oldNode, attributeName)); if (typeof(newClass) === "string") { classes.push(newClass); } } } // make sure that wysihtml5 temp class doesn't get stripped out allowedClasses["_wysihtml5-temp-placeholder"] = 1; // add old classes last oldClasses = oldNode.getAttribute("class"); if (oldClasses) { classes = classes.concat(oldClasses.split(WHITE_SPACE_REG_EXP)); } classesLength = classes.length; for (; i<classesLength; i++) { currentClass = classes[i]; if (allowedClasses[currentClass]) { newClasses.push(currentClass); } } // remove duplicate entries and preserve class specificity newClassesLength = newClasses.length; while (newClassesLength--) { currentClass = newClasses[newClassesLength]; if (!wysihtml5.lang.array(newUniqueClasses).contains(currentClass)) { newUniqueClasses.unshift(currentClass); } } if (newUniqueClasses.length) { attributes["class"] = newUniqueClasses.join(" "); } // set attributes on newNode for (attributeName in attributes) { // Setting attributes can cause a js error in IE under certain circumstances // eg. on a <img> under https when it's new attribute value is non-https // TODO: Investigate this further and check for smarter handling try { newNode.setAttribute(attributeName, attributes[attributeName]); } catch(e) {} } // IE8 sometimes loses the width/height attributes when those are set before the "src" // so we make sure to set them again if (attributes.src) { if (typeof(attributes.width) !== "undefined") { newNode.setAttribute("width", attributes.width); } if (typeof(attributes.height) !== "undefined") { newNode.setAttribute("height", attributes.height); } } } /** * IE gives wrong results for hasAttribute/getAttribute, for example: * var td = document.createElement("td"); * td.getAttribute("rowspan"); // => "1" in IE * * Therefore we have to check the element's outerHTML for the attribute */ var HAS_GET_ATTRIBUTE_BUG = !wysihtml5.browser.supportsGetAttributeCorrectly(); function _getAttribute(node, attributeName) { attributeName = attributeName.toLowerCase(); var nodeName = node.nodeName; if (nodeName == "IMG" && attributeName == "src" && _isLoadedImage(node) === true) { // Get 'src' attribute value via object property since this will always contain the // full absolute url (http://...) // this fixes a very annoying bug in firefox (ver 3.6 & 4) and IE 8 where images copied from the same host // will have relative paths, which the sanitizer strips out (see attributeCheckMethods.url) return node.src; } else if (HAS_GET_ATTRIBUTE_BUG && "outerHTML" in node) { // Don't trust getAttribute/hasAttribute in IE 6-8, instead check the element's outerHTML var outerHTML = node.outerHTML.toLowerCase(), // TODO: This might not work for attributes without value: <input disabled> hasAttribute = outerHTML.indexOf(" " + attributeName + "=") != -1; return hasAttribute ? node.getAttribute(attributeName) : null; } else{ return node.getAttribute(attributeName); } } /** * Check whether the given node is a proper loaded image * FIXME: Returns undefined when unknown (Chrome, Safari) */ function _isLoadedImage(node) { try { return node.complete && !node.mozMatchesSelector(":-moz-broken"); } catch(e) { if (node.complete && node.readyState === "complete") { return true; } } } function _handleText(oldNode) { return oldNode.ownerDocument.createTextNode(oldNode.data); } // ------------ attribute checks ------------ \\ var attributeCheckMethods = { url: (function() { var REG_EXP = /^https?:\/\//i; return function(attributeValue) { if (!attributeValue || !attributeValue.match(REG_EXP)) { return null; } return attributeValue.replace(REG_EXP, function(match) { return match.toLowerCase(); }); }; })(), alt: (function() { var REG_EXP = /[^ a-z0-9_\-]/gi; return function(attributeValue) { if (!attributeValue) { return ""; } return attributeValue.replace(REG_EXP, ""); }; })(), numbers: (function() { var REG_EXP = /\D/g; return function(attributeValue) { attributeValue = (attributeValue || "").replace(REG_EXP, ""); return attributeValue || null; }; })() }; // ------------ class converter (converts an html attribute to a class name) ------------ \\ var addClassMethods = { align_img: (function() { var mapping = { left: "wysiwyg-float-left", right: "wysiwyg-float-right" }; return function(attributeValue) { return mapping[String(attributeValue).toLowerCase()]; }; })(), align_text: (function() { var mapping = { left: "wysiwyg-text-align-left", right: "wysiwyg-text-align-right", center: "wysiwyg-text-align-center", justify: "wysiwyg-text-align-justify" }; return function(attributeValue) { return mapping[String(attributeValue).toLowerCase()]; }; })(), clear_br: (function() { var mapping = { left: "wysiwyg-clear-left", right: "wysiwyg-clear-right", both: "wysiwyg-clear-both", all: "wysiwyg-clear-both" }; return function(attributeValue) { return mapping[String(attributeValue).toLowerCase()]; }; })(), size_font: (function() { var mapping = { "1": "wysiwyg-font-size-xx-small", "2": "wysiwyg-font-size-small", "3": "wysiwyg-font-size-medium", "4": "wysiwyg-font-size-large", "5": "wysiwyg-font-size-x-large", "6": "wysiwyg-font-size-xx-large", "7": "wysiwyg-font-size-xx-large", "-": "wysiwyg-font-size-smaller", "+": "wysiwyg-font-size-larger" }; return function(attributeValue) { return mapping[String(attributeValue).charAt(0)]; }; })() }; return parse; })();/** * Checks for empty text node childs and removes them * * @param {Element} node The element in which to cleanup * @example * wysihtml5.dom.removeEmptyTextNodes(element); */ wysihtml5.dom.removeEmptyTextNodes = function(node) { var childNode, childNodes = wysihtml5.lang.array(node.childNodes).get(), childNodesLength = childNodes.length, i = 0; for (; i<childNodesLength; i++) { childNode = childNodes[i]; if (childNode.nodeType === wysihtml5.TEXT_NODE && childNode.data === "") { childNode.parentNode.removeChild(childNode); } } }; /** * Renames an element (eg. a <div> to a <p>) and keeps its childs * * @param {Element} element The list element which should be renamed * @param {Element} newNodeName The desired tag name * * @example * <!-- Assume the following dom: --> * <ul id="list"> * <li>eminem</li> * <li>dr. dre</li> * <li>50 Cent</li> * </ul> * * <script> * wysihtml5.dom.renameElement(document.getElementById("list"), "ol"); * </script> * * <!-- Will result in: --> * <ol> * <li>eminem</li> * <li>dr. dre</li> * <li>50 Cent</li> * </ol> */ wysihtml5.dom.renameElement = function(element, newNodeName) { var newElement = element.ownerDocument.createElement(newNodeName), firstChild; while (firstChild = element.firstChild) { newElement.appendChild(firstChild); } wysihtml5.dom.copyAttributes(["align", "className"]).from(element).to(newElement); element.parentNode.replaceChild(newElement, element); return newElement; };/** * Takes an element, removes it and replaces it with it's childs * * @param {Object} node The node which to replace with it's child nodes * @example * <div id="foo"> * <span>hello</span> * </div> * <script> * // Remove #foo and replace with it's children * wysihtml5.dom.replaceWithChildNodes(document.getElementById("foo")); * </script> */ wysihtml5.dom.replaceWithChildNodes = function(node) { if (!node.parentNode) { return; } if (!node.firstChild) { node.parentNode.removeChild(node); return; } var fragment = node.ownerDocument.createDocumentFragment(); while (node.firstChild) { fragment.appendChild(node.firstChild); } node.parentNode.replaceChild(fragment, node); node = fragment = null; }; /** * Unwraps an unordered/ordered list * * @param {Element} element The list element which should be unwrapped * * @example * <!-- Assume the following dom: --> * <ul id="list"> * <li>eminem</li> * <li>dr. dre</li> * <li>50 Cent</li> * </ul> * * <script> * wysihtml5.dom.resolveList(document.getElementById("list")); * </script> * * <!-- Will result in: --> * eminem<br> * dr. dre<br> * 50 Cent<br> */ (function(dom) { function _isBlockElement(node) { return dom.getStyle("display").from(node) === "block"; } function _isLineBreak(node) { return node.nodeName === "BR"; } function _appendLineBreak(element) { var lineBreak = element.ownerDocument.createElement("br"); element.appendChild(lineBreak); } function resolveList(list) { if (list.nodeName !== "MENU" && list.nodeName !== "UL" && list.nodeName !== "OL") { return; } var doc = list.ownerDocument, fragment = doc.createDocumentFragment(), previousSibling = list.previousElementSibling || list.previousSibling, firstChild, lastChild, isLastChild, shouldAppendLineBreak, listItem; if (previousSibling && !_isBlockElement(previousSibling)) { _appendLineBreak(fragment); } while (listItem = list.firstChild) { lastChild = listItem.lastChild; while (firstChild = listItem.firstChild) { isLastChild = firstChild === lastChild; // This needs to be done before appending it to the fragment, as it otherwise will loose style information shouldAppendLineBreak = isLastChild && !_isBlockElement(firstChild) && !_isLineBreak(firstChild); fragment.appendChild(firstChild); if (shouldAppendLineBreak) { _appendLineBreak(fragment); } } listItem.parentNode.removeChild(listItem); } list.parentNode.replaceChild(fragment, list); } dom.resolveList = resolveList; })(wysihtml5.dom);/** * Sandbox for executing javascript, parsing css styles and doing dom operations in a secure way * * Browser Compatibility: * - Secure in MSIE 6+, but only when the user hasn't made changes to his security level "restricted" * - Partially secure in other browsers (Firefox, Opera, Safari, Chrome, ...) * * Please note that this class can't benefit from the HTML5 sandbox attribute for the following reasons: * - sandboxing doesn't work correctly with inlined content (src="javascript:'<html>...</html>'") * - sandboxing of physical documents causes that the dom isn't accessible anymore from the outside (iframe.contentWindow, ...) * - setting the "allow-same-origin" flag would fix that, but then still javascript and dom events refuse to fire * - therefore the "allow-scripts" flag is needed, which then would deactivate any security, as the js executed inside the iframe * can do anything as if the sandbox attribute wasn't set * * @param {Function} [readyCallback] Method that gets invoked when the sandbox is ready * @param {Object} [config] Optional parameters * * @example * new wysihtml5.dom.Sandbox(function(sandbox) { * sandbox.getWindow().document.body.innerHTML = '<img src=foo.gif onerror="alert(document.cookie)">'; * }); */ (function(wysihtml5) { var /** * Default configuration */ doc = document, /** * Properties to unset/protect on the window object */ windowProperties = [ "parent", "top", "opener", "frameElement", "frames", "localStorage", "globalStorage", "sessionStorage", "indexedDB" ], /** * Properties on the window object which are set to an empty function */ windowProperties2 = [ "open", "close", "openDialog", "showModalDialog", "alert", "confirm", "prompt", "openDatabase", "postMessage", "XMLHttpRequest", "XDomainRequest" ], /** * Properties to unset/protect on the document object */ documentProperties = [ "referrer", "write", "open", "close" ]; wysihtml5.dom.Sandbox = Base.extend( /** @scope wysihtml5.dom.Sandbox.prototype */ { constructor: function(readyCallback, config) { this.callback = readyCallback || wysihtml5.EMPTY_FUNCTION; this.config = wysihtml5.lang.object({}).merge(config).get(); this.iframe = this._createIframe(); }, insertInto: function(element) { if (typeof(element) === "string") { element = doc.getElementById(element); } element.appendChild(this.iframe); }, getIframe: function() { return this.iframe; }, getWindow: function() { this._readyError(); }, getDocument: function() { this._readyError(); }, destroy: function() { var iframe = this.getIframe(); iframe.parentNode.removeChild(iframe); }, _readyError: function() { throw new Error("wysihtml5.Sandbox: Sandbox iframe isn't loaded yet"); }, /** * Creates the sandbox iframe * * Some important notes: * - We can't use HTML5 sandbox for now: * setting it causes that the iframe's dom can't be accessed from the outside * Therefore we need to set the "allow-same-origin" flag which enables accessing the iframe's dom * But then there's another problem, DOM events (focus, blur, change, keypress, ...) aren't fired. * In order to make this happen we need to set the "allow-scripts" flag. * A combination of allow-scripts and allow-same-origin is almost the same as setting no sandbox attribute at all. * - Chrome & Safari, doesn't seem to support sandboxing correctly when the iframe's html is inlined (no physical document) * - IE needs to have the security="restricted" attribute set before the iframe is * inserted into the dom tree * - Believe it or not but in IE "security" in document.createElement("iframe") is false, even * though it supports it * - When an iframe has security="restricted", in IE eval() & execScript() don't work anymore * - IE doesn't fire the onload event when the content is inlined in the src attribute, therefore we rely * on the onreadystatechange event */ _createIframe: function() { var that = this, iframe = doc.createElement("iframe"); iframe.className = "wysihtml5-sandbox"; wysihtml5.dom.setAttributes({ "security": "restricted", "allowtransparency": "true", "frameborder": 0, "width": 0, "height": 0, "marginwidth": 0, "marginheight": 0 }).on(iframe); // Setting the src like this prevents ssl warnings in IE6 if (wysihtml5.browser.throwsMixedContentWarningWhenIframeSrcIsEmpty()) { iframe.src = "javascript:'<html></html>'"; } iframe.onload = function() { iframe.onreadystatechange = iframe.onload = null; that._onLoadIframe(iframe); }; iframe.onreadystatechange = function() { if (/loaded|complete/.test(iframe.readyState)) { iframe.onreadystatechange = iframe.onload = null; that._onLoadIframe(iframe); } }; return iframe; }, /** * Callback for when the iframe has finished loading */ _onLoadIframe: function(iframe) { // don't resume when the iframe got unloaded (eg. by removing it from the dom) if (!wysihtml5.dom.contains(doc.documentElement, iframe)) { return; } var that = this, iframeWindow = iframe.contentWindow, iframeDocument = iframe.contentWindow.document, charset = doc.characterSet || doc.charset || "utf-8", sandboxHtml = this._getHtml({ charset: charset, stylesheets: this.config.stylesheets }); // Create the basic dom tree including proper DOCTYPE and charset iframeDocument.open("text/html", "replace"); iframeDocument.write(sandboxHtml); iframeDocument.close(); this.getWindow = function() { return iframe.contentWindow; }; this.getDocument = function() { return iframe.contentWindow.document; }; // Catch js errors and pass them to the parent's onerror event // addEventListener("error") doesn't work properly in some browsers // TODO: apparently this doesn't work in IE9! iframeWindow.onerror = function(errorMessage, fileName, lineNumber) { throw new Error("wysihtml5.Sandbox: " + errorMessage, fileName, lineNumber); }; if (!wysihtml5.browser.supportsSandboxedIframes()) { // Unset a bunch of sensitive variables // Please note: This isn't hack safe! // It more or less just takes care of basic attacks and prevents accidental theft of sensitive information // IE is secure though, which is the most important thing, since IE is the only browser, who // takes over scripts & styles into contentEditable elements when copied from external websites // or applications (Microsoft Word, ...) var i, length; for (i=0, length=windowProperties.length; i<length; i++) { this._unset(iframeWindow, windowProperties[i]); } for (i=0, length=windowProperties2.length; i<length; i++) { this._unset(iframeWindow, windowProperties2[i], wysihtml5.EMPTY_FUNCTION); } for (i=0, length=documentProperties.length; i<length; i++) { this._unset(iframeDocument, documentProperties[i]); } // This doesn't work in Safari 5 // See http://stackoverflow.com/questions/992461/is-it-possible-to-override-document-cookie-in-webkit this._unset(iframeDocument, "cookie", "", true); } this.loaded = true; // Trigger the callback setTimeout(function() { that.callback(that); }, 0); }, _getHtml: function(templateVars) { var stylesheets = templateVars.stylesheets, html = "", i = 0, length; stylesheets = typeof(stylesheets) === "string" ? [stylesheets] : stylesheets; if (stylesheets) { length = stylesheets.length; for (; i<length; i++) { html += '<link rel="stylesheet" href="' + stylesheets[i] + '">'; } } templateVars.stylesheets = html; return wysihtml5.lang.string( '<!DOCTYPE html><html><head>' + '<meta charset="#{charset}">#{stylesheets}</head>' + '<body></body></html>' ).interpolate(templateVars); }, /** * Method to unset/override existing variables * @example * // Make cookie unreadable and unwritable * this._unset(document, "cookie", "", true); */ _unset: function(object, property, value, setter) { try { object[property] = value; } catch(e) {} try { object.__defineGetter__(property, function() { return value; }); } catch(e) {} if (setter) { try { object.__defineSetter__(property, function() {}); } catch(e) {} } if (!wysihtml5.browser.crashesWhenDefineProperty(property)) { try { var config = { get: function() { return value; } }; if (setter) { config.set = function() {}; } Object.defineProperty(object, property, config); } catch(e) {} } } }); })(wysihtml5); (function() { var mapping = { "className": "class" }; wysihtml5.dom.setAttributes = function(attributes) { return { on: function(element) { for (var i in attributes) { element.setAttribute(mapping[i] || i, attributes[i]); } } } }; })();wysihtml5.dom.setStyles = function(styles) { return { on: function(element) { var style = element.style; if (typeof(styles) === "string") { style.cssText += ";" + styles; return; } for (var i in styles) { if (i === "float") { style.cssFloat = styles[i]; style.styleFloat = styles[i]; } else { style[i] = styles[i]; } } } }; };/** * Simulate HTML5 placeholder attribute * * Needed since * - div[contentEditable] elements don't support it * - older browsers (such as IE8 and Firefox 3.6) don't support it at all * * @param {Object} parent Instance of main wysihtml5.Editor class * @param {Element} view Instance of wysihtml5.views.* class * @param {String} placeholderText * * @example * wysihtml.dom.simulatePlaceholder(this, composer, "Foobar"); */ (function(dom) { dom.simulatePlaceholder = function(editor, view, placeholderText) { var CLASS_NAME = "placeholder", unset = function() { if (view.hasPlaceholderSet()) { view.clear(); } dom.removeClass(view.element, CLASS_NAME); }, set = function() { if (view.isEmpty()) { view.setValue(placeholderText); dom.addClass(view.element, CLASS_NAME); } }; editor .observe("set_placeholder", set) .observe("unset_placeholder", unset) .observe("focus:composer", unset) .observe("paste:composer", unset) .observe("blur:composer", set); set(); }; })(wysihtml5.dom); (function(dom) { var documentElement = document.documentElement; if ("textContent" in documentElement) { dom.setTextContent = function(element, text) { element.textContent = text; }; dom.getTextContent = function(element) { return element.textContent; }; } else if ("innerText" in documentElement) { dom.setTextContent = function(element, text) { element.innerText = text; }; dom.getTextContent = function(element) { return element.innerText; }; } else { dom.setTextContent = function(element, text) { element.nodeValue = text; }; dom.getTextContent = function(element) { return element.nodeValue; }; } })(wysihtml5.dom); /** * Fix most common html formatting misbehaviors of browsers implementation when inserting * content via copy & paste contentEditable * * @author Christopher Blum */ wysihtml5.quirks.cleanPastedHTML = (function() { // TODO: We probably need more rules here var defaultRules = { // When pasting underlined links <a> into a contentEditable, IE thinks, it has to insert <u> to keep the styling "a u": wysihtml5.dom.replaceWithChildNodes }; function cleanPastedHTML(elementOrHtml, rules, context) { rules = rules || defaultRules; context = context || elementOrHtml.ownerDocument || document; var element, isString = typeof(elementOrHtml) === "string", method, matches, matchesLength, i, j = 0; if (isString) { element = wysihtml5.dom.getAsDom(elementOrHtml, context); } else { element = elementOrHtml; } for (i in rules) { matches = element.querySelectorAll(i); method = rules[i]; matchesLength = matches.length; for (; j<matchesLength; j++) { method(matches[j]); } } matches = elementOrHtml = rules = null; return isString ? element.innerHTML : element; } return cleanPastedHTML; })();/** * IE and Opera leave an empty paragraph in the contentEditable element after clearing it * * @param {Object} contentEditableElement The contentEditable element to observe for clearing events * @exaple * wysihtml5.quirks.ensureProperClearing(myContentEditableElement); */ (function(wysihtml5) { var dom = wysihtml5.dom; wysihtml5.quirks.ensureProperClearing = (function() { var clearIfNecessary = function(event) { var element = this; setTimeout(function() { var innerHTML = element.innerHTML.toLowerCase(); if (innerHTML == "<p>&nbsp;</p>" || innerHTML == "<p>&nbsp;</p><p>&nbsp;</p>") { element.innerHTML = ""; } }, 0); }; return function(composer) { dom.observe(composer.element, ["cut", "keydown"], clearIfNecessary); }; })(); /** * In Opera when the caret is in the first and only item of a list (<ul><li>|</li></ul>) and the list is the first child of the contentEditable element, it's impossible to delete the list by hitting backspace * * @param {Object} contentEditableElement The contentEditable element to observe for clearing events * @exaple * wysihtml5.quirks.ensureProperClearing(myContentEditableElement); */ wysihtml5.quirks.ensureProperClearingOfLists = (function() { var ELEMENTS_THAT_CONTAIN_LI = ["OL", "UL", "MENU"]; var clearIfNecessary = function(element, contentEditableElement) { if (!contentEditableElement.firstChild || !wysihtml5.lang.array(ELEMENTS_THAT_CONTAIN_LI).contains(contentEditableElement.firstChild.nodeName)) { return; } var list = dom.getParentElement(element, { nodeName: ELEMENTS_THAT_CONTAIN_LI }); if (!list) { return; } var listIsFirstChildOfContentEditable = list == contentEditableElement.firstChild; if (!listIsFirstChildOfContentEditable) { return; } var hasOnlyOneListItem = list.childNodes.length <= 1; if (!hasOnlyOneListItem) { return; } var onlyListItemIsEmpty = list.firstChild ? list.firstChild.innerHTML === "" : true; if (!onlyListItemIsEmpty) { return; } list.parentNode.removeChild(list); }; return function(composer) { dom.observe(composer.element, "keydown", function(event) { if (event.keyCode !== wysihtml5.BACKSPACE_KEY) { return; } var element = composer.selection.getSelectedNode(); clearIfNecessary(element, composer.element); }); }; })(); })(wysihtml5); // See https://bugzilla.mozilla.org/show_bug.cgi?id=664398 // // In Firefox this: // var d = document.createElement("div"); // d.innerHTML ='<a href="~"></a>'; // d.innerHTML; // will result in: // <a href="%7E"></a> // which is wrong (function(wysihtml5) { var TILDE_ESCAPED = "%7E"; wysihtml5.quirks.getCorrectInnerHTML = function(element) { var innerHTML = element.innerHTML; if (innerHTML.indexOf(TILDE_ESCAPED) === -1) { return innerHTML; } var elementsWithTilde = element.querySelectorAll("[href*='~'], [src*='~']"), url, urlToSearch, length, i; for (i=0, length=elementsWithTilde.length; i<length; i++) { url = elementsWithTilde[i].href || elementsWithTilde[i].src; urlToSearch = wysihtml5.lang.string(url).replace("~").by(TILDE_ESCAPED); innerHTML = wysihtml5.lang.string(innerHTML).replace(urlToSearch).by(url); } return innerHTML; }; })(wysihtml5);/** * Some browsers don't insert line breaks when hitting return in a contentEditable element * - Opera & IE insert new <p> on return * - Chrome & Safari insert new <div> on return * - Firefox inserts <br> on return (yippie!) * * @param {Element} element * * @example * wysihtml5.quirks.insertLineBreakOnReturn(element); */ (function(wysihtml5) { var dom = wysihtml5.dom, USE_NATIVE_LINE_BREAK_WHEN_CARET_INSIDE_TAGS = ["LI", "P", "H1", "H2", "H3", "H4", "H5", "H6"], LIST_TAGS = ["UL", "OL", "MENU"]; wysihtml5.quirks.insertLineBreakOnReturn = function(composer) { function unwrap(selectedNode) { var parentElement = dom.getParentElement(selectedNode, { nodeName: ["P", "DIV"] }, 2); if (!parentElement) { return; } var invisibleSpace = document.createTextNode(wysihtml5.INVISIBLE_SPACE); dom.insert(invisibleSpace).before(parentElement); dom.replaceWithChildNodes(parentElement); composer.selection.selectNode(invisibleSpace); } function keyDown(event) { var keyCode = event.keyCode; if (event.shiftKey || (keyCode !== wysihtml5.ENTER_KEY && keyCode !== wysihtml5.BACKSPACE_KEY)) { return; } var element = event.target, selectedNode = composer.selection.getSelectedNode(), blockElement = dom.getParentElement(selectedNode, { nodeName: USE_NATIVE_LINE_BREAK_WHEN_CARET_INSIDE_TAGS }, 4); if (blockElement) { // Some browsers create <p> elements after leaving a list // check after keydown of backspace and return whether a <p> got inserted and unwrap it if (blockElement.nodeName === "LI" && (keyCode === wysihtml5.ENTER_KEY || keyCode === wysihtml5.BACKSPACE_KEY)) { setTimeout(function() { var selectedNode = composer.selection.getSelectedNode(), list, div; if (!selectedNode) { return; } list = dom.getParentElement(selectedNode, { nodeName: LIST_TAGS }, 2); if (list) { return; } unwrap(selectedNode); }, 0); } else if (blockElement.nodeName.match(/H[1-6]/) && keyCode === wysihtml5.ENTER_KEY) { setTimeout(function() { unwrap(composer.selection.getSelectedNode()); }, 0); } return; } if (keyCode === wysihtml5.ENTER_KEY && !wysihtml5.browser.insertsLineBreaksOnReturn()) { composer.commands.exec("insertLineBreak"); event.preventDefault(); } } // keypress doesn't fire when you hit backspace dom.observe(composer.element.ownerDocument, "keydown", keyDown); }; })(wysihtml5);/** * Force rerendering of a given element * Needed to fix display misbehaviors of IE * * @param {Element} element The element object which needs to be rerendered * @example * wysihtml5.quirks.redraw(document.body); */ (function(wysihtml5) { var CLASS_NAME = "wysihtml5-quirks-redraw"; wysihtml5.quirks.redraw = function(element) { wysihtml5.dom.addClass(element, CLASS_NAME); wysihtml5.dom.removeClass(element, CLASS_NAME); // Following hack is needed for firefox to make sure that image resize handles are properly removed try { var doc = element.ownerDocument; doc.execCommand("italic", false, null); doc.execCommand("italic", false, null); } catch(e) {} }; })(wysihtml5);/** * Selection API * * @example * var selection = new wysihtml5.Selection(editor); */ (function(wysihtml5) { var dom = wysihtml5.dom; function _getCumulativeOffsetTop(element) { var top = 0; if (element.parentNode) { do { top += element.offsetTop || 0; element = element.offsetParent; } while (element); } return top; } wysihtml5.Selection = Base.extend( /** @scope wysihtml5.Selection.prototype */ { constructor: function(editor) { // Make sure that our external range library is initialized window.rangy.init(); this.editor = editor; this.composer = editor.composer; this.doc = this.composer.doc; }, /** * Get the current selection as a bookmark to be able to later restore it * * @return {Object} An object that represents the current selection */ getBookmark: function() { var range = this.getRange(); return range && range.cloneRange(); }, /** * Restore a selection retrieved via wysihtml5.Selection.prototype.getBookmark * * @param {Object} bookmark An object that represents the current selection */ setBookmark: function(bookmark) { if (!bookmark) { return; } this.setSelection(bookmark); }, /** * Set the caret in front of the given node * * @param {Object} node The element or text node where to position the caret in front of * @example * selection.setBefore(myElement); */ setBefore: function(node) { var range = rangy.createRange(this.doc); range.setStartBefore(node); range.setEndBefore(node); return this.setSelection(range); }, /** * Set the caret after the given node * * @param {Object} node The element or text node where to position the caret in front of * @example * selection.setBefore(myElement); */ setAfter: function(node) { var range = rangy.createRange(this.doc); range.setStartAfter(node); range.setEndAfter(node); return this.setSelection(range); }, /** * Ability to select/mark nodes * * @param {Element} node The node/element to select * @example * selection.selectNode(document.getElementById("my-image")); */ selectNode: function(node) { var range = rangy.createRange(this.doc), isElement = node.nodeType === wysihtml5.ELEMENT_NODE, canHaveHTML = "canHaveHTML" in node ? node.canHaveHTML : (node.nodeName !== "IMG"), content = isElement ? node.innerHTML : node.data, isEmpty = (content === "" || content === wysihtml5.INVISIBLE_SPACE), displayStyle = dom.getStyle("display").from(node), isBlockElement = (displayStyle === "block" || displayStyle === "list-item"); if (isEmpty && isElement && canHaveHTML) { // Make sure that caret is visible in node by inserting a zero width no breaking space try { node.innerHTML = wysihtml5.INVISIBLE_SPACE; } catch(e) {} } if (canHaveHTML) { range.selectNodeContents(node); } else { range.selectNode(node); } if (canHaveHTML && isEmpty && isElement) { range.collapse(isBlockElement); } else if (canHaveHTML && isEmpty) { range.setStartAfter(node); range.setEndAfter(node); } this.setSelection(range); }, /** * Get the node which contains the selection * * @param {Boolean} [controlRange] (only IE) Whether it should return the selected ControlRange element when the selection type is a "ControlRange" * @return {Object} The node that contains the caret * @example * var nodeThatContainsCaret = selection.getSelectedNode(); */ getSelectedNode: function(controlRange) { var selection, range; if (controlRange && this.doc.selection && this.doc.selection.type === "Control") { range = this.doc.selection.createRange(); if (range && range.length) { return range.item(0); } } selection = this.getSelection(this.doc); if (selection.focusNode === selection.anchorNode) { return selection.focusNode; } else { range = this.getRange(this.doc); return range ? range.commonAncestorContainer : this.doc.body; } }, executeAndRestore: function(method, restoreScrollPosition) { var body = this.doc.body, oldScrollTop = restoreScrollPosition && body.scrollTop, oldScrollLeft = restoreScrollPosition && body.scrollLeft, className = "_wysihtml5-temp-placeholder", placeholderHTML = '<span class="' + className + '">' + wysihtml5.INVISIBLE_SPACE + '</span>', range = this.getRange(this.doc), newRange; // Nothing selected, execute and say goodbye if (!range) { method(body, body); return; } var node = range.createContextualFragment(placeholderHTML); range.insertNode(node); // Make sure that a potential error doesn't cause our placeholder element to be left as a placeholder try { method(range.startContainer, range.endContainer); } catch(e3) { setTimeout(function() { throw e3; }, 0); } caretPlaceholder = this.doc.querySelector("." + className); if (caretPlaceholder) { newRange = rangy.createRange(this.doc); newRange.selectNode(caretPlaceholder); newRange.deleteContents(); this.setSelection(newRange); } else { // fallback for when all hell breaks loose body.focus(); } if (restoreScrollPosition) { body.scrollTop = oldScrollTop; body.scrollLeft = oldScrollLeft; } // Remove it again, just to make sure that the placeholder is definitely out of the dom tree try { caretPlaceholder.parentNode.removeChild(caretPlaceholder); } catch(e4) {} }, /** * Different approach of preserving the selection (doesn't modify the dom) * Takes all text nodes in the selection and saves the selection position in the first and last one */ executeAndRestoreSimple: function(method) { var range = this.getRange(), body = this.doc.body, newRange, firstNode, lastNode, textNodes, rangeBackup; // Nothing selected, execute and say goodbye if (!range) { method(body, body); return; } textNodes = range.getNodes([3]); firstNode = textNodes[0] || range.startContainer; lastNode = textNodes[textNodes.length - 1] || range.endContainer; rangeBackup = { collapsed: range.collapsed, startContainer: firstNode, startOffset: firstNode === range.startContainer ? range.startOffset : 0, endContainer: lastNode, endOffset: lastNode === range.endContainer ? range.endOffset : lastNode.length }; try { method(range.startContainer, range.endContainer); } catch(e) { setTimeout(function() { throw e; }, 0); } newRange = rangy.createRange(this.doc); try { newRange.setStart(rangeBackup.startContainer, rangeBackup.startOffset); } catch(e1) {} try { newRange.setEnd(rangeBackup.endContainer, rangeBackup.endOffset); } catch(e2) {} try { this.setSelection(newRange); } catch(e3) {} }, /** * Insert html at the caret position and move the cursor after the inserted html * * @param {String} html HTML string to insert * @example * selection.insertHTML("<p>foobar</p>"); */ insertHTML: function(html) { var range = rangy.createRange(this.doc), node = range.createContextualFragment(html), lastChild = node.lastChild; this.insertNode(node); if (lastChild) { this.setAfter(lastChild); } }, /** * Insert a node at the caret position and move the cursor behind it * * @param {Object} node HTML string to insert * @example * selection.insertNode(document.createTextNode("foobar")); */ insertNode: function(node) { var range = this.getRange(); if (range) { range.insertNode(node); } }, /** * Wraps current selection with the given node * * @param {Object} node The node to surround the selected elements with */ surround: function(node) { var range = this.getRange(); if (!range) { return; } try { // This only works when the range boundaries are not overlapping other elements range.surroundContents(node); this.selectNode(node); } catch(e) { // fallback node.appendChild(range.extractContents()); range.insertNode(node); } }, /** * Scroll the current caret position into the view * FIXME: This is a bit hacky, there might be a smarter way of doing this * * @example * selection.scrollIntoView(); */ scrollIntoView: function() { var doc = this.doc, hasScrollBars = doc.documentElement.scrollHeight > doc.documentElement.offsetHeight, tempElement = doc._wysihtml5ScrollIntoViewElement = doc._wysihtml5ScrollIntoViewElement || (function() { var element = doc.createElement("span"); // The element needs content in order to be able to calculate it's position properly element.innerHTML = wysihtml5.INVISIBLE_SPACE; return element; })(), offsetTop; if (hasScrollBars) { this.insertNode(tempElement); offsetTop = _getCumulativeOffsetTop(tempElement); tempElement.parentNode.removeChild(tempElement); if (offsetTop > doc.body.scrollTop) { doc.body.scrollTop = offsetTop; } } }, /** * Select line where the caret is in */ selectLine: function() { if (wysihtml5.browser.supportsSelectionModify()) { this._selectLine_W3C(); } else if (this.doc.selection) { this._selectLine_MSIE(); } }, /** * See https://developer.mozilla.org/en/DOM/Selection/modify */ _selectLine_W3C: function() { var win = this.doc.defaultView, selection = win.getSelection(); selection.modify("extend", "left", "lineboundary"); selection.modify("extend", "right", "lineboundary"); }, _selectLine_MSIE: function() { var range = this.doc.selection.createRange(), rangeTop = range.boundingTop, rangeHeight = range.boundingHeight, scrollWidth = this.doc.body.scrollWidth, rangeBottom, rangeEnd, measureNode, i, j; if (!range.moveToPoint) { return; } if (rangeTop === 0) { // Don't know why, but when the selection ends at the end of a line // range.boundingTop is 0 measureNode = this.doc.createElement("span"); this.insertNode(measureNode); rangeTop = measureNode.offsetTop; measureNode.parentNode.removeChild(measureNode); } rangeTop += 1; for (i=-10; i<scrollWidth; i+=2) { try { range.moveToPoint(i, rangeTop); break; } catch(e1) {} } // Investigate the following in order to handle multi line selections // rangeBottom = rangeTop + (rangeHeight ? (rangeHeight - 1) : 0); rangeBottom = rangeTop; rangeEnd = this.doc.selection.createRange(); for (j=scrollWidth; j>=0; j--) { try { rangeEnd.moveToPoint(j, rangeBottom); break; } catch(e2) {} } range.setEndPoint("EndToEnd", rangeEnd); range.select(); }, getText: function() { var selection = this.getSelection(); return selection ? selection.toString() : ""; }, getNodes: function(nodeType, filter) { var range = this.getRange(); if (range) { return range.getNodes([nodeType], filter); } else { return []; } }, getRange: function() { var selection = this.getSelection(); return selection && selection.rangeCount && selection.getRangeAt(0); }, getSelection: function() { return rangy.getSelection(this.doc.defaultView || this.doc.parentWindow); }, setSelection: function(range) { var win = this.doc.defaultView || this.doc.parentWindow, selection = rangy.getSelection(win); return selection.setSingleRange(range); } }); })(wysihtml5); /** * Inspired by the rangy CSS Applier module written by Tim Down and licensed under the MIT license. * http://code.google.com/p/rangy/ * * changed in order to be able ... * - to use custom tags * - to detect and replace similar css classes via reg exp */ (function(wysihtml5, rangy) { var defaultTagName = "span"; var REG_EXP_WHITE_SPACE = /\s+/g; function hasClass(el, cssClass, regExp) { if (!el.className) { return false; } var matchingClassNames = el.className.match(regExp) || []; return matchingClassNames[matchingClassNames.length - 1] === cssClass; } function addClass(el, cssClass, regExp) { if (el.className) { removeClass(el, regExp); el.className += " " + cssClass; } else { el.className = cssClass; } } function removeClass(el, regExp) { if (el.className) { el.className = el.className.replace(regExp, ""); } } function hasSameClasses(el1, el2) { return el1.className.replace(REG_EXP_WHITE_SPACE, " ") == el2.className.replace(REG_EXP_WHITE_SPACE, " "); } function replaceWithOwnChildren(el) { var parent = el.parentNode; while (el.firstChild) { parent.insertBefore(el.firstChild, el); } parent.removeChild(el); } function elementsHaveSameNonClassAttributes(el1, el2) { if (el1.attributes.length != el2.attributes.length) { return false; } for (var i = 0, len = el1.attributes.length, attr1, attr2, name; i < len; ++i) { attr1 = el1.attributes[i]; name = attr1.name; if (name != "class") { attr2 = el2.attributes.getNamedItem(name); if (attr1.specified != attr2.specified) { return false; } if (attr1.specified && attr1.nodeValue !== attr2.nodeValue) { return false; } } } return true; } function isSplitPoint(node, offset) { if (rangy.dom.isCharacterDataNode(node)) { if (offset == 0) { return !!node.previousSibling; } else if (offset == node.length) { return !!node.nextSibling; } else { return true; } } return offset > 0 && offset < node.childNodes.length; } function splitNodeAt(node, descendantNode, descendantOffset) { var newNode; if (rangy.dom.isCharacterDataNode(descendantNode)) { if (descendantOffset == 0) { descendantOffset = rangy.dom.getNodeIndex(descendantNode); descendantNode = descendantNode.parentNode; } else if (descendantOffset == descendantNode.length) { descendantOffset = rangy.dom.getNodeIndex(descendantNode) + 1; descendantNode = descendantNode.parentNode; } else { newNode = rangy.dom.splitDataNode(descendantNode, descendantOffset); } } if (!newNode) { newNode = descendantNode.cloneNode(false); if (newNode.id) { newNode.removeAttribute("id"); } var child; while ((child = descendantNode.childNodes[descendantOffset])) { newNode.appendChild(child); } rangy.dom.insertAfter(newNode, descendantNode); } return (descendantNode == node) ? newNode : splitNodeAt(node, newNode.parentNode, rangy.dom.getNodeIndex(newNode)); } function Merge(firstNode) { this.isElementMerge = (firstNode.nodeType == wysihtml5.ELEMENT_NODE); this.firstTextNode = this.isElementMerge ? firstNode.lastChild : firstNode; this.textNodes = [this.firstTextNode]; } Merge.prototype = { doMerge: function() { var textBits = [], textNode, parent, text; for (var i = 0, len = this.textNodes.length; i < len; ++i) { textNode = this.textNodes[i]; parent = textNode.parentNode; textBits[i] = textNode.data; if (i) { parent.removeChild(textNode); if (!parent.hasChildNodes()) { parent.parentNode.removeChild(parent); } } } this.firstTextNode.data = text = textBits.join(""); return text; }, getLength: function() { var i = this.textNodes.length, len = 0; while (i--) { len += this.textNodes[i].length; } return len; }, toString: function() { var textBits = []; for (var i = 0, len = this.textNodes.length; i < len; ++i) { textBits[i] = "'" + this.textNodes[i].data + "'"; } return "[Merge(" + textBits.join(",") + ")]"; } }; function HTMLApplier(tagNames, cssClass, similarClassRegExp, normalize) { this.tagNames = tagNames || [defaultTagName]; this.cssClass = cssClass || ""; this.similarClassRegExp = similarClassRegExp; this.normalize = normalize; this.applyToAnyTagName = false; } HTMLApplier.prototype = { getAncestorWithClass: function(node) { var cssClassMatch; while (node) { cssClassMatch = this.cssClass ? hasClass(node, this.cssClass, this.similarClassRegExp) : true; if (node.nodeType == wysihtml5.ELEMENT_NODE && rangy.dom.arrayContains(this.tagNames, node.tagName.toLowerCase()) && cssClassMatch) { return node; } node = node.parentNode; } return false; }, // Normalizes nodes after applying a CSS class to a Range. postApply: function(textNodes, range) { var firstNode = textNodes[0], lastNode = textNodes[textNodes.length - 1]; var merges = [], currentMerge; var rangeStartNode = firstNode, rangeEndNode = lastNode; var rangeStartOffset = 0, rangeEndOffset = lastNode.length; var textNode, precedingTextNode; for (var i = 0, len = textNodes.length; i < len; ++i) { textNode = textNodes[i]; precedingTextNode = this.getAdjacentMergeableTextNode(textNode.parentNode, false); if (precedingTextNode) { if (!currentMerge) { currentMerge = new Merge(precedingTextNode); merges.push(currentMerge); } currentMerge.textNodes.push(textNode); if (textNode === firstNode) { rangeStartNode = currentMerge.firstTextNode; rangeStartOffset = rangeStartNode.length; } if (textNode === lastNode) { rangeEndNode = currentMerge.firstTextNode; rangeEndOffset = currentMerge.getLength(); } } else { currentMerge = null; } } // Test whether the first node after the range needs merging var nextTextNode = this.getAdjacentMergeableTextNode(lastNode.parentNode, true); if (nextTextNode) { if (!currentMerge) { currentMerge = new Merge(lastNode); merges.push(currentMerge); } currentMerge.textNodes.push(nextTextNode); } // Do the merges if (merges.length) { for (i = 0, len = merges.length; i < len; ++i) { merges[i].doMerge(); } // Set the range boundaries range.setStart(rangeStartNode, rangeStartOffset); range.setEnd(rangeEndNode, rangeEndOffset); } }, getAdjacentMergeableTextNode: function(node, forward) { var isTextNode = (node.nodeType == wysihtml5.TEXT_NODE); var el = isTextNode ? node.parentNode : node; var adjacentNode; var propName = forward ? "nextSibling" : "previousSibling"; if (isTextNode) { // Can merge if the node's previous/next sibling is a text node adjacentNode = node[propName]; if (adjacentNode && adjacentNode.nodeType == wysihtml5.TEXT_NODE) { return adjacentNode; } } else { // Compare element with its sibling adjacentNode = el[propName]; if (adjacentNode && this.areElementsMergeable(node, adjacentNode)) { return adjacentNode[forward ? "firstChild" : "lastChild"]; } } return null; }, areElementsMergeable: function(el1, el2) { return rangy.dom.arrayContains(this.tagNames, (el1.tagName || "").toLowerCase()) && rangy.dom.arrayContains(this.tagNames, (el2.tagName || "").toLowerCase()) && hasSameClasses(el1, el2) && elementsHaveSameNonClassAttributes(el1, el2); }, createContainer: function(doc) { var el = doc.createElement(this.tagNames[0]); if (this.cssClass) { el.className = this.cssClass; } return el; }, applyToTextNode: function(textNode) { var parent = textNode.parentNode; if (parent.childNodes.length == 1 && rangy.dom.arrayContains(this.tagNames, parent.tagName.toLowerCase())) { if (this.cssClass) { addClass(parent, this.cssClass, this.similarClassRegExp); } } else { var el = this.createContainer(rangy.dom.getDocument(textNode)); textNode.parentNode.insertBefore(el, textNode); el.appendChild(textNode); } }, isRemovable: function(el) { return rangy.dom.arrayContains(this.tagNames, el.tagName.toLowerCase()) && wysihtml5.lang.string(el.className).trim() == this.cssClass; }, undoToTextNode: function(textNode, range, ancestorWithClass) { if (!range.containsNode(ancestorWithClass)) { // Split out the portion of the ancestor from which we can remove the CSS class var ancestorRange = range.cloneRange(); ancestorRange.selectNode(ancestorWithClass); if (ancestorRange.isPointInRange(range.endContainer, range.endOffset) && isSplitPoint(range.endContainer, range.endOffset)) { splitNodeAt(ancestorWithClass, range.endContainer, range.endOffset); range.setEndAfter(ancestorWithClass); } if (ancestorRange.isPointInRange(range.startContainer, range.startOffset) && isSplitPoint(range.startContainer, range.startOffset)) { ancestorWithClass = splitNodeAt(ancestorWithClass, range.startContainer, range.startOffset); } } if (this.similarClassRegExp) { removeClass(ancestorWithClass, this.similarClassRegExp); } if (this.isRemovable(ancestorWithClass)) { replaceWithOwnChildren(ancestorWithClass); } }, applyToRange: function(range) { var textNodes = range.getNodes([wysihtml5.TEXT_NODE]); if (!textNodes.length) { try { var node = this.createContainer(range.endContainer.ownerDocument); range.surroundContents(node); this.selectNode(range, node); return; } catch(e) {} } range.splitBoundaries(); textNodes = range.getNodes([wysihtml5.TEXT_NODE]); if (textNodes.length) { var textNode; for (var i = 0, len = textNodes.length; i < len; ++i) { textNode = textNodes[i]; if (!this.getAncestorWithClass(textNode)) { this.applyToTextNode(textNode); } } range.setStart(textNodes[0], 0); textNode = textNodes[textNodes.length - 1]; range.setEnd(textNode, textNode.length); if (this.normalize) { this.postApply(textNodes, range); } } }, undoToRange: function(range) { var textNodes = range.getNodes([wysihtml5.TEXT_NODE]), textNode, ancestorWithClass; if (textNodes.length) { range.splitBoundaries(); textNodes = range.getNodes([wysihtml5.TEXT_NODE]); } else { var doc = range.endContainer.ownerDocument, node = doc.createTextNode(wysihtml5.INVISIBLE_SPACE); range.insertNode(node); range.selectNode(node); textNodes = [node]; } for (var i = 0, len = textNodes.length; i < len; ++i) { textNode = textNodes[i]; ancestorWithClass = this.getAncestorWithClass(textNode); if (ancestorWithClass) { this.undoToTextNode(textNode, range, ancestorWithClass); } } if (len == 1) { this.selectNode(range, textNodes[0]); } else { range.setStart(textNodes[0], 0); textNode = textNodes[textNodes.length - 1]; range.setEnd(textNode, textNode.length); if (this.normalize) { this.postApply(textNodes, range); } } }, selectNode: function(range, node) { var isElement = node.nodeType === wysihtml5.ELEMENT_NODE, canHaveHTML = "canHaveHTML" in node ? node.canHaveHTML : true, content = isElement ? node.innerHTML : node.data, isEmpty = (content === "" || content === wysihtml5.INVISIBLE_SPACE); if (isEmpty && isElement && canHaveHTML) { // Make sure that caret is visible in node by inserting a zero width no breaking space try { node.innerHTML = wysihtml5.INVISIBLE_SPACE; } catch(e) {} } range.selectNodeContents(node); if (isEmpty && isElement) { range.collapse(false); } else if (isEmpty) { range.setStartAfter(node); range.setEndAfter(node); } }, getTextSelectedByRange: function(textNode, range) { var textRange = range.cloneRange(); textRange.selectNodeContents(textNode); var intersectionRange = textRange.intersection(range); var text = intersectionRange ? intersectionRange.toString() : ""; textRange.detach(); return text; }, isAppliedToRange: function(range) { var ancestors = [], ancestor, textNodes = range.getNodes([wysihtml5.TEXT_NODE]); if (!textNodes.length) { ancestor = this.getAncestorWithClass(range.startContainer); return ancestor ? [ancestor] : false; } for (var i = 0, len = textNodes.length, selectedText; i < len; ++i) { selectedText = this.getTextSelectedByRange(textNodes[i], range); ancestor = this.getAncestorWithClass(textNodes[i]); if (selectedText != "" && !ancestor) { return false; } else { ancestors.push(ancestor); } } return ancestors; }, toggleRange: function(range) { if (this.isAppliedToRange(range)) { this.undoToRange(range); } else { this.applyToRange(range); } } }; wysihtml5.selection.HTMLApplier = HTMLApplier; })(wysihtml5, rangy);/** * Rich Text Query/Formatting Commands * * @example * var commands = new wysihtml5.Commands(editor); */ wysihtml5.Commands = Base.extend( /** @scope wysihtml5.Commands.prototype */ { constructor: function(editor) { this.editor = editor; this.composer = editor.composer; this.doc = this.composer.doc; }, /** * Check whether the browser supports the given command * * @param {String} command The command string which to check (eg. "bold", "italic", "insertUnorderedList") * @example * commands.supports("createLink"); */ support: function(command) { return wysihtml5.browser.supportsCommand(this.doc, command); }, /** * Check whether the browser supports the given command * * @param {String} command The command string which to execute (eg. "bold", "italic", "insertUnorderedList") * @param {String} [value] The command value parameter, needed for some commands ("createLink", "insertImage", ...), optional for commands that don't require one ("bold", "underline", ...) * @example * commands.exec("insertImage", "http://a1.twimg.com/profile_images/113868655/schrei_twitter_reasonably_small.jpg"); */ exec: function(command, value) { var obj = wysihtml5.commands[command], args = wysihtml5.lang.array(arguments).get(), method = obj && obj.exec, result = null; this.editor.fire("beforecommand:composer"); if (method) { args.unshift(this.composer); result = method.apply(obj, args); } else { try { // try/catch for buggy firefox result = this.doc.execCommand(command, false, value); } catch(e) {} } this.editor.fire("aftercommand:composer"); return result; }, /** * Check whether the current command is active * If the caret is within a bold text, then calling this with command "bold" should return true * * @param {String} command The command string which to check (eg. "bold", "italic", "insertUnorderedList") * @param {String} [commandValue] The command value parameter (eg. for "insertImage" the image src) * @return {Boolean} Whether the command is active * @example * var isCurrentSelectionBold = commands.state("bold"); */ state: function(command, commandValue) { var obj = wysihtml5.commands[command], args = wysihtml5.lang.array(arguments).get(), method = obj && obj.state; if (method) { args.unshift(this.composer); return method.apply(obj, args); } else { try { // try/catch for buggy firefox return this.doc.queryCommandState(command); } catch(e) { return false; } } }, /** * Get the current command's value * * @param {String} command The command string which to check (eg. "formatBlock") * @return {String} The command value * @example * var currentBlockElement = commands.value("formatBlock"); */ value: function(command) { var obj = wysihtml5.commands[command], method = obj && obj.value; if (method) { return method.call(obj, this.composer, command); } else { try { // try/catch for buggy firefox return this.doc.queryCommandValue(command); } catch(e) { return null; } } } }); (function(wysihtml5) { var undef; wysihtml5.commands.bold = { exec: function(composer, command) { return wysihtml5.commands.formatInline.exec(composer, command, "b"); }, state: function(composer, command, color) { // element.ownerDocument.queryCommandState("bold") results: // firefox: only <b> // chrome: <b>, <strong>, <h1>, <h2>, ... // ie: <b>, <strong> // opera: <b>, <strong> return wysihtml5.commands.formatInline.state(composer, command, "b"); }, value: function() { return undef; } }; })(wysihtml5); (function(wysihtml5) { var undef, NODE_NAME = "A", dom = wysihtml5.dom; function _removeFormat(composer, anchors) { var length = anchors.length, i = 0, anchor, codeElement, textContent; for (; i<length; i++) { anchor = anchors[i]; codeElement = dom.getParentElement(anchor, { nodeName: "code" }); textContent = dom.getTextContent(anchor); // if <a> contains url-like text content, rename it to <code> to prevent re-autolinking // else replace <a> with its childNodes if (textContent.match(dom.autoLink.URL_REG_EXP) && !codeElement) { // <code> element is used to prevent later auto-linking of the content codeElement = dom.renameElement(anchor, "code"); } else { dom.replaceWithChildNodes(anchor); } } } function _format(composer, attributes) { var doc = composer.doc, tempClass = "_wysihtml5-temp-" + (+new Date()), tempClassRegExp = /non-matching-class/g, i = 0, length, anchors, anchor, hasElementChild, isEmpty, elementToSetCaretAfter, textContent, whiteSpace, j; wysihtml5.commands.formatInline.exec(composer, undef, NODE_NAME, tempClass, tempClassRegExp); anchors = doc.querySelectorAll(NODE_NAME + "." + tempClass); length = anchors.length; for (; i<length; i++) { anchor = anchors[i]; anchor.removeAttribute("class"); for (j in attributes) { anchor.setAttribute(j, attributes[j]); } } elementToSetCaretAfter = anchor; if (length === 1) { textContent = dom.getTextContent(anchor); hasElementChild = !!anchor.querySelector("*"); isEmpty = textContent === "" || textContent === wysihtml5.INVISIBLE_SPACE; if (!hasElementChild && isEmpty) { dom.setTextContent(anchor, attributes.text || anchor.href); whiteSpace = doc.createTextNode(" "); composer.selection.setAfter(anchor); composer.selection.insertNode(whiteSpace); elementToSetCaretAfter = whiteSpace; } } composer.selection.setAfter(elementToSetCaretAfter); } wysihtml5.commands.createLink = { /** * TODO: Use HTMLApplier or formatInline here * * Turns selection into a link * If selection is already a link, it removes the link and wraps it with a <code> element * The <code> element is needed to avoid auto linking * * @example * // either ... * wysihtml5.commands.createLink.exec(composer, "createLink", "http://www.google.de"); * // ... or ... * wysihtml5.commands.createLink.exec(composer, "createLink", { href: "http://www.google.de", target: "_blank" }); */ exec: function(composer, command, value) { var anchors = this.state(composer, command); if (anchors) { // Selection contains links composer.selection.executeAndRestore(function() { _removeFormat(composer, anchors); }); } else { // Create links value = typeof(value) === "object" ? value : { href: value }; _format(composer, value); } }, state: function(composer, command) { return wysihtml5.commands.formatInline.state(composer, command, "A"); }, value: function() { return undef; } }; })(wysihtml5);/** * document.execCommand("fontSize") will create either inline styles (firefox, chrome) or use font tags * which we don't want * Instead we set a css class */ (function(wysihtml5) { var undef, REG_EXP = /wysiwyg-font-size-[a-z\-]+/g; wysihtml5.commands.fontSize = { exec: function(composer, command, size) { return wysihtml5.commands.formatInline.exec(composer, command, "span", "wysiwyg-font-size-" + size, REG_EXP); }, state: function(composer, command, size) { return wysihtml5.commands.formatInline.state(composer, command, "span", "wysiwyg-font-size-" + size, REG_EXP); }, value: function() { return undef; } }; })(wysihtml5); /** * document.execCommand("foreColor") will create either inline styles (firefox, chrome) or use font tags * which we don't want * Instead we set a css class */ (function(wysihtml5) { var undef, REG_EXP = /wysiwyg-color-[a-z]+/g; wysihtml5.commands.foreColor = { exec: function(composer, command, color) { return wysihtml5.commands.formatInline.exec(composer, command, "span", "wysiwyg-color-" + color, REG_EXP); }, state: function(composer, command, color) { return wysihtml5.commands.formatInline.state(composer, command, "span", "wysiwyg-color-" + color, REG_EXP); }, value: function() { return undef; } }; })(wysihtml5);(function(wysihtml5) { var undef, dom = wysihtml5.dom, DEFAULT_NODE_NAME = "DIV", // Following elements are grouped // when the caret is within a H1 and the H4 is invoked, the H1 should turn into H4 // instead of creating a H4 within a H1 which would result in semantically invalid html BLOCK_ELEMENTS_GROUP = ["H1", "H2", "H3", "H4", "H5", "H6", "P", "BLOCKQUOTE", DEFAULT_NODE_NAME]; /** * Remove similiar classes (based on classRegExp) * and add the desired class name */ function _addClass(element, className, classRegExp) { if (element.className) { _removeClass(element, classRegExp); element.className += " " + className; } else { element.className = className; } } function _removeClass(element, classRegExp) { element.className = element.className.replace(classRegExp, ""); } /** * Check whether given node is a text node and whether it's empty */ function _isBlankTextNode(node) { return node.nodeType === wysihtml5.TEXT_NODE && !wysihtml5.lang.string(node.data).trim(); } /** * Returns previous sibling node that is not a blank text node */ function _getPreviousSiblingThatIsNotBlank(node) { var previousSibling = node.previousSibling; while (previousSibling && _isBlankTextNode(previousSibling)) { previousSibling = previousSibling.previousSibling; } return previousSibling; } /** * Returns next sibling node that is not a blank text node */ function _getNextSiblingThatIsNotBlank(node) { var nextSibling = node.nextSibling; while (nextSibling && _isBlankTextNode(nextSibling)) { nextSibling = nextSibling.nextSibling; } return nextSibling; } /** * Adds line breaks before and after the given node if the previous and next siblings * aren't already causing a visual line break (block element or <br>) */ function _addLineBreakBeforeAndAfter(node) { var doc = node.ownerDocument, nextSibling = _getNextSiblingThatIsNotBlank(node), previousSibling = _getPreviousSiblingThatIsNotBlank(node); if (nextSibling && !_isLineBreakOrBlockElement(nextSibling)) { node.parentNode.insertBefore(doc.createElement("br"), nextSibling); } if (previousSibling && !_isLineBreakOrBlockElement(previousSibling)) { node.parentNode.insertBefore(doc.createElement("br"), node); } } /** * Removes line breaks before and after the given node */ function _removeLineBreakBeforeAndAfter(node) { var nextSibling = _getNextSiblingThatIsNotBlank(node), previousSibling = _getPreviousSiblingThatIsNotBlank(node); if (nextSibling && _isLineBreak(nextSibling)) { nextSibling.parentNode.removeChild(nextSibling); } if (previousSibling && _isLineBreak(previousSibling)) { previousSibling.parentNode.removeChild(previousSibling); } } function _removeLastChildIfLineBreak(node) { var lastChild = node.lastChild; if (lastChild && _isLineBreak(lastChild)) { lastChild.parentNode.removeChild(lastChild); } } function _isLineBreak(node) { return node.nodeName === "BR"; } /** * Checks whether the elment causes a visual line break * (<br> or block elements) */ function _isLineBreakOrBlockElement(element) { if (_isLineBreak(element)) { return true; } if (dom.getStyle("display").from(element) === "block") { return true; } return false; } /** * Execute native query command * and if necessary modify the inserted node's className */ function _execCommand(doc, command, nodeName, className) { if (className) { var eventListener = dom.observe(doc, "DOMNodeInserted", function(event) { var target = event.target, displayStyle; if (target.nodeType !== wysihtml5.ELEMENT_NODE) { return; } displayStyle = dom.getStyle("display").from(target); if (displayStyle.substr(0, 6) !== "inline") { // Make sure that only block elements receive the given class target.className += " " + className; } }); } doc.execCommand(command, false, nodeName); if (eventListener) { eventListener.stop(); } } function _selectLineAndWrap(composer, element) { composer.selection.selectLine(); composer.selection.surround(element); _removeLineBreakBeforeAndAfter(element); _removeLastChildIfLineBreak(element); composer.selection.selectNode(element); } function _hasClasses(element) { return !!wysihtml5.lang.string(element.className).trim(); } wysihtml5.commands.formatBlock = { exec: function(composer, command, nodeName, className, classRegExp) { var doc = composer.doc, blockElement = this.state(composer, command, nodeName, className, classRegExp), selectedNode; nodeName = typeof(nodeName) === "string" ? nodeName.toUpperCase() : nodeName; if (blockElement) { composer.selection.executeAndRestoreSimple(function() { if (classRegExp) { _removeClass(blockElement, classRegExp); } var hasClasses = _hasClasses(blockElement); if (!hasClasses && blockElement.nodeName === (nodeName || DEFAULT_NODE_NAME)) { // Insert a line break afterwards and beforewards when there are siblings // that are not of type line break or block element _addLineBreakBeforeAndAfter(blockElement); dom.replaceWithChildNodes(blockElement); } else if (hasClasses) { // Make sure that styling is kept by renaming the element to <div> and copying over the class name dom.renameElement(blockElement, DEFAULT_NODE_NAME); } }); return; } // Find similiar block element and rename it (<h2 class="foo"></h2> => <h1 class="foo"></h1>) if (nodeName === null || wysihtml5.lang.array(BLOCK_ELEMENTS_GROUP).contains(nodeName)) { selectedNode = composer.selection.getSelectedNode(); blockElement = dom.getParentElement(selectedNode, { nodeName: BLOCK_ELEMENTS_GROUP }); if (blockElement) { composer.selection.executeAndRestoreSimple(function() { // Rename current block element to new block element and add class if (nodeName) { blockElement = dom.renameElement(blockElement, nodeName); } if (className) { _addClass(blockElement, className, classRegExp); } }); return; } } if (composer.commands.support(command)) { _execCommand(doc, command, nodeName || DEFAULT_NODE_NAME, className); return; } blockElement = doc.createElement(nodeName || DEFAULT_NODE_NAME); if (className) { blockElement.className = className; } _selectLineAndWrap(composer, blockElement); }, state: function(composer, command, nodeName, className, classRegExp) { nodeName = typeof(nodeName) === "string" ? nodeName.toUpperCase() : nodeName; var selectedNode = composer.selection.getSelectedNode(); return dom.getParentElement(selectedNode, { nodeName: nodeName, className: className, classRegExp: classRegExp }); }, value: function() { return undef; } }; })(wysihtml5);/** * formatInline scenarios for tag "B" (| = caret, |foo| = selected text) * * #1 caret in unformatted text: * abcdefg| * output: * abcdefg<b>|</b> * * #2 unformatted text selected: * abc|deg|h * output: * abc<b>|deg|</b>h * * #3 unformatted text selected across boundaries: * ab|c <span>defg|h</span> * output: * ab<b>|c </b><span><b>defg</b>|h</span> * * #4 formatted text entirely selected * <b>|abc|</b> * output: * |abc| * * #5 formatted text partially selected * <b>ab|c|</b> * output: * <b>ab</b>|c| * * #6 formatted text selected across boundaries * <span>ab|c</span> <b>de|fgh</b> * output: * <span>ab|c</span> de|<b>fgh</b> */ (function(wysihtml5) { var undef, // Treat <b> as <strong> and vice versa ALIAS_MAPPING = { "strong": "b", "em": "i", "b": "strong", "i": "em" }, htmlApplier = {}; function _getTagNames(tagName) { var alias = ALIAS_MAPPING[tagName]; return alias ? [tagName.toLowerCase(), alias.toLowerCase()] : [tagName.toLowerCase()]; } function _getApplier(tagName, className, classRegExp) { var identifier = tagName + ":" + className; if (!htmlApplier[identifier]) { htmlApplier[identifier] = new wysihtml5.selection.HTMLApplier(_getTagNames(tagName), className, classRegExp, true); } return htmlApplier[identifier]; } wysihtml5.commands.formatInline = { exec: function(composer, command, tagName, className, classRegExp) { var range = composer.selection.getRange(); if (!range) { return false; } _getApplier(tagName, className, classRegExp).toggleRange(range); composer.selection.setSelection(range); }, state: function(composer, command, tagName, className, classRegExp) { var doc = composer.doc, aliasTagName = ALIAS_MAPPING[tagName] || tagName, range; // Check whether the document contains a node with the desired tagName if (!wysihtml5.dom.hasElementWithTagName(doc, tagName) && !wysihtml5.dom.hasElementWithTagName(doc, aliasTagName)) { return false; } // Check whether the document contains a node with the desired className if (className && !wysihtml5.dom.hasElementWithClassName(doc, className)) { return false; } range = composer.selection.getRange(); if (!range) { return false; } return _getApplier(tagName, className, classRegExp).isAppliedToRange(range); }, value: function() { return undef; } }; })(wysihtml5);(function(wysihtml5) { var undef; wysihtml5.commands.insertHTML = { exec: function(composer, command, html) { if (composer.commands.support(command)) { composer.doc.execCommand(command, false, html); } else { composer.selection.insertHTML(html); } }, state: function() { return false; }, value: function() { return undef; } }; })(wysihtml5);(function(wysihtml5) { var NODE_NAME = "IMG"; wysihtml5.commands.insertImage = { /** * Inserts an <img> * If selection is already an image link, it removes it * * @example * // either ... * wysihtml5.commands.insertImage.exec(composer, "insertImage", "http://www.google.de/logo.jpg"); * // ... or ... * wysihtml5.commands.insertImage.exec(composer, "insertImage", { src: "http://www.google.de/logo.jpg", title: "foo" }); */ exec: function(composer, command, value) { value = typeof(value) === "object" ? value : { src: value }; var doc = composer.doc, image = this.state(composer), textNode, i, parent; if (image) { // Image already selected, set the caret before it and delete it composer.selection.setBefore(image); parent = image.parentNode; parent.removeChild(image); // and it's parent <a> too if it hasn't got any other relevant child nodes wysihtml5.dom.removeEmptyTextNodes(parent); if (parent.nodeName === "A" && !parent.firstChild) { composer.selection.setAfter(parent); parent.parentNode.removeChild(parent); } // firefox and ie sometimes don't remove the image handles, even though the image got removed wysihtml5.quirks.redraw(composer.element); return; } image = doc.createElement(NODE_NAME); for (i in value) { image[i] = value[i]; } composer.selection.insertNode(image); if (wysihtml5.browser.hasProblemsSettingCaretAfterImg()) { textNode = doc.createTextNode(wysihtml5.INVISIBLE_SPACE); composer.selection.insertNode(textNode); composer.selection.setAfter(textNode); } else { composer.selection.setAfter(image); } }, state: function(composer) { var doc = composer.doc, selectedNode, text, imagesInSelection; if (!wysihtml5.dom.hasElementWithTagName(doc, NODE_NAME)) { return false; } selectedNode = composer.selection.getSelectedNode(); if (!selectedNode) { return false; } if (selectedNode.nodeName === NODE_NAME) { // This works perfectly in IE return selectedNode; } if (selectedNode.nodeType !== wysihtml5.ELEMENT_NODE) { return false; } text = composer.selection.getText(); text = wysihtml5.lang.string(text).trim(); if (text) { return false; } imagesInSelection = composer.selection.getNodes(wysihtml5.ELEMENT_NODE, function(node) { return node.nodeName === "IMG"; }); if (imagesInSelection.length !== 1) { return false; } return imagesInSelection[0]; }, value: function(composer) { var image = this.state(composer); return image && image.src; } }; })(wysihtml5);(function(wysihtml5) { var undef, LINE_BREAK = "<br>" + (wysihtml5.browser.needsSpaceAfterLineBreak() ? " " : ""); wysihtml5.commands.insertLineBreak = { exec: function(composer, command) { if (composer.commands.support(command)) { composer.doc.execCommand(command, false, null); if (!wysihtml5.browser.autoScrollsToCaret()) { composer.selection.scrollIntoView(); } } else { composer.commands.exec("insertHTML", LINE_BREAK); } }, state: function() { return false; }, value: function() { return undef; } }; })(wysihtml5);(function(wysihtml5) { var undef; wysihtml5.commands.insertOrderedList = { exec: function(composer, command) { var doc = composer.doc, selectedNode = composer.selection.getSelectedNode(), list = wysihtml5.dom.getParentElement(selectedNode, { nodeName: "OL" }), otherList = wysihtml5.dom.getParentElement(selectedNode, { nodeName: "UL" }), tempClassName = "_wysihtml5-temp-" + new Date().getTime(), isEmpty, tempElement; if (composer.commands.support(command)) { doc.execCommand(command, false, null); return; } if (list) { // Unwrap list // <ol><li>foo</li><li>bar</li></ol> // becomes: // foo<br>bar<br> composer.selection.executeAndRestoreSimple(function() { wysihtml5.dom.resolveList(list); }); } else if (otherList) { // Turn an unordered list into an ordered list // <ul><li>foo</li><li>bar</li></ul> // becomes: // <ol><li>foo</li><li>bar</li></ol> composer.selection.executeAndRestoreSimple(function() { wysihtml5.dom.renameElement(otherList, "ol"); }); } else { // Create list composer.commands.exec("formatBlock", "div", tempClassName); tempElement = doc.querySelector("." + tempClassName); isEmpty = tempElement.innerHTML === "" || tempElement.innerHTML === wysihtml5.INVISIBLE_SPACE; composer.selection.executeAndRestoreSimple(function() { list = wysihtml5.dom.convertToList(tempElement, "ol"); }); if (isEmpty) { composer.selection.selectNode(list.querySelector("li")); } } }, state: function(composer) { var selectedNode = composer.selection.getSelectedNode(); return wysihtml5.dom.getParentElement(selectedNode, { nodeName: "OL" }); }, value: function() { return undef; } }; })(wysihtml5);(function(wysihtml5) { var undef; wysihtml5.commands.insertUnorderedList = { exec: function(composer, command) { var doc = composer.doc, selectedNode = composer.selection.getSelectedNode(), list = wysihtml5.dom.getParentElement(selectedNode, { nodeName: "UL" }), otherList = wysihtml5.dom.getParentElement(selectedNode, { nodeName: "OL" }), tempClassName = "_wysihtml5-temp-" + new Date().getTime(), isEmpty, tempElement; if (composer.commands.support(command)) { doc.execCommand(command, false, null); return; } if (list) { // Unwrap list // <ul><li>foo</li><li>bar</li></ul> // becomes: // foo<br>bar<br> composer.selection.executeAndRestoreSimple(function() { wysihtml5.dom.resolveList(list); }); } else if (otherList) { // Turn an ordered list into an unordered list // <ol><li>foo</li><li>bar</li></ol> // becomes: // <ul><li>foo</li><li>bar</li></ul> composer.selection.executeAndRestoreSimple(function() { wysihtml5.dom.renameElement(otherList, "ul"); }); } else { // Create list composer.commands.exec("formatBlock", "div", tempClassName); tempElement = doc.querySelector("." + tempClassName); isEmpty = tempElement.innerHTML === "" || tempElement.innerHTML === wysihtml5.INVISIBLE_SPACE; composer.selection.executeAndRestoreSimple(function() { list = wysihtml5.dom.convertToList(tempElement, "ul"); }); if (isEmpty) { composer.selection.selectNode(list.querySelector("li")); } } }, state: function(composer) { var selectedNode = composer.selection.getSelectedNode(); return wysihtml5.dom.getParentElement(selectedNode, { nodeName: "UL" }); }, value: function() { return undef; } }; })(wysihtml5);(function(wysihtml5) { var undef; wysihtml5.commands.italic = { exec: function(composer, command) { return wysihtml5.commands.formatInline.exec(composer, command, "i"); }, state: function(composer, command, color) { // element.ownerDocument.queryCommandState("italic") results: // firefox: only <i> // chrome: <i>, <em>, <blockquote>, ... // ie: <i>, <em> // opera: only <i> return wysihtml5.commands.formatInline.state(composer, command, "i"); }, value: function() { return undef; } }; })(wysihtml5);(function(wysihtml5) { var undef, CLASS_NAME = "wysiwyg-text-align-center", REG_EXP = /wysiwyg-text-align-[a-z]+/g; wysihtml5.commands.justifyCenter = { exec: function(composer, command) { return wysihtml5.commands.formatBlock.exec(composer, "formatBlock", null, CLASS_NAME, REG_EXP); }, state: function(composer, command) { return wysihtml5.commands.formatBlock.state(composer, "formatBlock", null, CLASS_NAME, REG_EXP); }, value: function() { return undef; } }; })(wysihtml5);(function(wysihtml5) { var undef, CLASS_NAME = "wysiwyg-text-align-left", REG_EXP = /wysiwyg-text-align-[a-z]+/g; wysihtml5.commands.justifyLeft = { exec: function(composer, command) { return wysihtml5.commands.formatBlock.exec(composer, "formatBlock", null, CLASS_NAME, REG_EXP); }, state: function(composer, command) { return wysihtml5.commands.formatBlock.state(composer, "formatBlock", null, CLASS_NAME, REG_EXP); }, value: function() { return undef; } }; })(wysihtml5);(function(wysihtml5) { var undef, CLASS_NAME = "wysiwyg-text-align-right", REG_EXP = /wysiwyg-text-align-[a-z]+/g; wysihtml5.commands.justifyRight = { exec: function(composer, command) { return wysihtml5.commands.formatBlock.exec(composer, "formatBlock", null, CLASS_NAME, REG_EXP); }, state: function(composer, command) { return wysihtml5.commands.formatBlock.state(composer, "formatBlock", null, CLASS_NAME, REG_EXP); }, value: function() { return undef; } }; })(wysihtml5);(function(wysihtml5) { var undef; wysihtml5.commands.underline = { exec: function(composer, command) { return wysihtml5.commands.formatInline.exec(composer, command, "u"); }, state: function(composer, command) { return wysihtml5.commands.formatInline.state(composer, command, "u"); }, value: function() { return undef; } }; })(wysihtml5);/** * Undo Manager for wysihtml5 * slightly inspired by http://rniwa.com/editing/undomanager.html#the-undomanager-interface */ (function(wysihtml5) { var Z_KEY = 90, Y_KEY = 89, BACKSPACE_KEY = 8, DELETE_KEY = 46, MAX_HISTORY_ENTRIES = 40, UNDO_HTML = '<span id="_wysihtml5-undo" class="_wysihtml5-temp">' + wysihtml5.INVISIBLE_SPACE + '</span>', REDO_HTML = '<span id="_wysihtml5-redo" class="_wysihtml5-temp">' + wysihtml5.INVISIBLE_SPACE + '</span>', dom = wysihtml5.dom; function cleanTempElements(doc) { var tempElement; while (tempElement = doc.querySelector("._wysihtml5-temp")) { tempElement.parentNode.removeChild(tempElement); } } wysihtml5.UndoManager = wysihtml5.lang.Dispatcher.extend( /** @scope wysihtml5.UndoManager.prototype */ { constructor: function(editor) { this.editor = editor; this.composer = editor.composer; this.element = this.composer.element; this.history = [this.composer.getValue()]; this.position = 1; // Undo manager currently only supported in browsers who have the insertHTML command (not IE) if (this.composer.commands.support("insertHTML")) { this._observe(); } }, _observe: function() { var that = this, doc = this.composer.sandbox.getDocument(), lastKey; // Catch CTRL+Z and CTRL+Y dom.observe(this.element, "keydown", function(event) { if (event.altKey || (!event.ctrlKey && !event.metaKey)) { return; } var keyCode = event.keyCode, isUndo = keyCode === Z_KEY && !event.shiftKey, isRedo = (keyCode === Z_KEY && event.shiftKey) || (keyCode === Y_KEY); if (isUndo) { that.undo(); event.preventDefault(); } else if (isRedo) { that.redo(); event.preventDefault(); } }); // Catch delete and backspace dom.observe(this.element, "keydown", function(event) { var keyCode = event.keyCode; if (keyCode === lastKey) { return; } lastKey = keyCode; if (keyCode === BACKSPACE_KEY || keyCode === DELETE_KEY) { that.transact(); } }); // Now this is very hacky: // These days browsers don't offer a undo/redo event which we could hook into // to be notified when the user hits undo/redo in the contextmenu. // Therefore we simply insert two elements as soon as the contextmenu gets opened. // The last element being inserted will be immediately be removed again by a exexCommand("undo") // => When the second element appears in the dom tree then we know the user clicked "redo" in the context menu // => When the first element disappears from the dom tree then we know the user clicked "undo" in the context menu if (wysihtml5.browser.hasUndoInContextMenu()) { var interval, observed, cleanUp = function() { cleanTempElements(doc); clearInterval(interval); }; dom.observe(this.element, "contextmenu", function() { cleanUp(); that.composer.selection.executeAndRestoreSimple(function() { if (that.element.lastChild) { that.composer.selection.setAfter(that.element.lastChild); } // enable undo button in context menu doc.execCommand("insertHTML", false, UNDO_HTML); // enable redo button in context menu doc.execCommand("insertHTML", false, REDO_HTML); doc.execCommand("undo", false, null); }); interval = setInterval(function() { if (doc.getElementById("_wysihtml5-redo")) { cleanUp(); that.redo(); } else if (!doc.getElementById("_wysihtml5-undo")) { cleanUp(); that.undo(); } }, 400); if (!observed) { observed = true; dom.observe(document, "mousedown", cleanUp); dom.observe(doc, ["mousedown", "paste", "cut", "copy"], cleanUp); } }); } this.editor .observe("newword:composer", function() { that.transact(); }) .observe("beforecommand:composer", function() { that.transact(); }); }, transact: function() { var previousHtml = this.history[this.position - 1], currentHtml = this.composer.getValue(); if (currentHtml == previousHtml) { return; } var length = this.history.length = this.position; if (length > MAX_HISTORY_ENTRIES) { this.history.shift(); this.position--; } this.position++; this.history.push(currentHtml); }, undo: function() { this.transact(); if (this.position <= 1) { return; } this.set(this.history[--this.position - 1]); this.editor.fire("undo:composer"); }, redo: function() { if (this.position >= this.history.length) { return; } this.set(this.history[++this.position - 1]); this.editor.fire("redo:composer"); }, set: function(html) { this.composer.setValue(html); this.editor.focus(true); } }); })(wysihtml5); /** * TODO: the following methods still need unit test coverage */ wysihtml5.views.View = Base.extend( /** @scope wysihtml5.views.View.prototype */ { constructor: function(parent, textareaElement, config) { this.parent = parent; this.element = textareaElement; this.config = config; this._observeViewChange(); }, _observeViewChange: function() { var that = this; this.parent.observe("beforeload", function() { that.parent.observe("change_view", function(view) { if (view === that.name) { that.parent.currentView = that; that.show(); // Using tiny delay here to make sure that the placeholder is set before focusing setTimeout(function() { that.focus(); }, 0); } else { that.hide(); } }); }); }, focus: function() { if (this.element.ownerDocument.querySelector(":focus") === this.element) { return; } try { this.element.focus(); } catch(e) {} }, hide: function() { this.element.style.display = "none"; }, show: function() { this.element.style.display = ""; }, disable: function() { this.element.setAttribute("disabled", "disabled"); }, enable: function() { this.element.removeAttribute("disabled"); } });(function(wysihtml5) { var dom = wysihtml5.dom, browser = wysihtml5.browser; wysihtml5.views.Composer = wysihtml5.views.View.extend( /** @scope wysihtml5.views.Composer.prototype */ { name: "composer", // Needed for firefox in order to display a proper caret in an empty contentEditable CARET_HACK: "<br>", constructor: function(parent, textareaElement, config) { this.base(parent, textareaElement, config); this.textarea = this.parent.textarea; this._initSandbox(); }, clear: function() { this.element.innerHTML = browser.displaysCaretInEmptyContentEditableCorrectly() ? "" : this.CARET_HACK; }, getValue: function(parse) { var value = this.isEmpty() ? "" : wysihtml5.quirks.getCorrectInnerHTML(this.element); if (parse) { value = this.parent.parse(value); } // Replace all "zero width no breaking space" chars // which are used as hacks to enable some functionalities // Also remove all CARET hacks that somehow got left value = wysihtml5.lang.string(value).replace(wysihtml5.INVISIBLE_SPACE).by(""); return value; }, setValue: function(html, parse) { if (parse) { html = this.parent.parse(html); } this.element.innerHTML = html; }, show: function() { this.iframe.style.display = this._displayStyle || ""; // Firefox needs this, otherwise contentEditable becomes uneditable this.disable(); this.enable(); }, hide: function() { this._displayStyle = dom.getStyle("display").from(this.iframe); if (this._displayStyle === "none") { this._displayStyle = null; } this.iframe.style.display = "none"; }, disable: function() { this.element.removeAttribute("contentEditable"); this.base(); }, enable: function() { this.element.setAttribute("contentEditable", "true"); this.base(); }, focus: function(setToEnd) { // IE 8 fires the focus event after .focus() // This is needed by our simulate_placeholder.js to work // therefore we clear it ourselves this time if (wysihtml5.browser.doesAsyncFocus() && this.hasPlaceholderSet()) { this.clear(); } this.base(); var lastChild = this.element.lastChild; if (setToEnd && lastChild) { if (lastChild.nodeName === "BR") { this.selection.setBefore(this.element.lastChild); } else { this.selection.setAfter(this.element.lastChild); } } }, getTextContent: function() { return dom.getTextContent(this.element); }, hasPlaceholderSet: function() { return this.getTextContent() == this.textarea.element.getAttribute("placeholder"); }, isEmpty: function() { var innerHTML = this.element.innerHTML, elementsWithVisualValue = "blockquote, ul, ol, img, embed, object, table, iframe, svg, video, audio, button, input, select, textarea"; return innerHTML === "" || innerHTML === this.CARET_HACK || this.hasPlaceholderSet() || (this.getTextContent() === "" && !this.element.querySelector(elementsWithVisualValue)); }, _initSandbox: function() { var that = this; this.sandbox = new dom.Sandbox(function() { that._create(); }, { stylesheets: this.config.stylesheets }); this.iframe = this.sandbox.getIframe(); // Create hidden field which tells the server after submit, that the user used an wysiwyg editor var hiddenField = document.createElement("input"); hiddenField.type = "hidden"; hiddenField.name = "_wysihtml5_mode"; hiddenField.value = 1; // Store reference to current wysihtml5 instance on the textarea element var textareaElement = this.textarea.element; dom.insert(this.iframe).after(textareaElement); dom.insert(hiddenField).after(textareaElement); }, _create: function() { var that = this; this.doc = this.sandbox.getDocument(); this.element = this.doc.body; this.textarea = this.parent.textarea; this.element.innerHTML = this.textarea.getValue(true); this.enable(); // Make sure our selection handler is ready this.selection = new wysihtml5.Selection(this.parent); // Make sure commands dispatcher is ready this.commands = new wysihtml5.Commands(this.parent); dom.copyAttributes([ "className", "spellcheck", "title", "lang", "dir", "accessKey" ]).from(this.textarea.element).to(this.element); dom.addClass(this.element, this.config.composerClassName); // Make the editor look like the original textarea, by syncing styles if (this.config.style) { this.style(); } this.observe(); var name = this.config.name; if (name) { dom.addClass(this.element, name); dom.addClass(this.iframe, name); } // Simulate html5 placeholder attribute on contentEditable element var placeholderText = typeof(this.config.placeholder) === "string" ? this.config.placeholder : this.textarea.element.getAttribute("placeholder"); if (placeholderText) { dom.simulatePlaceholder(this.parent, this, placeholderText); } // Make sure that the browser avoids using inline styles whenever possible this.commands.exec("styleWithCSS", false); this._initAutoLinking(); this._initObjectResizing(); this._initUndoManager(); // Simulate html5 autofocus on contentEditable element if (this.textarea.element.hasAttribute("autofocus") || document.querySelector(":focus") == this.textarea.element) { setTimeout(function() { that.focus(); }, 100); } wysihtml5.quirks.insertLineBreakOnReturn(this); // IE sometimes leaves a single paragraph, which can't be removed by the user if (!browser.clearsContentEditableCorrectly()) { wysihtml5.quirks.ensureProperClearing(this); } if (!browser.clearsListsInContentEditableCorrectly()) { wysihtml5.quirks.ensureProperClearingOfLists(this); } // Set up a sync that makes sure that textarea and editor have the same content if (this.initSync && this.config.sync) { this.initSync(); } // Okay hide the textarea, we are ready to go this.textarea.hide(); // Fire global (before-)load event this.parent.fire("beforeload").fire("load"); }, _initAutoLinking: function() { var that = this, supportsDisablingOfAutoLinking = browser.canDisableAutoLinking(), supportsAutoLinking = browser.doesAutoLinkingInContentEditable(); if (supportsDisablingOfAutoLinking) { this.commands.exec("autoUrlDetect", false); } if (!this.config.autoLink) { return; } // Only do the auto linking by ourselves when the browser doesn't support auto linking // OR when he supports auto linking but we were able to turn it off (IE9+) if (!supportsAutoLinking || (supportsAutoLinking && supportsDisablingOfAutoLinking)) { this.parent.observe("newword:composer", function() { that.selection.executeAndRestore(function(startContainer, endContainer) { dom.autoLink(endContainer.parentNode); }); }); } // Assuming we have the following: // <a href="http://www.google.de">http://www.google.de</a> // If a user now changes the url in the innerHTML we want to make sure that // it's synchronized with the href attribute (as long as the innerHTML is still a url) var // Use a live NodeList to check whether there are any links in the document links = this.sandbox.getDocument().getElementsByTagName("a"), // The autoLink helper method reveals a reg exp to detect correct urls urlRegExp = dom.autoLink.URL_REG_EXP, getTextContent = function(element) { var textContent = wysihtml5.lang.string(dom.getTextContent(element)).trim(); if (textContent.substr(0, 4) === "www.") { textContent = "http://" + textContent; } return textContent; }; dom.observe(this.element, "keydown", function(event) { if (!links.length) { return; } var selectedNode = that.selection.getSelectedNode(event.target.ownerDocument), link = dom.getParentElement(selectedNode, { nodeName: "A" }, 4), textContent; if (!link) { return; } textContent = getTextContent(link); // keydown is fired before the actual content is changed // therefore we set a timeout to change the href setTimeout(function() { var newTextContent = getTextContent(link); if (newTextContent === textContent) { return; } // Only set href when new href looks like a valid url if (newTextContent.match(urlRegExp)) { link.setAttribute("href", newTextContent); } }, 0); }); }, _initObjectResizing: function() { var properties = ["width", "height"], propertiesLength = properties.length, element = this.element; this.commands.exec("enableObjectResizing", this.config.allowObjectResizing); if (this.config.allowObjectResizing) { // IE sets inline styles after resizing objects // The following lines make sure that the width/height css properties // are copied over to the width/height attributes if (browser.supportsEvent("resizeend")) { dom.observe(element, "resizeend", function(event) { var target = event.target || event.srcElement, style = target.style, i = 0, property; for(; i<propertiesLength; i++) { property = properties[i]; if (style[property]) { target.setAttribute(property, parseInt(style[property], 10)); style[property] = ""; } } // After resizing IE sometimes forgets to remove the old resize handles wysihtml5.quirks.redraw(element); }); } } else { if (browser.supportsEvent("resizestart")) { dom.observe(element, "resizestart", function(event) { event.preventDefault(); }); } } }, _initUndoManager: function() { new wysihtml5.UndoManager(this.parent); } }); })(wysihtml5);(function(wysihtml5) { var dom = wysihtml5.dom, doc = document, win = window, HOST_TEMPLATE = doc.createElement("div"), /** * Styles to copy from textarea to the composer element */ TEXT_FORMATTING = [ "background-color", "color", "cursor", "font-family", "font-size", "font-style", "font-variant", "font-weight", "line-height", "letter-spacing", "text-align", "text-decoration", "text-indent", "text-rendering", "word-break", "word-wrap", "word-spacing" ], /** * Styles to copy from textarea to the iframe */ BOX_FORMATTING = [ "background-color", "border-collapse", "border-bottom-color", "border-bottom-style", "border-bottom-width", "border-left-color", "border-left-style", "border-left-width", "border-right-color", "border-right-style", "border-right-width", "border-top-color", "border-top-style", "border-top-width", "clear", "display", "float", "margin-bottom", "margin-left", "margin-right", "margin-top", "outline-color", "outline-offset", "outline-width", "outline-style", "padding-left", "padding-right", "padding-top", "padding-bottom", "position", "top", "left", "right", "bottom", "z-index", "vertical-align", "text-align", "-webkit-box-sizing", "-moz-box-sizing", "-ms-box-sizing", "box-sizing", "-webkit-box-shadow", "-moz-box-shadow", "-ms-box-shadow","box-shadow", "-webkit-border-top-right-radius", "-moz-border-radius-topright", "border-top-right-radius", "-webkit-border-bottom-right-radius", "-moz-border-radius-bottomright", "border-bottom-right-radius", "-webkit-border-bottom-left-radius", "-moz-border-radius-bottomleft", "border-bottom-left-radius", "-webkit-border-top-left-radius", "-moz-border-radius-topleft", "border-top-left-radius", "width", "height" ], /** * Styles to sync while the window gets resized */ RESIZE_STYLE = [ "width", "height", "top", "left", "right", "bottom" ], ADDITIONAL_CSS_RULES = [ "html { height: 100%; }", "body { min-height: 100%; padding: 0; margin: 0; margin-top: -1px; padding-top: 1px; }", "._wysihtml5-temp { display: none; }", wysihtml5.browser.isGecko ? "body.placeholder { color: graytext !important; }" : "body.placeholder { color: #a9a9a9 !important; }", "body[disabled] { background-color: #eee !important; color: #999 !important; cursor: default !important; }", // Ensure that user see's broken images and can delete them "img:-moz-broken { -moz-force-broken-image-icon: 1; height: 24px; width: 24px; }" ]; /** * With "setActive" IE offers a smart way of focusing elements without scrolling them into view: * http://msdn.microsoft.com/en-us/library/ms536738(v=vs.85).aspx * * Other browsers need a more hacky way: (pssst don't tell my mama) * In order to prevent the element being scrolled into view when focusing it, we simply * move it out of the scrollable area, focus it, and reset it's position */ var focusWithoutScrolling = function(element) { if (element.setActive) { // Following line could cause a js error when the textarea is invisible // See https://github.com/xing/wysihtml5/issues/9 try { element.setActive(); } catch(e) {} } else { var elementStyle = element.style, originalScrollTop = doc.documentElement.scrollTop || doc.body.scrollTop, originalScrollLeft = doc.documentElement.scrollLeft || doc.body.scrollLeft, originalStyles = { position: elementStyle.position, top: elementStyle.top, left: elementStyle.left, WebkitUserSelect: elementStyle.WebkitUserSelect }; dom.setStyles({ position: "absolute", top: "-99999px", left: "-99999px", // Don't ask why but temporarily setting -webkit-user-select to none makes the whole thing performing smoother WebkitUserSelect: "none" }).on(element); element.focus(); dom.setStyles(originalStyles).on(element); if (win.scrollTo) { // Some browser extensions unset this method to prevent annoyances // "Better PopUp Blocker" for Chrome http://code.google.com/p/betterpopupblocker/source/browse/trunk/blockStart.js#100 // Issue: http://code.google.com/p/betterpopupblocker/issues/detail?id=1 win.scrollTo(originalScrollLeft, originalScrollTop); } } }; wysihtml5.views.Composer.prototype.style = function() { var that = this, originalActiveElement = doc.querySelector(":focus"), textareaElement = this.textarea.element, hasPlaceholder = textareaElement.hasAttribute("placeholder"), originalPlaceholder = hasPlaceholder && textareaElement.getAttribute("placeholder"); this.focusStylesHost = this.focusStylesHost || HOST_TEMPLATE.cloneNode(false); this.blurStylesHost = this.blurStylesHost || HOST_TEMPLATE.cloneNode(false); // Remove placeholder before copying (as the placeholder has an affect on the computed style) if (hasPlaceholder) { textareaElement.removeAttribute("placeholder"); } if (textareaElement === originalActiveElement) { textareaElement.blur(); } // --------- iframe styles (has to be set before editor styles, otherwise IE9 sets wrong fontFamily on blurStylesHost) --------- dom.copyStyles(BOX_FORMATTING).from(textareaElement).to(this.iframe).andTo(this.blurStylesHost); // --------- editor styles --------- dom.copyStyles(TEXT_FORMATTING).from(textareaElement).to(this.element).andTo(this.blurStylesHost); // --------- apply standard rules --------- dom.insertCSS(ADDITIONAL_CSS_RULES).into(this.element.ownerDocument); // --------- :focus styles --------- focusWithoutScrolling(textareaElement); dom.copyStyles(BOX_FORMATTING).from(textareaElement).to(this.focusStylesHost); dom.copyStyles(TEXT_FORMATTING).from(textareaElement).to(this.focusStylesHost); // Make sure that we don't change the display style of the iframe when copying styles oblur/onfocus // this is needed for when the change_view event is fired where the iframe is hidden and then // the blur event fires and re-displays it var boxFormattingStyles = wysihtml5.lang.array(BOX_FORMATTING).without(["display"]); // --------- restore focus --------- if (originalActiveElement) { originalActiveElement.focus(); } else { textareaElement.blur(); } // --------- restore placeholder --------- if (hasPlaceholder) { textareaElement.setAttribute("placeholder", originalPlaceholder); } // When copying styles, we only get the computed style which is never returned in percent unit // Therefore we've to recalculate style onresize if (!wysihtml5.browser.hasCurrentStyleProperty()) { var winObserver = dom.observe(win, "resize", function() { // Remove event listener if composer doesn't exist anymore if (!dom.contains(document.documentElement, that.iframe)) { winObserver.stop(); return; } var originalTextareaDisplayStyle = dom.getStyle("display").from(textareaElement), originalComposerDisplayStyle = dom.getStyle("display").from(that.iframe); textareaElement.style.display = ""; that.iframe.style.display = "none"; dom.copyStyles(RESIZE_STYLE) .from(textareaElement) .to(that.iframe) .andTo(that.focusStylesHost) .andTo(that.blurStylesHost); that.iframe.style.display = originalComposerDisplayStyle; textareaElement.style.display = originalTextareaDisplayStyle; }); } // --------- Sync focus/blur styles --------- this.parent.observe("focus:composer", function() { dom.copyStyles(boxFormattingStyles) .from(that.focusStylesHost).to(that.iframe); dom.copyStyles(TEXT_FORMATTING) .from(that.focusStylesHost).to(that.element); }); this.parent.observe("blur:composer", function() { dom.copyStyles(boxFormattingStyles) .from(that.blurStylesHost).to(that.iframe); dom.copyStyles(TEXT_FORMATTING) .from(that.blurStylesHost).to(that.element); }); return this; }; })(wysihtml5);/** * Taking care of events * - Simulating 'change' event on contentEditable element * - Handling drag & drop logic * - Catch paste events * - Dispatch proprietary newword:composer event * - Keyboard shortcuts */ (function(wysihtml5) { var dom = wysihtml5.dom, browser = wysihtml5.browser, /** * Map keyCodes to query commands */ shortcuts = { "66": "bold", // B "73": "italic", // I "85": "underline" // U }; wysihtml5.views.Composer.prototype.observe = function() { var that = this, state = this.getValue(), iframe = this.sandbox.getIframe(), element = this.element, focusBlurElement = browser.supportsEventsInIframeCorrectly() ? element : this.sandbox.getWindow(), // Firefox < 3.5 doesn't support the drop event, instead it supports a so called "dragdrop" event which behaves almost the same pasteEvents = browser.supportsEvent("drop") ? ["drop", "paste"] : ["dragdrop", "paste"]; // --------- destroy:composer event --------- dom.observe(iframe, "DOMNodeRemoved", function() { clearInterval(domNodeRemovedInterval); that.parent.fire("destroy:composer"); }); // DOMNodeRemoved event is not supported in IE 8 var domNodeRemovedInterval = setInterval(function() { if (!dom.contains(document.documentElement, iframe)) { clearInterval(domNodeRemovedInterval); that.parent.fire("destroy:composer"); } }, 250); // --------- Focus & blur logic --------- dom.observe(focusBlurElement, "focus", function() { that.parent.fire("focus").fire("focus:composer"); // Delay storing of state until all focus handler are fired // especially the one which resets the placeholder setTimeout(function() { state = that.getValue(); }, 0); }); dom.observe(focusBlurElement, "blur", function() { if (state !== that.getValue()) { that.parent.fire("change").fire("change:composer"); } that.parent.fire("blur").fire("blur:composer"); }); if (wysihtml5.browser.isIos()) { // When on iPad/iPhone/IPod after clicking outside of editor, the editor loses focus // but the UI still acts as if the editor has focus (blinking caret and onscreen keyboard visible) // We prevent that by focusing a temporary input element which immediately loses focus dom.observe(element, "blur", function() { var input = element.ownerDocument.createElement("input"), originalScrollTop = document.documentElement.scrollTop || document.body.scrollTop, originalScrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft; try { that.selection.insertNode(input); } catch(e) { element.appendChild(input); } input.focus(); input.parentNode.removeChild(input); window.scrollTo(originalScrollLeft, originalScrollTop); }); } // --------- Drag & Drop logic --------- dom.observe(element, "dragenter", function() { that.parent.fire("unset_placeholder"); }); if (browser.firesOnDropOnlyWhenOnDragOverIsCancelled()) { dom.observe(element, ["dragover", "dragenter"], function(event) { event.preventDefault(); }); } dom.observe(element, pasteEvents, function(event) { var dataTransfer = event.dataTransfer, data; console.log('PASTED', event); if (dataTransfer && browser.supportsDataTransfer()) { data = dataTransfer.getData("text/html") || dataTransfer.getData("text/plain"); } if (data) { element.focus(); that.commands.exec("insertHTML", data); that.parent.fire("paste").fire("paste:composer"); event.stopPropagation(); event.preventDefault(); } else { setTimeout(function() { that.parent.fire("paste").fire("paste:composer"); }, 0); } }); // --------- neword event --------- dom.observe(element, "keyup", function(event) { var keyCode = event.keyCode; if (keyCode === wysihtml5.SPACE_KEY || keyCode === wysihtml5.ENTER_KEY) { that.parent.fire("newword:composer"); } }); this.parent.observe("paste:composer", function() { setTimeout(function() { that.parent.fire("newword:composer"); }, 0); }); // --------- Make sure that images are selected when clicking on them --------- if (!browser.canSelectImagesInContentEditable()) { dom.observe(element, "mousedown", function(event) { var target = event.target; if (target.nodeName === "IMG") { that.selection.selectNode(target); event.preventDefault(); } }); } // --------- Shortcut logic --------- dom.observe(element, "keydown", function(event) { var keyCode = event.keyCode, command = shortcuts[keyCode]; if ((event.ctrlKey || event.metaKey) && !event.altKey && command) { that.commands.exec(command); event.preventDefault(); } }); // --------- Make sure that when pressing backspace/delete on selected images deletes the image and it's anchor --------- dom.observe(element, "keydown", function(event) { var target = that.selection.getSelectedNode(true), keyCode = event.keyCode, parent; if (target && target.nodeName === "IMG" && (keyCode === wysihtml5.BACKSPACE_KEY || keyCode === wysihtml5.DELETE_KEY)) { // 8 => backspace, 46 => delete parent = target.parentNode; // delete the <img> parent.removeChild(target); // and it's parent <a> too if it hasn't got any other child nodes if (parent.nodeName === "A" && !parent.firstChild) { parent.parentNode.removeChild(parent); } setTimeout(function() { wysihtml5.quirks.redraw(element); }, 0); event.preventDefault(); } }); // --------- Show url in tooltip when hovering links or images --------- var titlePrefixes = { IMG: "Image: ", A: "Link: " }; dom.observe(element, "mouseover", function(event) { var target = event.target, nodeName = target.nodeName, title; if (nodeName !== "A" && nodeName !== "IMG") { return; } var hasTitle = target.hasAttribute("title"); if(!hasTitle){ title = titlePrefixes[nodeName] + (target.getAttribute("href") || target.getAttribute("src")); target.setAttribute("title", title); } }); }; })(wysihtml5);/** * Class that takes care that the value of the composer and the textarea is always in sync */ (function(wysihtml5) { var INTERVAL = 400; wysihtml5.views.Synchronizer = Base.extend( /** @scope wysihtml5.views.Synchronizer.prototype */ { constructor: function(editor, textarea, composer) { this.editor = editor; this.textarea = textarea; this.composer = composer; this._observe(); }, /** * Sync html from composer to textarea * Takes care of placeholders * @param {Boolean} shouldParseHtml Whether the html should be sanitized before inserting it into the textarea */ fromComposerToTextarea: function(shouldParseHtml) { this.textarea.setValue(wysihtml5.lang.string(this.composer.getValue()).trim(), shouldParseHtml); }, /** * Sync value of textarea to composer * Takes care of placeholders * @param {Boolean} shouldParseHtml Whether the html should be sanitized before inserting it into the composer */ fromTextareaToComposer: function(shouldParseHtml) { var textareaValue = this.textarea.getValue(); if (textareaValue) { this.composer.setValue(textareaValue, shouldParseHtml); } else { this.composer.clear(); this.editor.fire("set_placeholder"); } }, /** * Invoke syncing based on view state * @param {Boolean} shouldParseHtml Whether the html should be sanitized before inserting it into the composer/textarea */ sync: function(shouldParseHtml) { if (this.editor.currentView.name === "textarea") { this.fromTextareaToComposer(shouldParseHtml); } else { this.fromComposerToTextarea(shouldParseHtml); } }, /** * Initializes interval-based syncing * also makes sure that on-submit the composer's content is synced with the textarea * immediately when the form gets submitted */ _observe: function() { var interval, that = this, form = this.textarea.element.form, startInterval = function() { interval = setInterval(function() { that.fromComposerToTextarea(); }, INTERVAL); }, stopInterval = function() { clearInterval(interval); interval = null; }; startInterval(); if (form) { // If the textarea is in a form make sure that after onreset and onsubmit the composer // has the correct state wysihtml5.dom.observe(form, "submit", function() { that.sync(true); }); wysihtml5.dom.observe(form, "reset", function() { setTimeout(function() { that.fromTextareaToComposer(); }, 0); }); } this.editor.observe("change_view", function(view) { if (view === "composer" && !interval) { that.fromTextareaToComposer(true); startInterval(); } else if (view === "textarea") { that.fromComposerToTextarea(true); stopInterval(); } }); this.editor.observe("destroy:composer", stopInterval); } }); })(wysihtml5); wysihtml5.views.Textarea = wysihtml5.views.View.extend( /** @scope wysihtml5.views.Textarea.prototype */ { name: "textarea", constructor: function(parent, textareaElement, config) { this.base(parent, textareaElement, config); this._observe(); }, clear: function() { this.element.value = ""; }, getValue: function(parse) { var value = this.isEmpty() ? "" : this.element.value; if (parse) { value = this.parent.parse(value); } return value; }, setValue: function(html, parse) { if (parse) { html = this.parent.parse(html); } this.element.value = html; }, hasPlaceholderSet: function() { var supportsPlaceholder = wysihtml5.browser.supportsPlaceholderAttributeOn(this.element), placeholderText = this.element.getAttribute("placeholder") || null, value = this.element.value, isEmpty = !value; return (supportsPlaceholder && isEmpty) || (value === placeholderText); }, isEmpty: function() { return !wysihtml5.lang.string(this.element.value).trim() || this.hasPlaceholderSet(); }, _observe: function() { var element = this.element, parent = this.parent, eventMapping = { focusin: "focus", focusout: "blur" }, /** * Calling focus() or blur() on an element doesn't synchronously trigger the attached focus/blur events * This is the case for focusin and focusout, so let's use them whenever possible, kkthxbai */ events = wysihtml5.browser.supportsEvent("focusin") ? ["focusin", "focusout", "change"] : ["focus", "blur", "change"]; parent.observe("beforeload", function() { wysihtml5.dom.observe(element, events, function(event) { var eventName = eventMapping[event.type] || event.type; parent.fire(eventName).fire(eventName + ":textarea"); }); wysihtml5.dom.observe(element, ["paste", "drop"], function() { setTimeout(function() { parent.fire("paste").fire("paste:textarea"); }, 0); }); }); } });/** * Toolbar Dialog * * @param {Element} link The toolbar link which causes the dialog to show up * @param {Element} container The dialog container * * @example * <!-- Toolbar link --> * <a data-wysihtml5-command="insertImage">insert an image</a> * * <!-- Dialog --> * <div data-wysihtml5-dialog="insertImage" style="display: none;"> * <label> * URL: <input data-wysihtml5-dialog-field="src" value="http://"> * </label> * <label> * Alternative text: <input data-wysihtml5-dialog-field="alt" value=""> * </label> * </div> * * <script> * var dialog = new wysihtml5.toolbar.Dialog( * document.querySelector("[data-wysihtml5-command='insertImage']"), * document.querySelector("[data-wysihtml5-dialog='insertImage']") * ); * dialog.observe("save", function(attributes) { * // do something * }); * </script> */ (function(wysihtml5) { var dom = wysihtml5.dom, CLASS_NAME_OPENED = "wysihtml5-command-dialog-opened", SELECTOR_FORM_ELEMENTS = "input, select, textarea", SELECTOR_FIELDS = "[data-wysihtml5-dialog-field]", ATTRIBUTE_FIELDS = "data-wysihtml5-dialog-field"; wysihtml5.toolbar.Dialog = wysihtml5.lang.Dispatcher.extend( /** @scope wysihtml5.toolbar.Dialog.prototype */ { constructor: function(link, container) { this.link = link; this.container = container; }, _observe: function() { if (this._observed) { return; } var that = this, callbackWrapper = function(event) { var attributes = that._serialize(); if (attributes == that.elementToChange) { that.fire("edit", attributes); } else { that.fire("save", attributes); } that.hide(); event.preventDefault(); event.stopPropagation(); }; dom.observe(that.link, "click", function(event) { if (dom.hasClass(that.link, CLASS_NAME_OPENED)) { setTimeout(function() { that.hide(); }, 0); } }); dom.observe(this.container, "keydown", function(event) { var keyCode = event.keyCode; if (keyCode === wysihtml5.ENTER_KEY) { callbackWrapper(event); } if (keyCode === wysihtml5.ESCAPE_KEY) { that.hide(); } }); dom.delegate(this.container, "[data-wysihtml5-dialog-action=save]", "click", callbackWrapper); dom.delegate(this.container, "[data-wysihtml5-dialog-action=cancel]", "click", function(event) { that.fire("cancel"); that.hide(); event.preventDefault(); event.stopPropagation(); }); var formElements = this.container.querySelectorAll(SELECTOR_FORM_ELEMENTS), i = 0, length = formElements.length, _clearInterval = function() { clearInterval(that.interval); }; for (; i<length; i++) { dom.observe(formElements[i], "change", _clearInterval); } this._observed = true; }, /** * Grabs all fields in the dialog and puts them in key=>value style in an object which * then gets returned */ _serialize: function() { var data = this.elementToChange || {}, fields = this.container.querySelectorAll(SELECTOR_FIELDS), length = fields.length, i = 0; for (; i<length; i++) { data[fields[i].getAttribute(ATTRIBUTE_FIELDS)] = fields[i].value; } return data; }, /** * Takes the attributes of the "elementToChange" * and inserts them in their corresponding dialog input fields * * Assume the "elementToChange" looks like this: * <a href="http://www.google.com" target="_blank">foo</a> * * and we have the following dialog: * <input type="text" data-wysihtml5-dialog-field="href" value=""> * <input type="text" data-wysihtml5-dialog-field="target" value=""> * * after calling _interpolate() the dialog will look like this * <input type="text" data-wysihtml5-dialog-field="href" value="http://www.google.com"> * <input type="text" data-wysihtml5-dialog-field="target" value="_blank"> * * Basically it adopted the attribute values into the corresponding input fields * */ _interpolate: function(avoidHiddenFields) { var field, fieldName, newValue, focusedElement = document.querySelector(":focus"), fields = this.container.querySelectorAll(SELECTOR_FIELDS), length = fields.length, i = 0; for (; i<length; i++) { field = fields[i]; // Never change elements where the user is currently typing in if (field === focusedElement) { continue; } // Don't update hidden fields // See https://github.com/xing/wysihtml5/pull/14 if (avoidHiddenFields && field.type === "hidden") { continue; } fieldName = field.getAttribute(ATTRIBUTE_FIELDS); newValue = this.elementToChange ? (this.elementToChange[fieldName] || "") : field.defaultValue; field.value = newValue; } }, /** * Show the dialog element */ show: function(elementToChange) { var that = this, firstField = this.container.querySelector(SELECTOR_FORM_ELEMENTS); this.elementToChange = elementToChange; this._observe(); this._interpolate(); if (elementToChange) { this.interval = setInterval(function() { that._interpolate(true); }, 500); } dom.addClass(this.link, CLASS_NAME_OPENED); this.container.style.display = ""; this.fire("show"); if (firstField && !elementToChange) { try { firstField.focus(); } catch(e) {} } }, /** * Hide the dialog element */ hide: function() { clearInterval(this.interval); this.elementToChange = null; dom.removeClass(this.link, CLASS_NAME_OPENED); this.container.style.display = "none"; this.fire("hide"); } }); })(wysihtml5); /** * Converts speech-to-text and inserts this into the editor * As of now (2011/03/25) this only is supported in Chrome >= 11 * * Note that it sends the recorded audio to the google speech recognition api: * http://stackoverflow.com/questions/4361826/does-chrome-have-buil-in-speech-recognition-for-input-type-text-x-webkit-speec * * Current HTML5 draft can be found here * http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html * * "Accessing Google Speech API Chrome 11" * http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/ */ (function(wysihtml5) { var dom = wysihtml5.dom; var linkStyles = { position: "relative" }; var wrapperStyles = { left: 0, margin: 0, opacity: 0, overflow: "hidden", padding: 0, position: "absolute", top: 0, zIndex: 1 }; var inputStyles = { cursor: "inherit", fontSize: "50px", height: "50px", marginTop: "-25px", outline: 0, padding: 0, position: "absolute", right: "-4px", top: "50%" }; var inputAttributes = { "x-webkit-speech": "", "speech": "" }; wysihtml5.toolbar.Speech = function(parent, link) { var input = document.createElement("input"); if (!wysihtml5.browser.supportsSpeechApiOn(input)) { link.style.display = "none"; return; } var wrapper = document.createElement("div"); wysihtml5.lang.object(wrapperStyles).merge({ width: link.offsetWidth + "px", height: link.offsetHeight + "px" }); dom.insert(input).into(wrapper); dom.insert(wrapper).into(link); dom.setStyles(inputStyles).on(input); dom.setAttributes(inputAttributes).on(input) dom.setStyles(wrapperStyles).on(wrapper); dom.setStyles(linkStyles).on(link); var eventName = "onwebkitspeechchange" in input ? "webkitspeechchange" : "speechchange"; dom.observe(input, eventName, function() { parent.execCommand("insertText", input.value); input.value = ""; }); dom.observe(input, "click", function(event) { if (dom.hasClass(link, "wysihtml5-command-disabled")) { event.preventDefault(); } event.stopPropagation(); }); }; })(wysihtml5);/** * Toolbar * * @param {Object} parent Reference to instance of Editor instance * @param {Element} container Reference to the toolbar container element * * @example * <div id="toolbar"> * <a data-wysihtml5-command="createLink">insert link</a> * <a data-wysihtml5-command="formatBlock" data-wysihtml5-command-value="h1">insert h1</a> * </div> * * <script> * var toolbar = new wysihtml5.toolbar.Toolbar(editor, document.getElementById("toolbar")); * </script> */ (function(wysihtml5) { var CLASS_NAME_COMMAND_DISABLED = "wysihtml5-command-disabled", CLASS_NAME_COMMANDS_DISABLED = "wysihtml5-commands-disabled", CLASS_NAME_COMMAND_ACTIVE = "wysihtml5-command-active", CLASS_NAME_ACTION_ACTIVE = "wysihtml5-action-active", dom = wysihtml5.dom; wysihtml5.toolbar.Toolbar = Base.extend( /** @scope wysihtml5.toolbar.Toolbar.prototype */ { constructor: function(editor, container) { this.editor = editor; this.container = typeof(container) === "string" ? document.getElementById(container) : container; this.composer = editor.composer; this._getLinks("command"); this._getLinks("action"); this._observe(); this.show(); var speechInputLinks = this.container.querySelectorAll("[data-wysihtml5-command=insertSpeech]"), length = speechInputLinks.length, i = 0; for (; i<length; i++) { new wysihtml5.toolbar.Speech(this, speechInputLinks[i]); } }, _getLinks: function(type) { var links = this[type + "Links"] = wysihtml5.lang.array(this.container.querySelectorAll("[data-wysihtml5-" + type + "]")).get(), length = links.length, i = 0, mapping = this[type + "Mapping"] = {}, link, group, name, value, dialog; for (; i<length; i++) { link = links[i]; name = link.getAttribute("data-wysihtml5-" + type); value = link.getAttribute("data-wysihtml5-" + type + "-value"); group = this.container.querySelector("[data-wysihtml5-" + type + "-group='" + name + "']"); dialog = this._getDialog(link, name); mapping[name + ":" + value] = { link: link, group: group, name: name, value: value, dialog: dialog, state: false }; } }, _getDialog: function(link, command) { var that = this, dialogElement = this.container.querySelector("[data-wysihtml5-dialog='" + command + "']"), dialog, caretBookmark; if (dialogElement) { dialog = new wysihtml5.toolbar.Dialog(link, dialogElement); dialog.observe("show", function() { caretBookmark = that.composer.selection.getBookmark(); that.editor.fire("show:dialog", { command: command, dialogContainer: dialogElement, commandLink: link }); }); dialog.observe("save", function(attributes) { if (caretBookmark) { that.composer.selection.setBookmark(caretBookmark); } that._execCommand(command, attributes); that.editor.fire("save:dialog", { command: command, dialogContainer: dialogElement, commandLink: link }); }); dialog.observe("cancel", function() { that.editor.focus(false); that.editor.fire("cancel:dialog", { command: command, dialogContainer: dialogElement, commandLink: link }); }); } return dialog; }, /** * @example * var toolbar = new wysihtml5.Toolbar(); * // Insert a <blockquote> element or wrap current selection in <blockquote> * toolbar.execCommand("formatBlock", "blockquote"); */ execCommand: function(command, commandValue) { if (this.commandsDisabled) { return; } var commandObj = this.commandMapping[command + ":" + commandValue]; // Show dialog when available if (commandObj && commandObj.dialog && !commandObj.state) { commandObj.dialog.show(); } else { this._execCommand(command, commandValue); } }, _execCommand: function(command, commandValue) { // Make sure that composer is focussed (false => don't move caret to the end) this.editor.focus(false); this.composer.commands.exec(command, commandValue); this._updateLinkStates(); }, execAction: function(action) { var editor = this.editor; switch(action) { case "change_view": if (editor.currentView === editor.textarea) { editor.fire("change_view", "composer"); } else { editor.fire("change_view", "textarea"); } break; } }, _observe: function() { var that = this, editor = this.editor, container = this.container, links = this.commandLinks.concat(this.actionLinks), length = links.length, i = 0; for (; i<length; i++) { // 'javascript:;' and unselectable=on Needed for IE, but done in all browsers to make sure that all get the same css applied // (you know, a:link { ... } doesn't match anchors with missing href attribute) dom.setAttributes({ href: "javascript:;", unselectable: "on" }).on(links[i]); } // Needed for opera dom.delegate(container, "[data-wysihtml5-command]", "mousedown", function(event) { event.preventDefault(); }); dom.delegate(container, "[data-wysihtml5-command]", "click", function(event) { var link = this, command = link.getAttribute("data-wysihtml5-command"), commandValue = link.getAttribute("data-wysihtml5-command-value"); that.execCommand(command, commandValue); event.preventDefault(); }); dom.delegate(container, "[data-wysihtml5-action]", "click", function(event) { var action = this.getAttribute("data-wysihtml5-action"); that.execAction(action); event.preventDefault(); }); editor.observe("focus:composer", function() { that.bookmark = null; clearInterval(that.interval); that.interval = setInterval(function() { that._updateLinkStates(); }, 500); }); editor.observe("blur:composer", function() { clearInterval(that.interval); }); editor.observe("destroy:composer", function() { clearInterval(that.interval); }); editor.observe("change_view", function(currentView) { // Set timeout needed in order to let the blur event fire first setTimeout(function() { that.commandsDisabled = (currentView !== "composer"); that._updateLinkStates(); if (that.commandsDisabled) { dom.addClass(container, CLASS_NAME_COMMANDS_DISABLED); } else { dom.removeClass(container, CLASS_NAME_COMMANDS_DISABLED); } }, 0); }); }, _updateLinkStates: function() { var element = this.composer.element, commandMapping = this.commandMapping, actionMapping = this.actionMapping, i, state, action, command; // every millisecond counts... this is executed quite often for (i in commandMapping) { command = commandMapping[i]; if (this.commandsDisabled) { state = false; dom.removeClass(command.link, CLASS_NAME_COMMAND_ACTIVE); if (command.group) { dom.removeClass(command.group, CLASS_NAME_COMMAND_ACTIVE); } if (command.dialog) { command.dialog.hide(); } } else { state = this.composer.commands.state(command.name, command.value); if (wysihtml5.lang.object(state).isArray()) { // Grab first and only object/element in state array, otherwise convert state into boolean // to avoid showing a dialog for multiple selected elements which may have different attributes // eg. when two links with different href are selected, the state will be an array consisting of both link elements // but the dialog interface can only update one state = state.length === 1 ? state[0] : true; } dom.removeClass(command.link, CLASS_NAME_COMMAND_DISABLED); if (command.group) { dom.removeClass(command.group, CLASS_NAME_COMMAND_DISABLED); } } if (command.state === state) { continue; } command.state = state; if (state) { dom.addClass(command.link, CLASS_NAME_COMMAND_ACTIVE); if (command.group) { dom.addClass(command.group, CLASS_NAME_COMMAND_ACTIVE); } if (command.dialog) { if (typeof(state) === "object") { command.dialog.show(state); } else { command.dialog.hide(); } } } else { dom.removeClass(command.link, CLASS_NAME_COMMAND_ACTIVE); if (command.group) { dom.removeClass(command.group, CLASS_NAME_COMMAND_ACTIVE); } if (command.dialog) { command.dialog.hide(); } } } for (i in actionMapping) { action = actionMapping[i]; if (action.name === "change_view") { action.state = this.editor.currentView === this.editor.textarea; if (action.state) { dom.addClass(action.link, CLASS_NAME_ACTION_ACTIVE); } else { dom.removeClass(action.link, CLASS_NAME_ACTION_ACTIVE); } } } }, show: function() { this.container.style.display = ""; }, hide: function() { this.container.style.display = "none"; } }); })(wysihtml5); /** * WYSIHTML5 Editor * * @param {Element} textareaElement Reference to the textarea which should be turned into a rich text interface * @param {Object} [config] See defaultConfig object below for explanation of each individual config option * * @events * load * beforeload (for internal use only) * focus * focus:composer * focus:textarea * blur * blur:composer * blur:textarea * change * change:composer * change:textarea * paste * paste:composer * paste:textarea * newword:composer * destroy:composer * undo:composer * redo:composer * beforecommand:composer * aftercommand:composer * change_view */ (function(wysihtml5) { var undef; var defaultConfig = { // Give the editor a name, the name will also be set as class name on the iframe and on the iframe's body name: undef, // Whether the editor should look like the textarea (by adopting styles) style: true, // Id of the toolbar element, pass falsey value if you don't want any toolbar logic toolbar: undef, // Whether urls, entered by the user should automatically become clickable-links autoLink: true, // Object which includes parser rules to apply when html gets inserted via copy & paste // See parser_rules/*.js for examples parserRules: { tags: { br: {}, span: {}, div: {}, p: {} }, classes: {} }, // Parser method to use when the user inserts content via copy & paste parser: wysihtml5.dom.parse, // Class name which should be set on the contentEditable element in the created sandbox iframe, can be styled via the 'stylesheets' option composerClassName: "wysihtml5-editor", // Class name to add to the body when the wysihtml5 editor is supported bodyClassName: "wysihtml5-supported", // Array (or single string) of stylesheet urls to be loaded in the editor's iframe stylesheets: [], // Placeholder text to use, defaults to the placeholder attribute on the textarea element placeholderText: undef, // Whether the composer should allow the user to manually resize images, tables etc. allowObjectResizing: true, // Whether the rich text editor should be rendered on touch devices (wysihtml5 >= 0.3.0 comes with basic support for iOS 5) supportTouchDevices: true }; wysihtml5.Editor = wysihtml5.lang.Dispatcher.extend( /** @scope wysihtml5.Editor.prototype */ { constructor: function(textareaElement, config) { this.textareaElement = typeof(textareaElement) === "string" ? document.getElementById(textareaElement) : textareaElement; this.config = wysihtml5.lang.object({}).merge(defaultConfig).merge(config).get(); this.textarea = new wysihtml5.views.Textarea(this, this.textareaElement, this.config); this.currentView = this.textarea; this._isCompatible = wysihtml5.browser.supported(); // Sort out unsupported/unwanted browsers here if (!this._isCompatible || (!this.config.supportTouchDevices && wysihtml5.browser.isTouchDevice())) { var that = this; setTimeout(function() { that.fire("beforeload").fire("load"); }, 0); return; } // Add class name to body, to indicate that the editor is supported wysihtml5.dom.addClass(document.body, this.config.bodyClassName); this.composer = new wysihtml5.views.Composer(this, this.textareaElement, this.config); this.currentView = this.composer; if (typeof(this.config.parser) === "function") { this._initParser(); } this.observe("beforeload", function() { this.synchronizer = new wysihtml5.views.Synchronizer(this, this.textarea, this.composer); if (this.config.toolbar) { this.toolbar = new wysihtml5.toolbar.Toolbar(this, this.config.toolbar); } }); try { console.log("Heya! This page is using wysihtml5 for rich text editing. Check out https://github.com/xing/wysihtml5"); } catch(e) {} }, isCompatible: function() { return this._isCompatible; }, clear: function() { this.currentView.clear(); return this; }, getValue: function(parse) { return this.currentView.getValue(parse); }, setValue: function(html, parse) { if (!html) { return this.clear(); } this.currentView.setValue(html, parse); return this; }, focus: function(setToEnd) { this.currentView.focus(setToEnd); return this; }, /** * Deactivate editor (make it readonly) */ disable: function() { this.currentView.disable(); return this; }, /** * Activate editor */ enable: function() { this.currentView.enable(); return this; }, isEmpty: function() { return this.currentView.isEmpty(); }, hasPlaceholderSet: function() { return this.currentView.hasPlaceholderSet(); }, parse: function(htmlOrElement) { var returnValue = this.config.parser(htmlOrElement, this.config.parserRules, this.composer.sandbox.getDocument(), true); if (typeof(htmlOrElement) === "object") { wysihtml5.quirks.redraw(htmlOrElement); } return returnValue; }, /** * Prepare html parser logic * - Observes for paste and drop */ _initParser: function() { this.observe("paste:composer", function() { var keepScrollPosition = true, that = this; that.composer.selection.executeAndRestore(function() { wysihtml5.quirks.cleanPastedHTML(that.composer.element); that.parse(that.composer.element); }, keepScrollPosition); }); this.observe("paste:textarea", function() { var value = this.textarea.getValue(), newValue; newValue = this.parse(value); this.textarea.setValue(newValue); }); } }); })(wysihtml5);
00-techstorm
trunk/assets/admin/lib/bootstrap-wysihtml5/lib/js/wysihtml5-0.3.0.js
JavaScript
gpl3
332,152
!function ($) { "use strict"; // version: 2.8 // by Mattia Larentis - follow me on twitter! @SpiritualGuru var addToAttribute = function (obj, array, value) { var i = 0 , length = array.length; for (; i < length; i++) { obj = obj[array[i]] = obj[array[i]] || i == ( length - 1) ? value : {} } }; $.fn.toggleButtons = function (method) { var $element , $div , transitionSpeed = 0.05 , methods = { init: function (opt) { this.each(function () { var $spanLeft , $spanRight , options , moving , dataAttribute = {}; $element = $(this); $element.addClass('toggle-button'); $.each($element.data(), function (i, el) { var key , tmp = {}; if (i.indexOf("togglebutton") === 0) { key = i.match(/[A-Z][a-z]+/g); key = $.map(key, function (n) { return (n.toLowerCase()); }); addToAttribute(tmp, key, el); dataAttribute = $.extend(true, dataAttribute, tmp); } }); options = $.extend(true, {}, $.fn.toggleButtons.defaults, opt, dataAttribute); $(this).data('options', options); $spanLeft = $('<span></span>').addClass("labelLeft").text(options.label.enabled === undefined ? "ON" : options.label.enabled); $spanRight = $('<span></span>').addClass("labelRight").text(options.label.disabled === undefined ? "OFF " : options.label.disabled); // html layout $div = $element.find('input:checkbox').wrap($('<div></div>')).parent(); $div.append($spanLeft); $div.append($('<label></label>').attr('for', $element.find('input').attr('id'))); $div.append($spanRight); if ($element.find('input').is(':checked')) $element.find('>div').css('left', "0"); else $element.find('>div').css('left', "-50%"); if (options.animated) { if (options.transitionspeed !== undefined) if (/^(\d*%$)/.test(options.transitionspeed)) // is a percent value? transitionSpeed = 0.05 * parseInt(options.transitionspeed) / 100; else transitionSpeed = options.transitionspeed; } else transitionSpeed = 0; $(this).data('transitionSpeed', transitionSpeed * 1000); options["width"] /= 2; // width of the bootstrap-toggle-button $element .css('width', options.width * 2) .find('>div').css('width', options.width * 3) .find('>span, >label').css('width', options.width); // height of the bootstrap-toggle-button $element .css('height', options.height) .find('span, label') .css('height', options.height) .filter('span') .css('line-height', options.height + "px"); if ($element.find('input').is(':disabled')) $(this).addClass('deactivate'); $element.find('span').css(options.font); // enabled custom color if (options.style.enabled === undefined) { if (options.style.custom !== undefined && options.style.custom.enabled !== undefined && options.style.custom.enabled.background !== undefined) { $spanLeft.css('color', options.style.custom.enabled.color); if (options.style.custom.enabled.gradient === undefined) $spanLeft.css('background', options.style.custom.enabled.background); else $.each(["-webkit-", "-moz-", "-o-", ""], function (i, el) { $spanLeft.css('background-image', el + 'linear-gradient(top, ' + options.style.custom.enabled.background + ',' + options.style.custom.enabled.gradient + ')'); }); } } else $spanLeft.addClass(options.style.enabled); // disabled custom color if (options.style.disabled === undefined) { if (options.style.custom !== undefined && options.style.custom.disabled !== undefined && options.style.custom.disabled.background !== undefined) { $spanRight.css('color', options.style.custom.disabled.color); if (options.style.custom.disabled.gradient === undefined) $spanRight.css('background', options.style.custom.disabled.background); else $.each(["-webkit-", "-moz-", "-o-", ""], function (i, el) { $spanRight.css('background-image', el + 'linear-gradient(top, ' + options.style.custom.disabled.background + ',' + options.style.custom.disabled.gradient + ')'); }); } } else $spanRight.addClass(options.style.disabled); var changeStatus = function ($this) { $this.siblings('label') .trigger('mousedown') .trigger('mouseup') .trigger('click'); }; $spanLeft.on('click', function (e) { changeStatus($(this)); }); $spanRight.on('click', function (e) { changeStatus($(this)); }); $element.find('input').on('change', function (e, skipOnChange) { var $element = $(this).parent() , active = $(this).is(':checked') , $toggleButton = $(this).closest('.toggle-button'); $element.stop().animate({'left': active ? '0' : '-50%'}, $toggleButton.data('transitionSpeed')); options = $toggleButton.data('options'); if (!skipOnChange) options.onChange($element, active, e); }); $element.find('label').on('mousedown touchstart', function (e) { moving = false; e.preventDefault(); e.stopImmediatePropagation(); if ($(this).closest('.toggle-button').is('.deactivate')) $(this).off('click'); else { $(this).on('mousemove touchmove', function (e) { var $element = $(this).closest('.toggle-button') , relativeX = (e.pageX || e.originalEvent.targetTouches[0].pageX) - $element.offset().left , percent = ((relativeX / (options.width * 2)) * 100); moving = true; e.stopImmediatePropagation(); e.preventDefault(); if (percent < 25) percent = 25; else if (percent > 75) percent = 75; $element.find('>div').css('left', (percent - 75) + "%"); }); $(this).on('click touchend', function (e) { var $target = $(e.target) , $myCheckBox = $target.siblings('input'); e.stopImmediatePropagation(); e.preventDefault(); $(this).off('mouseleave'); if (moving) if (parseInt($(this).parent().css('left')) < -25) $myCheckBox.attr('checked', false); else $myCheckBox.attr('checked', true); else $myCheckBox.attr("checked", !$myCheckBox.is(":checked")); $myCheckBox.trigger('change'); }); $(this).on('mouseleave', function (e) { var $myCheckBox = $(this).siblings('input'); e.preventDefault(); e.stopImmediatePropagation(); $(this).off('mouseleave'); $(this).trigger('mouseup'); if (parseInt($(this).parent().css('left')) < -25) $myCheckBox.attr('checked', false); else $myCheckBox.attr('checked', true); $myCheckBox.trigger('change'); }); $(this).on('mouseup', function (e) { e.stopImmediatePropagation(); e.preventDefault(); $(this).off('mousemove'); }); } }); } ); return this; }, toggleActivation: function () { $(this).toggleClass('deactivate'); }, toggleState: function (skipOnChange) { var $input = $(this).find('input'); $input.attr('checked', !$input.is(':checked')).trigger('change', skipOnChange); }, setState: function(value, skipOnChange) { $(this).find('input').attr('checked', value).trigger('change', skipOnChange); }, status: function () { return $(this).find('input:checkbox').is(':checked'); }, destroy: function () { var $div = $(this).find('div') , $checkbox; $div.find(':not(input:checkbox)').remove(); $checkbox = $div.children(); $checkbox.unwrap().unwrap(); $checkbox.unbind('change'); return $checkbox; } }; if (methods[method]) return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); else if (typeof method === 'object' || !method) return methods.init.apply(this, arguments); else $.error('Method ' + method + ' does not exist!'); }; $.fn.toggleButtons.defaults = { onChange: function () { }, width: 100, height: 25, font: {}, animated: true, transitionspeed: undefined, label: { enabled: undefined, disabled: undefined }, style: { enabled: undefined, disabled: undefined, custom: { enabled: { background: undefined, gradient: undefined, color: "#FFFFFF" }, disabled: { background: undefined, gradient: undefined, color: "#FFFFFF" } } } }; }($);
00-techstorm
trunk/assets/admin/lib/bootstrap-toggle-buttons/static/js/jquery.toggle.buttons.js
JavaScript
gpl3
10,490
/* API method to get paging information */ $.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings ) { return { "iStart": oSettings._iDisplayStart, "iEnd": oSettings.fnDisplayEnd(), "iLength": oSettings._iDisplayLength, "iTotal": oSettings.fnRecordsTotal(), "iFilteredTotal": oSettings.fnRecordsDisplay(), "iPage": Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ), "iTotalPages": Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength ) }; } /* Bootstrap style pagination control */ $.extend( $.fn.dataTableExt.oPagination, { "bootstrap": { "fnInit": function( oSettings, nPaging, fnDraw ) { var oLang = oSettings.oLanguage.oPaginate; var fnClickHandler = function ( e ) { e.preventDefault(); if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) { fnDraw( oSettings ); } }; $(nPaging).append( '<ul class="fancy pagination">'+ '<li class="prev disabled"><a href="#">&larr; '+oLang.sPrevious+'</a></li>'+ '<li class="next disabled"><a href="#">'+oLang.sNext+' &rarr; </a></li>'+ '</ul>' ); var els = $('a', nPaging); $(els[0]).bind( 'click.DT', { action: "previous" }, fnClickHandler ); $(els[1]).bind( 'click.DT', { action: "next" }, fnClickHandler ); }, "fnUpdate": function ( oSettings, fnDraw ) { var iListLength = 5; var oPaging = oSettings.oInstance.fnPagingInfo(); var an = oSettings.aanFeatures.p; var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2); if ( oPaging.iTotalPages < iListLength) { iStart = 1; iEnd = oPaging.iTotalPages; } else if ( oPaging.iPage <= iHalf ) { iStart = 1; iEnd = iListLength; } else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) { iStart = oPaging.iTotalPages - iListLength + 1; iEnd = oPaging.iTotalPages; } else { iStart = oPaging.iPage - iHalf + 1; iEnd = iStart + iListLength - 1; } for ( i=0, iLen=an.length ; i<iLen ; i++ ) { // Remove the middle elements $('li:gt(0)', an[i]).filter(':not(:last)').remove(); // Add the new list items and their event handlers for ( j=iStart ; j<=iEnd ; j++ ) { sClass = (j==oPaging.iPage+1) ? 'class="active"' : ''; $('<li '+sClass+'><a href="#">'+j+'</a></li>') .insertBefore( $('li:last', an[i])[0] ) .bind('click', function (e) { e.preventDefault(); oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength; fnDraw( oSettings ); } ); } // Add / remove disabled classes from the static elements if ( oPaging.iPage === 0 ) { $('li:first', an[i]).addClass('disabled'); } else { $('li:first', an[i]).removeClass('disabled'); } if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) { $('li:last', an[i]).addClass('disabled'); } else { $('li:last', an[i]).removeClass('disabled'); } } } } } );
00-techstorm
trunk/assets/admin/lib/DataTables-1.9.4/media/js/jquery.dataTables.bootstrap.js
JavaScript
gpl3
3,813
.bootstrap-timepicker.dropdown-menu { border-radius: 4px 4px 4px 4px; display: none; left: 0; margin-top: 1px; padding: 4px; top: 0; min-width: 10px; z-index: 99999; } .bootstrap-timepicker.dropdown-menu.open { display: inline-block; } .bootstrap-timepicker.dropdown-menu:before { border-bottom: 7px solid rgba(0, 0, 0, 0.2); border-left: 7px solid transparent; border-right: 7px solid transparent; content: ""; left: 6px; position: absolute; top: -7px; } .bootstrap-timepicker.dropdown-menu:after { border-bottom: 6px solid #FFFFFF; border-left: 6px solid transparent; border-right: 6px solid transparent; content: ""; left: 7px; position: absolute; top: -6px; } .bootstrap-timepicker.modal { margin-left: -100px; margin-top: 0; top: 30%; width: 200px; } .bootstrap-timepicker.modal .modal-content { padding: 0; } .bootstrap-timepicker table { margin: 0; width: 100%; } .bootstrap-timepicker table td { height: 30px; margin: 0; padding: 2px; text-align: center; } .bootstrap-timepicker table td span { width: 100%; } .bootstrap-timepicker table td a { border: 1px solid transparent; display: inline-block; margin: 0; outline: 0 none; padding: 8px 0; width: 3em; } .bootstrap-timepicker table td a:hover { background-color: #EEEEEE; border-color: #DDDDDD; border-radius: 4px 4px 4px 4px; } .bootstrap-timepicker table td a i { margin-top: 2px; } .bootstrap-timepicker table td input { margin: 0; text-align: center; width: 25px; } .bootstrap-timepicker-component .add-on { cursor: pointer; } .bootstrap-timepicker-component .add-on i { display: block; height: 16px; width: 16px; }
00-techstorm
trunk/assets/admin/lib/bootstrap-timepicker/compiled/timepicker.css
CSS
gpl3
1,789
$(function(){ $("a[href*='#']").click(function(){ $('html, body').animate({ scrollTop: $( $(this).attr('href') ).offset().top }, 500); return false; }); });
00-techstorm
trunk/assets/admin/lib/smoothscroll.js
JavaScript
gpl3
201
/*! Javascript plotting library for jQuery, v. 0.7. * * Released under the MIT license by IOLA, December 2007. * */ // first an inline dependency, jquery.colorhelpers.js, we inline it here // for convenience /* Plugin for jQuery for working with colors. * * Version 1.1. * * Inspiration from jQuery color animation plugin by John Resig. * * Released under the MIT license by Ole Laursen, October 2009. * * Examples: * * $.color.parse("#fff").scale('rgb', 0.25).add('a', -0.5).toString() * var c = $.color.extract($("#mydiv"), 'background-color'); * console.log(c.r, c.g, c.b, c.a); * $.color.make(100, 50, 25, 0.4).toString() // returns "rgba(100,50,25,0.4)" * * Note that .scale() and .add() return the same modified object * instead of making a new one. * * V. 1.1: Fix error handling so e.g. parsing an empty string does * produce a color rather than just crashing. */ (function(B){B.color={};B.color.make=function(F,E,C,D){var G={};G.r=F||0;G.g=E||0;G.b=C||0;G.a=D!=null?D:1;G.add=function(J,I){for(var H=0;H<J.length;++H){G[J.charAt(H)]+=I}return G.normalize()};G.scale=function(J,I){for(var H=0;H<J.length;++H){G[J.charAt(H)]*=I}return G.normalize()};G.toString=function(){if(G.a>=1){return"rgb("+[G.r,G.g,G.b].join(",")+")"}else{return"rgba("+[G.r,G.g,G.b,G.a].join(",")+")"}};G.normalize=function(){function H(J,K,I){return K<J?J:(K>I?I:K)}G.r=H(0,parseInt(G.r),255);G.g=H(0,parseInt(G.g),255);G.b=H(0,parseInt(G.b),255);G.a=H(0,G.a,1);return G};G.clone=function(){return B.color.make(G.r,G.b,G.g,G.a)};return G.normalize()};B.color.extract=function(D,C){var E;do{E=D.css(C).toLowerCase();if(E!=""&&E!="transparent"){break}D=D.parent()}while(!B.nodeName(D.get(0),"body"));if(E=="rgba(0, 0, 0, 0)"){E="transparent"}return B.color.parse(E)};B.color.parse=function(F){var E,C=B.color.make;if(E=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(F)){return C(parseInt(E[1],10),parseInt(E[2],10),parseInt(E[3],10))}if(E=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(F)){return C(parseInt(E[1],10),parseInt(E[2],10),parseInt(E[3],10),parseFloat(E[4]))}if(E=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(F)){return C(parseFloat(E[1])*2.55,parseFloat(E[2])*2.55,parseFloat(E[3])*2.55)}if(E=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(F)){return C(parseFloat(E[1])*2.55,parseFloat(E[2])*2.55,parseFloat(E[3])*2.55,parseFloat(E[4]))}if(E=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(F)){return C(parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16))}if(E=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(F)){return C(parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16))}var D=B.trim(F).toLowerCase();if(D=="transparent"){return C(255,255,255,0)}else{E=A[D]||[0,0,0];return C(E[0],E[1],E[2])}};var A={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery); // the actual Flot code (function($) { function Plot(placeholder, data_, options_, plugins) { // data is on the form: // [ series1, series2 ... ] // where series is either just the data as [ [x1, y1], [x2, y2], ... ] // or { data: [ [x1, y1], [x2, y2], ... ], label: "some label", ... } var series = [], options = { // the color theme used for graphs colors: ["#edc240", "#afd8f8", "#cb4b4b", "#4da74d", "#9440ed"], legend: { show: true, noColumns: 1, // number of colums in legend table labelFormatter: null, // fn: string -> string labelBoxBorderColor: "#ccc", // border color for the little label boxes container: null, // container (as jQuery object) to put legend in, null means default on top of graph position: "ne", // position of default legend container within plot margin: 5, // distance from grid edge to default legend container within plot backgroundColor: null, // null means auto-detect backgroundOpacity: 0.85 // set to 0 to avoid background }, xaxis: { show: null, // null = auto-detect, true = always, false = never position: "bottom", // or "top" mode: null, // null or "time" color: null, // base color, labels, ticks tickColor: null, // possibly different color of ticks, e.g. "rgba(0,0,0,0.15)" transform: null, // null or f: number -> number to transform axis inverseTransform: null, // if transform is set, this should be the inverse function min: null, // min. value to show, null means set automatically max: null, // max. value to show, null means set automatically autoscaleMargin: null, // margin in % to add if auto-setting min/max ticks: null, // either [1, 3] or [[1, "a"], 3] or (fn: axis info -> ticks) or app. number of ticks for auto-ticks tickFormatter: null, // fn: number -> string labelWidth: null, // size of tick labels in pixels labelHeight: null, reserveSpace: null, // whether to reserve space even if axis isn't shown tickLength: null, // size in pixels of ticks, or "full" for whole line alignTicksWithAxis: null, // axis number or null for no sync // mode specific options tickDecimals: null, // no. of decimals, null means auto tickSize: null, // number or [number, "unit"] minTickSize: null, // number or [number, "unit"] monthNames: null, // list of names of months timeformat: null, // format string to use twelveHourClock: false // 12 or 24 time in time mode }, yaxis: { autoscaleMargin: 0.02, position: "left" // or "right" }, xaxes: [], yaxes: [], series: { points: { show: false, radius: 3, lineWidth: 2, // in pixels fill: true, fillColor: "#ffffff", symbol: "circle" // or callback }, lines: { // we don't put in show: false so we can see // whether lines were actively disabled lineWidth: 2, // in pixels fill: false, fillColor: null, steps: false }, bars: { show: false, lineWidth: 2, // in pixels barWidth: 1, // in units of the x axis fill: true, fillColor: null, align: "left", // or "center" horizontal: false }, shadowSize: 3 }, grid: { show: true, aboveData: false, color: "#545454", // primary color used for outline and labels backgroundColor: null, // null for transparent, else color borderColor: null, // set if different from the grid color tickColor: null, // color for the ticks, e.g. "rgba(0,0,0,0.15)" labelMargin: 5, // in pixels axisMargin: 8, // in pixels borderWidth: 2, // in pixels minBorderMargin: null, // in pixels, null means taken from points radius markings: null, // array of ranges or fn: axes -> array of ranges markingsColor: "#f4f4f4", markingsLineWidth: 2, // interactive stuff clickable: false, hoverable: false, autoHighlight: true, // highlight in case mouse is near mouseActiveRadius: 10 // how far the mouse can be away to activate an item }, hooks: {} }, canvas = null, // the canvas for the plot itself overlay = null, // canvas for interactive stuff on top of plot eventHolder = null, // jQuery object that events should be bound to ctx = null, octx = null, xaxes = [], yaxes = [], plotOffset = { left: 0, right: 0, top: 0, bottom: 0}, canvasWidth = 0, canvasHeight = 0, plotWidth = 0, plotHeight = 0, hooks = { processOptions: [], processRawData: [], processDatapoints: [], drawSeries: [], draw: [], bindEvents: [], drawOverlay: [], shutdown: [] }, plot = this; // public functions plot.setData = setData; plot.setupGrid = setupGrid; plot.draw = draw; plot.getPlaceholder = function() { return placeholder; }; plot.getCanvas = function() { return canvas; }; plot.getPlotOffset = function() { return plotOffset; }; plot.width = function () { return plotWidth; }; plot.height = function () { return plotHeight; }; plot.offset = function () { var o = eventHolder.offset(); o.left += plotOffset.left; o.top += plotOffset.top; return o; }; plot.getData = function () { return series; }; plot.getAxes = function () { var res = {}, i; $.each(xaxes.concat(yaxes), function (_, axis) { if (axis) res[axis.direction + (axis.n != 1 ? axis.n : "") + "axis"] = axis; }); return res; }; plot.getXAxes = function () { return xaxes; }; plot.getYAxes = function () { return yaxes; }; plot.c2p = canvasToAxisCoords; plot.p2c = axisToCanvasCoords; plot.getOptions = function () { return options; }; plot.highlight = highlight; plot.unhighlight = unhighlight; plot.triggerRedrawOverlay = triggerRedrawOverlay; plot.pointOffset = function(point) { return { left: parseInt(xaxes[axisNumber(point, "x") - 1].p2c(+point.x) + plotOffset.left), top: parseInt(yaxes[axisNumber(point, "y") - 1].p2c(+point.y) + plotOffset.top) }; }; plot.shutdown = shutdown; plot.resize = function () { getCanvasDimensions(); resizeCanvas(canvas); resizeCanvas(overlay); }; // public attributes plot.hooks = hooks; // initialize initPlugins(plot); parseOptions(options_); setupCanvases(); setData(data_); setupGrid(); draw(); bindEvents(); function executeHooks(hook, args) { args = [plot].concat(args); for (var i = 0; i < hook.length; ++i) hook[i].apply(this, args); } function initPlugins() { for (var i = 0; i < plugins.length; ++i) { var p = plugins[i]; p.init(plot); if (p.options) $.extend(true, options, p.options); } } function parseOptions(opts) { var i; $.extend(true, options, opts); if (options.xaxis.color == null) options.xaxis.color = options.grid.color; if (options.yaxis.color == null) options.yaxis.color = options.grid.color; if (options.xaxis.tickColor == null) // backwards-compatibility options.xaxis.tickColor = options.grid.tickColor; if (options.yaxis.tickColor == null) // backwards-compatibility options.yaxis.tickColor = options.grid.tickColor; if (options.grid.borderColor == null) options.grid.borderColor = options.grid.color; if (options.grid.tickColor == null) options.grid.tickColor = $.color.parse(options.grid.color).scale('a', 0.22).toString(); // fill in defaults in axes, copy at least always the // first as the rest of the code assumes it'll be there for (i = 0; i < Math.max(1, options.xaxes.length); ++i) options.xaxes[i] = $.extend(true, {}, options.xaxis, options.xaxes[i]); for (i = 0; i < Math.max(1, options.yaxes.length); ++i) options.yaxes[i] = $.extend(true, {}, options.yaxis, options.yaxes[i]); // backwards compatibility, to be removed in future if (options.xaxis.noTicks && options.xaxis.ticks == null) options.xaxis.ticks = options.xaxis.noTicks; if (options.yaxis.noTicks && options.yaxis.ticks == null) options.yaxis.ticks = options.yaxis.noTicks; if (options.x2axis) { options.xaxes[1] = $.extend(true, {}, options.xaxis, options.x2axis); options.xaxes[1].position = "top"; } if (options.y2axis) { options.yaxes[1] = $.extend(true, {}, options.yaxis, options.y2axis); options.yaxes[1].position = "right"; } if (options.grid.coloredAreas) options.grid.markings = options.grid.coloredAreas; if (options.grid.coloredAreasColor) options.grid.markingsColor = options.grid.coloredAreasColor; if (options.lines) $.extend(true, options.series.lines, options.lines); if (options.points) $.extend(true, options.series.points, options.points); if (options.bars) $.extend(true, options.series.bars, options.bars); if (options.shadowSize != null) options.series.shadowSize = options.shadowSize; // save options on axes for future reference for (i = 0; i < options.xaxes.length; ++i) getOrCreateAxis(xaxes, i + 1).options = options.xaxes[i]; for (i = 0; i < options.yaxes.length; ++i) getOrCreateAxis(yaxes, i + 1).options = options.yaxes[i]; // add hooks from options for (var n in hooks) if (options.hooks[n] && options.hooks[n].length) hooks[n] = hooks[n].concat(options.hooks[n]); executeHooks(hooks.processOptions, [options]); } function setData(d) { series = parseData(d); fillInSeriesOptions(); processData(); } function parseData(d) { var res = []; for (var i = 0; i < d.length; ++i) { var s = $.extend(true, {}, options.series); if (d[i].data != null) { s.data = d[i].data; // move the data instead of deep-copy delete d[i].data; $.extend(true, s, d[i]); d[i].data = s.data; } else s.data = d[i]; res.push(s); } return res; } function axisNumber(obj, coord) { var a = obj[coord + "axis"]; if (typeof a == "object") // if we got a real axis, extract number a = a.n; if (typeof a != "number") a = 1; // default to first axis return a; } function allAxes() { // return flat array without annoying null entries return $.grep(xaxes.concat(yaxes), function (a) { return a; }); } function canvasToAxisCoords(pos) { // return an object with x/y corresponding to all used axes var res = {}, i, axis; for (i = 0; i < xaxes.length; ++i) { axis = xaxes[i]; if (axis && axis.used) res["x" + axis.n] = axis.c2p(pos.left); } for (i = 0; i < yaxes.length; ++i) { axis = yaxes[i]; if (axis && axis.used) res["y" + axis.n] = axis.c2p(pos.top); } if (res.x1 !== undefined) res.x = res.x1; if (res.y1 !== undefined) res.y = res.y1; return res; } function axisToCanvasCoords(pos) { // get canvas coords from the first pair of x/y found in pos var res = {}, i, axis, key; for (i = 0; i < xaxes.length; ++i) { axis = xaxes[i]; if (axis && axis.used) { key = "x" + axis.n; if (pos[key] == null && axis.n == 1) key = "x"; if (pos[key] != null) { res.left = axis.p2c(pos[key]); break; } } } for (i = 0; i < yaxes.length; ++i) { axis = yaxes[i]; if (axis && axis.used) { key = "y" + axis.n; if (pos[key] == null && axis.n == 1) key = "y"; if (pos[key] != null) { res.top = axis.p2c(pos[key]); break; } } } return res; } function getOrCreateAxis(axes, number) { if (!axes[number - 1]) axes[number - 1] = { n: number, // save the number for future reference direction: axes == xaxes ? "x" : "y", options: $.extend(true, {}, axes == xaxes ? options.xaxis : options.yaxis) }; return axes[number - 1]; } function fillInSeriesOptions() { var i; // collect what we already got of colors var neededColors = series.length, usedColors = [], assignedColors = []; for (i = 0; i < series.length; ++i) { var sc = series[i].color; if (sc != null) { --neededColors; if (typeof sc == "number") assignedColors.push(sc); else usedColors.push($.color.parse(series[i].color)); } } // we might need to generate more colors if higher indices // are assigned for (i = 0; i < assignedColors.length; ++i) { neededColors = Math.max(neededColors, assignedColors[i] + 1); } // produce colors as needed var colors = [], variation = 0; i = 0; while (colors.length < neededColors) { var c; if (options.colors.length == i) // check degenerate case c = $.color.make(100, 100, 100); else c = $.color.parse(options.colors[i]); // vary color if needed var sign = variation % 2 == 1 ? -1 : 1; c.scale('rgb', 1 + sign * Math.ceil(variation / 2) * 0.2) // FIXME: if we're getting to close to something else, // we should probably skip this one colors.push(c); ++i; if (i >= options.colors.length) { i = 0; ++variation; } } // fill in the options var colori = 0, s; for (i = 0; i < series.length; ++i) { s = series[i]; // assign colors if (s.color == null) { s.color = colors[colori].toString(); ++colori; } else if (typeof s.color == "number") s.color = colors[s.color].toString(); // turn on lines automatically in case nothing is set if (s.lines.show == null) { var v, show = true; for (v in s) if (s[v] && s[v].show) { show = false; break; } if (show) s.lines.show = true; } // setup axes s.xaxis = getOrCreateAxis(xaxes, axisNumber(s, "x")); s.yaxis = getOrCreateAxis(yaxes, axisNumber(s, "y")); } } function processData() { var topSentry = Number.POSITIVE_INFINITY, bottomSentry = Number.NEGATIVE_INFINITY, fakeInfinity = Number.MAX_VALUE, i, j, k, m, length, s, points, ps, x, y, axis, val, f, p; function updateAxis(axis, min, max) { if (min < axis.datamin && min != -fakeInfinity) axis.datamin = min; if (max > axis.datamax && max != fakeInfinity) axis.datamax = max; } $.each(allAxes(), function (_, axis) { // init axis axis.datamin = topSentry; axis.datamax = bottomSentry; axis.used = false; }); for (i = 0; i < series.length; ++i) { s = series[i]; s.datapoints = { points: [] }; executeHooks(hooks.processRawData, [ s, s.data, s.datapoints ]); } // first pass: clean and copy data for (i = 0; i < series.length; ++i) { s = series[i]; var data = s.data, format = s.datapoints.format; if (!format) { format = []; // find out how to copy format.push({ x: true, number: true, required: true }); format.push({ y: true, number: true, required: true }); if (s.bars.show || (s.lines.show && s.lines.fill)) { format.push({ y: true, number: true, required: false, defaultValue: 0 }); if (s.bars.horizontal) { delete format[format.length - 1].y; format[format.length - 1].x = true; } } s.datapoints.format = format; } if (s.datapoints.pointsize != null) continue; // already filled in s.datapoints.pointsize = format.length; ps = s.datapoints.pointsize; points = s.datapoints.points; insertSteps = s.lines.show && s.lines.steps; s.xaxis.used = s.yaxis.used = true; for (j = k = 0; j < data.length; ++j, k += ps) { p = data[j]; var nullify = p == null; if (!nullify) { for (m = 0; m < ps; ++m) { val = p[m]; f = format[m]; if (f) { if (f.number && val != null) { val = +val; // convert to number if (isNaN(val)) val = null; else if (val == Infinity) val = fakeInfinity; else if (val == -Infinity) val = -fakeInfinity; } if (val == null) { if (f.required) nullify = true; if (f.defaultValue != null) val = f.defaultValue; } } points[k + m] = val; } } if (nullify) { for (m = 0; m < ps; ++m) { val = points[k + m]; if (val != null) { f = format[m]; // extract min/max info if (f.x) updateAxis(s.xaxis, val, val); if (f.y) updateAxis(s.yaxis, val, val); } points[k + m] = null; } } else { // a little bit of line specific stuff that // perhaps shouldn't be here, but lacking // better means... if (insertSteps && k > 0 && points[k - ps] != null && points[k - ps] != points[k] && points[k - ps + 1] != points[k + 1]) { // copy the point to make room for a middle point for (m = 0; m < ps; ++m) points[k + ps + m] = points[k + m]; // middle point has same y points[k + 1] = points[k - ps + 1]; // we've added a point, better reflect that k += ps; } } } } // give the hooks a chance to run for (i = 0; i < series.length; ++i) { s = series[i]; executeHooks(hooks.processDatapoints, [ s, s.datapoints]); } // second pass: find datamax/datamin for auto-scaling for (i = 0; i < series.length; ++i) { s = series[i]; points = s.datapoints.points, ps = s.datapoints.pointsize; var xmin = topSentry, ymin = topSentry, xmax = bottomSentry, ymax = bottomSentry; for (j = 0; j < points.length; j += ps) { if (points[j] == null) continue; for (m = 0; m < ps; ++m) { val = points[j + m]; f = format[m]; if (!f || val == fakeInfinity || val == -fakeInfinity) continue; if (f.x) { if (val < xmin) xmin = val; if (val > xmax) xmax = val; } if (f.y) { if (val < ymin) ymin = val; if (val > ymax) ymax = val; } } } if (s.bars.show) { // make sure we got room for the bar on the dancing floor var delta = s.bars.align == "left" ? 0 : -s.bars.barWidth/2; if (s.bars.horizontal) { ymin += delta; ymax += delta + s.bars.barWidth; } else { xmin += delta; xmax += delta + s.bars.barWidth; } } updateAxis(s.xaxis, xmin, xmax); updateAxis(s.yaxis, ymin, ymax); } $.each(allAxes(), function (_, axis) { if (axis.datamin == topSentry) axis.datamin = null; if (axis.datamax == bottomSentry) axis.datamax = null; }); } function makeCanvas(skipPositioning, cls) { var c = document.createElement('canvas'); c.className = cls; c.width = canvasWidth; c.height = canvasHeight; if (!skipPositioning) $(c).css({ position: 'absolute', left: 0, top: 0 }); $(c).appendTo(placeholder); if (!c.getContext) // excanvas hack c = window.G_vmlCanvasManager.initElement(c); // used for resetting in case we get replotted c.getContext("2d").save(); return c; } function getCanvasDimensions() { canvasWidth = placeholder.width(); canvasHeight = placeholder.height(); if (canvasWidth <= 0 || canvasHeight <= 0) throw "Invalid dimensions for plot, width = " + canvasWidth + ", height = " + canvasHeight; } function resizeCanvas(c) { // resizing should reset the state (excanvas seems to be // buggy though) if (c.width != canvasWidth) c.width = canvasWidth; if (c.height != canvasHeight) c.height = canvasHeight; // so try to get back to the initial state (even if it's // gone now, this should be safe according to the spec) var cctx = c.getContext("2d"); cctx.restore(); // and save again cctx.save(); } function setupCanvases() { var reused, existingCanvas = placeholder.children("canvas.base"), existingOverlay = placeholder.children("canvas.overlay"); if (existingCanvas.length == 0 || existingOverlay == 0) { // init everything placeholder.html(""); // make sure placeholder is clear placeholder.css({ padding: 0 }); // padding messes up the positioning if (placeholder.css("position") == 'static') placeholder.css("position", "relative"); // for positioning labels and overlay getCanvasDimensions(); canvas = makeCanvas(true, "base"); overlay = makeCanvas(false, "overlay"); // overlay canvas for interactive features reused = false; } else { // reuse existing elements canvas = existingCanvas.get(0); overlay = existingOverlay.get(0); reused = true; } ctx = canvas.getContext("2d"); octx = overlay.getContext("2d"); // we include the canvas in the event holder too, because IE 7 // sometimes has trouble with the stacking order eventHolder = $([overlay, canvas]); if (reused) { // run shutdown in the old plot object placeholder.data("plot").shutdown(); // reset reused canvases plot.resize(); // make sure overlay pixels are cleared (canvas is cleared when we redraw) octx.clearRect(0, 0, canvasWidth, canvasHeight); // then whack any remaining obvious garbage left eventHolder.unbind(); placeholder.children().not([canvas, overlay]).remove(); } // save in case we get replotted placeholder.data("plot", plot); } function bindEvents() { // bind events if (options.grid.hoverable) { eventHolder.mousemove(onMouseMove); eventHolder.mouseleave(onMouseLeave); } if (options.grid.clickable) eventHolder.click(onClick); executeHooks(hooks.bindEvents, [eventHolder]); } function shutdown() { if (redrawTimeout) clearTimeout(redrawTimeout); eventHolder.unbind("mousemove", onMouseMove); eventHolder.unbind("mouseleave", onMouseLeave); eventHolder.unbind("click", onClick); executeHooks(hooks.shutdown, [eventHolder]); } function setTransformationHelpers(axis) { // set helper functions on the axis, assumes plot area // has been computed already function identity(x) { return x; } var s, m, t = axis.options.transform || identity, it = axis.options.inverseTransform; // precompute how much the axis is scaling a point // in canvas space if (axis.direction == "x") { s = axis.scale = plotWidth / Math.abs(t(axis.max) - t(axis.min)); m = Math.min(t(axis.max), t(axis.min)); } else { s = axis.scale = plotHeight / Math.abs(t(axis.max) - t(axis.min)); s = -s; m = Math.max(t(axis.max), t(axis.min)); } // data point to canvas coordinate if (t == identity) // slight optimization axis.p2c = function (p) { return (p - m) * s; }; else axis.p2c = function (p) { return (t(p) - m) * s; }; // canvas coordinate to data point if (!it) axis.c2p = function (c) { return m + c / s; }; else axis.c2p = function (c) { return it(m + c / s); }; } function measureTickLabels(axis) { var opts = axis.options, i, ticks = axis.ticks || [], labels = [], l, w = opts.labelWidth, h = opts.labelHeight, dummyDiv; function makeDummyDiv(labels, width) { return $('<div style="position:absolute;top:-10000px;' + width + 'font-size:smaller">' + '<div class="' + axis.direction + 'Axis ' + axis.direction + axis.n + 'Axis">' + labels.join("") + '</div></div>') .appendTo(placeholder); } if (axis.direction == "x") { // to avoid measuring the widths of the labels (it's slow), we // construct fixed-size boxes and put the labels inside // them, we don't need the exact figures and the // fixed-size box content is easy to center if (w == null) w = Math.floor(canvasWidth / (ticks.length > 0 ? ticks.length : 1)); // measure x label heights if (h == null) { labels = []; for (i = 0; i < ticks.length; ++i) { l = ticks[i].label; if (l) labels.push('<div class="tickLabel" style="float:left;width:' + w + 'px">' + l + '</div>'); } if (labels.length > 0) { // stick them all in the same div and measure // collective height labels.push('<div style="clear:left"></div>'); dummyDiv = makeDummyDiv(labels, "width:10000px;"); h = dummyDiv.height(); dummyDiv.remove(); } } } else if (w == null || h == null) { // calculate y label dimensions for (i = 0; i < ticks.length; ++i) { l = ticks[i].label; if (l) labels.push('<div class="tickLabel">' + l + '</div>'); } if (labels.length > 0) { dummyDiv = makeDummyDiv(labels, ""); if (w == null) w = dummyDiv.children().width(); if (h == null) h = dummyDiv.find("div.tickLabel").height(); dummyDiv.remove(); } } if (w == null) w = 0; if (h == null) h = 0; axis.labelWidth = w; axis.labelHeight = h; } function allocateAxisBoxFirstPhase(axis) { // find the bounding box of the axis by looking at label // widths/heights and ticks, make room by diminishing the // plotOffset var lw = axis.labelWidth, lh = axis.labelHeight, pos = axis.options.position, tickLength = axis.options.tickLength, axismargin = options.grid.axisMargin, padding = options.grid.labelMargin, all = axis.direction == "x" ? xaxes : yaxes, index; // determine axis margin var samePosition = $.grep(all, function (a) { return a && a.options.position == pos && a.reserveSpace; }); if ($.inArray(axis, samePosition) == samePosition.length - 1) axismargin = 0; // outermost // determine tick length - if we're innermost, we can use "full" if (tickLength == null) tickLength = "full"; var sameDirection = $.grep(all, function (a) { return a && a.reserveSpace; }); var innermost = $.inArray(axis, sameDirection) == 0; if (!innermost && tickLength == "full") tickLength = 5; if (!isNaN(+tickLength)) padding += +tickLength; // compute box if (axis.direction == "x") { lh += padding; if (pos == "bottom") { plotOffset.bottom += lh + axismargin; axis.box = { top: canvasHeight - plotOffset.bottom, height: lh }; } else { axis.box = { top: plotOffset.top + axismargin, height: lh }; plotOffset.top += lh + axismargin; } } else { lw += padding; if (pos == "left") { axis.box = { left: plotOffset.left + axismargin, width: lw }; plotOffset.left += lw + axismargin; } else { plotOffset.right += lw + axismargin; axis.box = { left: canvasWidth - plotOffset.right, width: lw }; } } // save for future reference axis.position = pos; axis.tickLength = tickLength; axis.box.padding = padding; axis.innermost = innermost; } function allocateAxisBoxSecondPhase(axis) { // set remaining bounding box coordinates if (axis.direction == "x") { axis.box.left = plotOffset.left; axis.box.width = plotWidth; } else { axis.box.top = plotOffset.top; axis.box.height = plotHeight; } } function setupGrid() { var i, axes = allAxes(); // first calculate the plot and axis box dimensions $.each(axes, function (_, axis) { axis.show = axis.options.show; if (axis.show == null) axis.show = axis.used; // by default an axis is visible if it's got data axis.reserveSpace = axis.show || axis.options.reserveSpace; setRange(axis); }); allocatedAxes = $.grep(axes, function (axis) { return axis.reserveSpace; }); plotOffset.left = plotOffset.right = plotOffset.top = plotOffset.bottom = 0; if (options.grid.show) { $.each(allocatedAxes, function (_, axis) { // make the ticks setupTickGeneration(axis); setTicks(axis); snapRangeToTicks(axis, axis.ticks); // find labelWidth/Height for axis measureTickLabels(axis); }); // with all dimensions in house, we can compute the // axis boxes, start from the outside (reverse order) for (i = allocatedAxes.length - 1; i >= 0; --i) allocateAxisBoxFirstPhase(allocatedAxes[i]); // make sure we've got enough space for things that // might stick out var minMargin = options.grid.minBorderMargin; if (minMargin == null) { minMargin = 0; for (i = 0; i < series.length; ++i) minMargin = Math.max(minMargin, series[i].points.radius + series[i].points.lineWidth/2); } for (var a in plotOffset) { plotOffset[a] += options.grid.borderWidth; plotOffset[a] = Math.max(minMargin, plotOffset[a]); } } plotWidth = canvasWidth - plotOffset.left - plotOffset.right; plotHeight = canvasHeight - plotOffset.bottom - plotOffset.top; // now we got the proper plotWidth/Height, we can compute the scaling $.each(axes, function (_, axis) { setTransformationHelpers(axis); }); if (options.grid.show) { $.each(allocatedAxes, function (_, axis) { allocateAxisBoxSecondPhase(axis); }); insertAxisLabels(); } insertLegend(); } function setRange(axis) { var opts = axis.options, min = +(opts.min != null ? opts.min : axis.datamin), max = +(opts.max != null ? opts.max : axis.datamax), delta = max - min; if (delta == 0.0) { // degenerate case var widen = max == 0 ? 1 : 0.01; if (opts.min == null) min -= widen; // always widen max if we couldn't widen min to ensure we // don't fall into min == max which doesn't work if (opts.max == null || opts.min != null) max += widen; } else { // consider autoscaling var margin = opts.autoscaleMargin; if (margin != null) { if (opts.min == null) { min -= delta * margin; // make sure we don't go below zero if all values // are positive if (min < 0 && axis.datamin != null && axis.datamin >= 0) min = 0; } if (opts.max == null) { max += delta * margin; if (max > 0 && axis.datamax != null && axis.datamax <= 0) max = 0; } } } axis.min = min; axis.max = max; } function setupTickGeneration(axis) { var opts = axis.options; // estimate number of ticks var noTicks; if (typeof opts.ticks == "number" && opts.ticks > 0) noTicks = opts.ticks; else // heuristic based on the model a*sqrt(x) fitted to // some data points that seemed reasonable noTicks = 0.3 * Math.sqrt(axis.direction == "x" ? canvasWidth : canvasHeight); var delta = (axis.max - axis.min) / noTicks, size, generator, unit, formatter, i, magn, norm; if (opts.mode == "time") { // pretty handling of time // map of app. size of time units in milliseconds var timeUnitSize = { "second": 1000, "minute": 60 * 1000, "hour": 60 * 60 * 1000, "day": 24 * 60 * 60 * 1000, "month": 30 * 24 * 60 * 60 * 1000, "year": 365.2425 * 24 * 60 * 60 * 1000 }; // the allowed tick sizes, after 1 year we use // an integer algorithm var spec = [ [1, "second"], [2, "second"], [5, "second"], [10, "second"], [30, "second"], [1, "minute"], [2, "minute"], [5, "minute"], [10, "minute"], [30, "minute"], [1, "hour"], [2, "hour"], [4, "hour"], [8, "hour"], [12, "hour"], [1, "day"], [2, "day"], [3, "day"], [0.25, "month"], [0.5, "month"], [1, "month"], [2, "month"], [3, "month"], [6, "month"], [1, "year"] ]; var minSize = 0; if (opts.minTickSize != null) { if (typeof opts.tickSize == "number") minSize = opts.tickSize; else minSize = opts.minTickSize[0] * timeUnitSize[opts.minTickSize[1]]; } for (var i = 0; i < spec.length - 1; ++i) if (delta < (spec[i][0] * timeUnitSize[spec[i][1]] + spec[i + 1][0] * timeUnitSize[spec[i + 1][1]]) / 2 && spec[i][0] * timeUnitSize[spec[i][1]] >= minSize) break; size = spec[i][0]; unit = spec[i][1]; // special-case the possibility of several years if (unit == "year") { magn = Math.pow(10, Math.floor(Math.log(delta / timeUnitSize.year) / Math.LN10)); norm = (delta / timeUnitSize.year) / magn; if (norm < 1.5) size = 1; else if (norm < 3) size = 2; else if (norm < 7.5) size = 5; else size = 10; size *= magn; } axis.tickSize = opts.tickSize || [size, unit]; generator = function(axis) { var ticks = [], tickSize = axis.tickSize[0], unit = axis.tickSize[1], d = new Date(axis.min); var step = tickSize * timeUnitSize[unit]; if (unit == "second") d.setUTCSeconds(floorInBase(d.getUTCSeconds(), tickSize)); if (unit == "minute") d.setUTCMinutes(floorInBase(d.getUTCMinutes(), tickSize)); if (unit == "hour") d.setUTCHours(floorInBase(d.getUTCHours(), tickSize)); if (unit == "month") d.setUTCMonth(floorInBase(d.getUTCMonth(), tickSize)); if (unit == "year") d.setUTCFullYear(floorInBase(d.getUTCFullYear(), tickSize)); // reset smaller components d.setUTCMilliseconds(0); if (step >= timeUnitSize.minute) d.setUTCSeconds(0); if (step >= timeUnitSize.hour) d.setUTCMinutes(0); if (step >= timeUnitSize.day) d.setUTCHours(0); if (step >= timeUnitSize.day * 4) d.setUTCDate(1); if (step >= timeUnitSize.year) d.setUTCMonth(0); var carry = 0, v = Number.NaN, prev; do { prev = v; v = d.getTime(); ticks.push(v); if (unit == "month") { if (tickSize < 1) { // a bit complicated - we'll divide the month // up but we need to take care of fractions // so we don't end up in the middle of a day d.setUTCDate(1); var start = d.getTime(); d.setUTCMonth(d.getUTCMonth() + 1); var end = d.getTime(); d.setTime(v + carry * timeUnitSize.hour + (end - start) * tickSize); carry = d.getUTCHours(); d.setUTCHours(0); } else d.setUTCMonth(d.getUTCMonth() + tickSize); } else if (unit == "year") { d.setUTCFullYear(d.getUTCFullYear() + tickSize); } else d.setTime(v + step); } while (v < axis.max && v != prev); return ticks; }; formatter = function (v, axis) { var d = new Date(v); // first check global format if (opts.timeformat != null) return $.plot.formatDate(d, opts.timeformat, opts.monthNames); var t = axis.tickSize[0] * timeUnitSize[axis.tickSize[1]]; var span = axis.max - axis.min; var suffix = (opts.twelveHourClock) ? " %p" : ""; if (t < timeUnitSize.minute) fmt = "%h:%M:%S" + suffix; else if (t < timeUnitSize.day) { if (span < 2 * timeUnitSize.day) fmt = "%h:%M" + suffix; else fmt = "%b %d %h:%M" + suffix; } else if (t < timeUnitSize.month) fmt = "%b %d"; else if (t < timeUnitSize.year) { if (span < timeUnitSize.year) fmt = "%b"; else fmt = "%b %y"; } else fmt = "%y"; return $.plot.formatDate(d, fmt, opts.monthNames); }; } else { // pretty rounding of base-10 numbers var maxDec = opts.tickDecimals; var dec = -Math.floor(Math.log(delta) / Math.LN10); if (maxDec != null && dec > maxDec) dec = maxDec; magn = Math.pow(10, -dec); norm = delta / magn; // norm is between 1.0 and 10.0 if (norm < 1.5) size = 1; else if (norm < 3) { size = 2; // special case for 2.5, requires an extra decimal if (norm > 2.25 && (maxDec == null || dec + 1 <= maxDec)) { size = 2.5; ++dec; } } else if (norm < 7.5) size = 5; else size = 10; size *= magn; if (opts.minTickSize != null && size < opts.minTickSize) size = opts.minTickSize; axis.tickDecimals = Math.max(0, maxDec != null ? maxDec : dec); axis.tickSize = opts.tickSize || size; generator = function (axis) { var ticks = []; // spew out all possible ticks var start = floorInBase(axis.min, axis.tickSize), i = 0, v = Number.NaN, prev; do { prev = v; v = start + i * axis.tickSize; ticks.push(v); ++i; } while (v < axis.max && v != prev); return ticks; }; formatter = function (v, axis) { return v.toFixed(axis.tickDecimals); }; } if (opts.alignTicksWithAxis != null) { var otherAxis = (axis.direction == "x" ? xaxes : yaxes)[opts.alignTicksWithAxis - 1]; if (otherAxis && otherAxis.used && otherAxis != axis) { // consider snapping min/max to outermost nice ticks var niceTicks = generator(axis); if (niceTicks.length > 0) { if (opts.min == null) axis.min = Math.min(axis.min, niceTicks[0]); if (opts.max == null && niceTicks.length > 1) axis.max = Math.max(axis.max, niceTicks[niceTicks.length - 1]); } generator = function (axis) { // copy ticks, scaled to this axis var ticks = [], v, i; for (i = 0; i < otherAxis.ticks.length; ++i) { v = (otherAxis.ticks[i].v - otherAxis.min) / (otherAxis.max - otherAxis.min); v = axis.min + v * (axis.max - axis.min); ticks.push(v); } return ticks; }; // we might need an extra decimal since forced // ticks don't necessarily fit naturally if (axis.mode != "time" && opts.tickDecimals == null) { var extraDec = Math.max(0, -Math.floor(Math.log(delta) / Math.LN10) + 1), ts = generator(axis); // only proceed if the tick interval rounded // with an extra decimal doesn't give us a // zero at end if (!(ts.length > 1 && /\..*0$/.test((ts[1] - ts[0]).toFixed(extraDec)))) axis.tickDecimals = extraDec; } } } axis.tickGenerator = generator; if ($.isFunction(opts.tickFormatter)) axis.tickFormatter = function (v, axis) { return "" + opts.tickFormatter(v, axis); }; else axis.tickFormatter = formatter; } function setTicks(axis) { var oticks = axis.options.ticks, ticks = []; if (oticks == null || (typeof oticks == "number" && oticks > 0)) ticks = axis.tickGenerator(axis); else if (oticks) { if ($.isFunction(oticks)) // generate the ticks ticks = oticks({ min: axis.min, max: axis.max }); else ticks = oticks; } // clean up/labelify the supplied ticks, copy them over var i, v; axis.ticks = []; for (i = 0; i < ticks.length; ++i) { var label = null; var t = ticks[i]; if (typeof t == "object") { v = +t[0]; if (t.length > 1) label = t[1]; } else v = +t; if (label == null) label = axis.tickFormatter(v, axis); if (!isNaN(v)) axis.ticks.push({ v: v, label: label }); } } function snapRangeToTicks(axis, ticks) { if (axis.options.autoscaleMargin && ticks.length > 0) { // snap to ticks if (axis.options.min == null) axis.min = Math.min(axis.min, ticks[0].v); if (axis.options.max == null && ticks.length > 1) axis.max = Math.max(axis.max, ticks[ticks.length - 1].v); } } function draw() { ctx.clearRect(0, 0, canvasWidth, canvasHeight); var grid = options.grid; // draw background, if any if (grid.show && grid.backgroundColor) drawBackground(); if (grid.show && !grid.aboveData) drawGrid(); for (var i = 0; i < series.length; ++i) { executeHooks(hooks.drawSeries, [ctx, series[i]]); drawSeries(series[i]); } executeHooks(hooks.draw, [ctx]); if (grid.show && grid.aboveData) drawGrid(); } function extractRange(ranges, coord) { var axis, from, to, key, axes = allAxes(); for (i = 0; i < axes.length; ++i) { axis = axes[i]; if (axis.direction == coord) { key = coord + axis.n + "axis"; if (!ranges[key] && axis.n == 1) key = coord + "axis"; // support x1axis as xaxis if (ranges[key]) { from = ranges[key].from; to = ranges[key].to; break; } } } // backwards-compat stuff - to be removed in future if (!ranges[key]) { axis = coord == "x" ? xaxes[0] : yaxes[0]; from = ranges[coord + "1"]; to = ranges[coord + "2"]; } // auto-reverse as an added bonus if (from != null && to != null && from > to) { var tmp = from; from = to; to = tmp; } return { from: from, to: to, axis: axis }; } function drawBackground() { ctx.save(); ctx.translate(plotOffset.left, plotOffset.top); ctx.fillStyle = getColorOrGradient(options.grid.backgroundColor, plotHeight, 0, "rgba(255, 255, 255, 0)"); ctx.fillRect(0, 0, plotWidth, plotHeight); ctx.restore(); } function drawGrid() { var i; ctx.save(); ctx.translate(plotOffset.left, plotOffset.top); // draw markings var markings = options.grid.markings; if (markings) { if ($.isFunction(markings)) { var axes = plot.getAxes(); // xmin etc. is backwards compatibility, to be // removed in the future axes.xmin = axes.xaxis.min; axes.xmax = axes.xaxis.max; axes.ymin = axes.yaxis.min; axes.ymax = axes.yaxis.max; markings = markings(axes); } for (i = 0; i < markings.length; ++i) { var m = markings[i], xrange = extractRange(m, "x"), yrange = extractRange(m, "y"); // fill in missing if (xrange.from == null) xrange.from = xrange.axis.min; if (xrange.to == null) xrange.to = xrange.axis.max; if (yrange.from == null) yrange.from = yrange.axis.min; if (yrange.to == null) yrange.to = yrange.axis.max; // clip if (xrange.to < xrange.axis.min || xrange.from > xrange.axis.max || yrange.to < yrange.axis.min || yrange.from > yrange.axis.max) continue; xrange.from = Math.max(xrange.from, xrange.axis.min); xrange.to = Math.min(xrange.to, xrange.axis.max); yrange.from = Math.max(yrange.from, yrange.axis.min); yrange.to = Math.min(yrange.to, yrange.axis.max); if (xrange.from == xrange.to && yrange.from == yrange.to) continue; // then draw xrange.from = xrange.axis.p2c(xrange.from); xrange.to = xrange.axis.p2c(xrange.to); yrange.from = yrange.axis.p2c(yrange.from); yrange.to = yrange.axis.p2c(yrange.to); if (xrange.from == xrange.to || yrange.from == yrange.to) { // draw line ctx.beginPath(); ctx.strokeStyle = m.color || options.grid.markingsColor; ctx.lineWidth = m.lineWidth || options.grid.markingsLineWidth; ctx.moveTo(xrange.from, yrange.from); ctx.lineTo(xrange.to, yrange.to); ctx.stroke(); } else { // fill area ctx.fillStyle = m.color || options.grid.markingsColor; ctx.fillRect(xrange.from, yrange.to, xrange.to - xrange.from, yrange.from - yrange.to); } } } // draw the ticks var axes = allAxes(), bw = options.grid.borderWidth; for (var j = 0; j < axes.length; ++j) { var axis = axes[j], box = axis.box, t = axis.tickLength, x, y, xoff, yoff; if (!axis.show || axis.ticks.length == 0) continue ctx.strokeStyle = axis.options.tickColor || $.color.parse(axis.options.color).scale('a', 0.22).toString(); ctx.lineWidth = 1; // find the edges if (axis.direction == "x") { x = 0; if (t == "full") y = (axis.position == "top" ? 0 : plotHeight); else y = box.top - plotOffset.top + (axis.position == "top" ? box.height : 0); } else { y = 0; if (t == "full") x = (axis.position == "left" ? 0 : plotWidth); else x = box.left - plotOffset.left + (axis.position == "left" ? box.width : 0); } // draw tick bar if (!axis.innermost) { ctx.beginPath(); xoff = yoff = 0; if (axis.direction == "x") xoff = plotWidth; else yoff = plotHeight; if (ctx.lineWidth == 1) { x = Math.floor(x) + 0.5; y = Math.floor(y) + 0.5; } ctx.moveTo(x, y); ctx.lineTo(x + xoff, y + yoff); ctx.stroke(); } // draw ticks ctx.beginPath(); for (i = 0; i < axis.ticks.length; ++i) { var v = axis.ticks[i].v; xoff = yoff = 0; if (v < axis.min || v > axis.max // skip those lying on the axes if we got a border || (t == "full" && bw > 0 && (v == axis.min || v == axis.max))) continue; if (axis.direction == "x") { x = axis.p2c(v); yoff = t == "full" ? -plotHeight : t; if (axis.position == "top") yoff = -yoff; } else { y = axis.p2c(v); xoff = t == "full" ? -plotWidth : t; if (axis.position == "left") xoff = -xoff; } if (ctx.lineWidth == 1) { if (axis.direction == "x") x = Math.floor(x) + 0.5; else y = Math.floor(y) + 0.5; } ctx.moveTo(x, y); ctx.lineTo(x + xoff, y + yoff); } ctx.stroke(); } // draw border if (bw) { ctx.lineWidth = bw; ctx.strokeStyle = options.grid.borderColor; ctx.strokeRect(-bw/2, -bw/2, plotWidth + bw, plotHeight + bw); } ctx.restore(); } function insertAxisLabels() { placeholder.find(".tickLabels").remove(); var html = ['<div class="tickLabels" style="font-size:smaller">']; var axes = allAxes(); for (var j = 0; j < axes.length; ++j) { var axis = axes[j], box = axis.box; if (!axis.show) continue; //debug: html.push('<div style="position:absolute;opacity:0.10;background-color:red;left:' + box.left + 'px;top:' + box.top + 'px;width:' + box.width + 'px;height:' + box.height + 'px"></div>') html.push('<div class="' + axis.direction + 'Axis ' + axis.direction + axis.n + 'Axis" style="color:' + axis.options.color + '">'); for (var i = 0; i < axis.ticks.length; ++i) { var tick = axis.ticks[i]; if (!tick.label || tick.v < axis.min || tick.v > axis.max) continue; var pos = {}, align; if (axis.direction == "x") { align = "center"; pos.left = Math.round(plotOffset.left + axis.p2c(tick.v) - axis.labelWidth/2); if (axis.position == "bottom") pos.top = box.top + box.padding; else pos.bottom = canvasHeight - (box.top + box.height - box.padding); } else { pos.top = Math.round(plotOffset.top + axis.p2c(tick.v) - axis.labelHeight/2); if (axis.position == "left") { pos.right = canvasWidth - (box.left + box.width - box.padding) align = "right"; } else { pos.left = box.left + box.padding; align = "left"; } } pos.width = axis.labelWidth; var style = ["position:absolute", "text-align:" + align ]; for (var a in pos) style.push(a + ":" + pos[a] + "px") html.push('<div class="tickLabel" style="' + style.join(';') + '">' + tick.label + '</div>'); } html.push('</div>'); } html.push('</div>'); placeholder.append(html.join("")); } function drawSeries(series) { if (series.lines.show) drawSeriesLines(series); if (series.bars.show) drawSeriesBars(series); if (series.points.show) drawSeriesPoints(series); } function drawSeriesLines(series) { function plotLine(datapoints, xoffset, yoffset, axisx, axisy) { var points = datapoints.points, ps = datapoints.pointsize, prevx = null, prevy = null; ctx.beginPath(); for (var i = ps; i < points.length; i += ps) { var x1 = points[i - ps], y1 = points[i - ps + 1], x2 = points[i], y2 = points[i + 1]; if (x1 == null || x2 == null) continue; // clip with ymin if (y1 <= y2 && y1 < axisy.min) { if (y2 < axisy.min) continue; // line segment is outside // compute new intersection point x1 = (axisy.min - y1) / (y2 - y1) * (x2 - x1) + x1; y1 = axisy.min; } else if (y2 <= y1 && y2 < axisy.min) { if (y1 < axisy.min) continue; x2 = (axisy.min - y1) / (y2 - y1) * (x2 - x1) + x1; y2 = axisy.min; } // clip with ymax if (y1 >= y2 && y1 > axisy.max) { if (y2 > axisy.max) continue; x1 = (axisy.max - y1) / (y2 - y1) * (x2 - x1) + x1; y1 = axisy.max; } else if (y2 >= y1 && y2 > axisy.max) { if (y1 > axisy.max) continue; x2 = (axisy.max - y1) / (y2 - y1) * (x2 - x1) + x1; y2 = axisy.max; } // clip with xmin if (x1 <= x2 && x1 < axisx.min) { if (x2 < axisx.min) continue; y1 = (axisx.min - x1) / (x2 - x1) * (y2 - y1) + y1; x1 = axisx.min; } else if (x2 <= x1 && x2 < axisx.min) { if (x1 < axisx.min) continue; y2 = (axisx.min - x1) / (x2 - x1) * (y2 - y1) + y1; x2 = axisx.min; } // clip with xmax if (x1 >= x2 && x1 > axisx.max) { if (x2 > axisx.max) continue; y1 = (axisx.max - x1) / (x2 - x1) * (y2 - y1) + y1; x1 = axisx.max; } else if (x2 >= x1 && x2 > axisx.max) { if (x1 > axisx.max) continue; y2 = (axisx.max - x1) / (x2 - x1) * (y2 - y1) + y1; x2 = axisx.max; } if (x1 != prevx || y1 != prevy) ctx.moveTo(axisx.p2c(x1) + xoffset, axisy.p2c(y1) + yoffset); prevx = x2; prevy = y2; ctx.lineTo(axisx.p2c(x2) + xoffset, axisy.p2c(y2) + yoffset); } ctx.stroke(); } function plotLineArea(datapoints, axisx, axisy) { var points = datapoints.points, ps = datapoints.pointsize, bottom = Math.min(Math.max(0, axisy.min), axisy.max), i = 0, top, areaOpen = false, ypos = 1, segmentStart = 0, segmentEnd = 0; // we process each segment in two turns, first forward // direction to sketch out top, then once we hit the // end we go backwards to sketch the bottom while (true) { if (ps > 0 && i > points.length + ps) break; i += ps; // ps is negative if going backwards var x1 = points[i - ps], y1 = points[i - ps + ypos], x2 = points[i], y2 = points[i + ypos]; if (areaOpen) { if (ps > 0 && x1 != null && x2 == null) { // at turning point segmentEnd = i; ps = -ps; ypos = 2; continue; } if (ps < 0 && i == segmentStart + ps) { // done with the reverse sweep ctx.fill(); areaOpen = false; ps = -ps; ypos = 1; i = segmentStart = segmentEnd + ps; continue; } } if (x1 == null || x2 == null) continue; // clip x values // clip with xmin if (x1 <= x2 && x1 < axisx.min) { if (x2 < axisx.min) continue; y1 = (axisx.min - x1) / (x2 - x1) * (y2 - y1) + y1; x1 = axisx.min; } else if (x2 <= x1 && x2 < axisx.min) { if (x1 < axisx.min) continue; y2 = (axisx.min - x1) / (x2 - x1) * (y2 - y1) + y1; x2 = axisx.min; } // clip with xmax if (x1 >= x2 && x1 > axisx.max) { if (x2 > axisx.max) continue; y1 = (axisx.max - x1) / (x2 - x1) * (y2 - y1) + y1; x1 = axisx.max; } else if (x2 >= x1 && x2 > axisx.max) { if (x1 > axisx.max) continue; y2 = (axisx.max - x1) / (x2 - x1) * (y2 - y1) + y1; x2 = axisx.max; } if (!areaOpen) { // open area ctx.beginPath(); ctx.moveTo(axisx.p2c(x1), axisy.p2c(bottom)); areaOpen = true; } // now first check the case where both is outside if (y1 >= axisy.max && y2 >= axisy.max) { ctx.lineTo(axisx.p2c(x1), axisy.p2c(axisy.max)); ctx.lineTo(axisx.p2c(x2), axisy.p2c(axisy.max)); continue; } else if (y1 <= axisy.min && y2 <= axisy.min) { ctx.lineTo(axisx.p2c(x1), axisy.p2c(axisy.min)); ctx.lineTo(axisx.p2c(x2), axisy.p2c(axisy.min)); continue; } // else it's a bit more complicated, there might // be a flat maxed out rectangle first, then a // triangular cutout or reverse; to find these // keep track of the current x values var x1old = x1, x2old = x2; // clip the y values, without shortcutting, we // go through all cases in turn // clip with ymin if (y1 <= y2 && y1 < axisy.min && y2 >= axisy.min) { x1 = (axisy.min - y1) / (y2 - y1) * (x2 - x1) + x1; y1 = axisy.min; } else if (y2 <= y1 && y2 < axisy.min && y1 >= axisy.min) { x2 = (axisy.min - y1) / (y2 - y1) * (x2 - x1) + x1; y2 = axisy.min; } // clip with ymax if (y1 >= y2 && y1 > axisy.max && y2 <= axisy.max) { x1 = (axisy.max - y1) / (y2 - y1) * (x2 - x1) + x1; y1 = axisy.max; } else if (y2 >= y1 && y2 > axisy.max && y1 <= axisy.max) { x2 = (axisy.max - y1) / (y2 - y1) * (x2 - x1) + x1; y2 = axisy.max; } // if the x value was changed we got a rectangle // to fill if (x1 != x1old) { ctx.lineTo(axisx.p2c(x1old), axisy.p2c(y1)); // it goes to (x1, y1), but we fill that below } // fill triangular section, this sometimes result // in redundant points if (x1, y1) hasn't changed // from previous line to, but we just ignore that ctx.lineTo(axisx.p2c(x1), axisy.p2c(y1)); ctx.lineTo(axisx.p2c(x2), axisy.p2c(y2)); // fill the other rectangle if it's there if (x2 != x2old) { ctx.lineTo(axisx.p2c(x2), axisy.p2c(y2)); ctx.lineTo(axisx.p2c(x2old), axisy.p2c(y2)); } } } ctx.save(); ctx.translate(plotOffset.left, plotOffset.top); ctx.lineJoin = "round"; var lw = series.lines.lineWidth, sw = series.shadowSize; // FIXME: consider another form of shadow when filling is turned on if (lw > 0 && sw > 0) { // draw shadow as a thick and thin line with transparency ctx.lineWidth = sw; ctx.strokeStyle = "rgba(0,0,0,0.1)"; // position shadow at angle from the mid of line var angle = Math.PI/18; plotLine(series.datapoints, Math.sin(angle) * (lw/2 + sw/2), Math.cos(angle) * (lw/2 + sw/2), series.xaxis, series.yaxis); ctx.lineWidth = sw/2; plotLine(series.datapoints, Math.sin(angle) * (lw/2 + sw/4), Math.cos(angle) * (lw/2 + sw/4), series.xaxis, series.yaxis); } ctx.lineWidth = lw; ctx.strokeStyle = series.color; var fillStyle = getFillStyle(series.lines, series.color, 0, plotHeight); if (fillStyle) { ctx.fillStyle = fillStyle; plotLineArea(series.datapoints, series.xaxis, series.yaxis); } if (lw > 0) plotLine(series.datapoints, 0, 0, series.xaxis, series.yaxis); ctx.restore(); } function drawSeriesPoints(series) { function plotPoints(datapoints, radius, fillStyle, offset, shadow, axisx, axisy, symbol) { var points = datapoints.points, ps = datapoints.pointsize; for (var i = 0; i < points.length; i += ps) { var x = points[i], y = points[i + 1]; if (x == null || x < axisx.min || x > axisx.max || y < axisy.min || y > axisy.max) continue; ctx.beginPath(); x = axisx.p2c(x); y = axisy.p2c(y) + offset; if (symbol == "circle") ctx.arc(x, y, radius, 0, shadow ? Math.PI : Math.PI * 2, false); else symbol(ctx, x, y, radius, shadow); ctx.closePath(); if (fillStyle) { ctx.fillStyle = fillStyle; ctx.fill(); } ctx.stroke(); } } ctx.save(); ctx.translate(plotOffset.left, plotOffset.top); var lw = series.points.lineWidth, sw = series.shadowSize, radius = series.points.radius, symbol = series.points.symbol; if (lw > 0 && sw > 0) { // draw shadow in two steps var w = sw / 2; ctx.lineWidth = w; ctx.strokeStyle = "rgba(0,0,0,0.1)"; plotPoints(series.datapoints, radius, null, w + w/2, true, series.xaxis, series.yaxis, symbol); ctx.strokeStyle = "rgba(0,0,0,0.2)"; plotPoints(series.datapoints, radius, null, w/2, true, series.xaxis, series.yaxis, symbol); } ctx.lineWidth = lw; ctx.strokeStyle = series.color; plotPoints(series.datapoints, radius, getFillStyle(series.points, series.color), 0, false, series.xaxis, series.yaxis, symbol); ctx.restore(); } function drawBar(x, y, b, barLeft, barRight, offset, fillStyleCallback, axisx, axisy, c, horizontal, lineWidth) { var left, right, bottom, top, drawLeft, drawRight, drawTop, drawBottom, tmp; // in horizontal mode, we start the bar from the left // instead of from the bottom so it appears to be // horizontal rather than vertical if (horizontal) { drawBottom = drawRight = drawTop = true; drawLeft = false; left = b; right = x; top = y + barLeft; bottom = y + barRight; // account for negative bars if (right < left) { tmp = right; right = left; left = tmp; drawLeft = true; drawRight = false; } } else { drawLeft = drawRight = drawTop = true; drawBottom = false; left = x + barLeft; right = x + barRight; bottom = b; top = y; // account for negative bars if (top < bottom) { tmp = top; top = bottom; bottom = tmp; drawBottom = true; drawTop = false; } } // clip if (right < axisx.min || left > axisx.max || top < axisy.min || bottom > axisy.max) return; if (left < axisx.min) { left = axisx.min; drawLeft = false; } if (right > axisx.max) { right = axisx.max; drawRight = false; } if (bottom < axisy.min) { bottom = axisy.min; drawBottom = false; } if (top > axisy.max) { top = axisy.max; drawTop = false; } left = axisx.p2c(left); bottom = axisy.p2c(bottom); right = axisx.p2c(right); top = axisy.p2c(top); // fill the bar if (fillStyleCallback) { c.beginPath(); c.moveTo(left, bottom); c.lineTo(left, top); c.lineTo(right, top); c.lineTo(right, bottom); c.fillStyle = fillStyleCallback(bottom, top); c.fill(); } // draw outline if (lineWidth > 0 && (drawLeft || drawRight || drawTop || drawBottom)) { c.beginPath(); // FIXME: inline moveTo is buggy with excanvas c.moveTo(left, bottom + offset); if (drawLeft) c.lineTo(left, top + offset); else c.moveTo(left, top + offset); if (drawTop) c.lineTo(right, top + offset); else c.moveTo(right, top + offset); if (drawRight) c.lineTo(right, bottom + offset); else c.moveTo(right, bottom + offset); if (drawBottom) c.lineTo(left, bottom + offset); else c.moveTo(left, bottom + offset); c.stroke(); } } function drawSeriesBars(series) { function plotBars(datapoints, barLeft, barRight, offset, fillStyleCallback, axisx, axisy) { var points = datapoints.points, ps = datapoints.pointsize; for (var i = 0; i < points.length; i += ps) { if (points[i] == null) continue; drawBar(points[i], points[i + 1], points[i + 2], barLeft, barRight, offset, fillStyleCallback, axisx, axisy, ctx, series.bars.horizontal, series.bars.lineWidth); } } ctx.save(); ctx.translate(plotOffset.left, plotOffset.top); // FIXME: figure out a way to add shadows (for instance along the right edge) ctx.lineWidth = series.bars.lineWidth; ctx.strokeStyle = series.color; var barLeft = series.bars.align == "left" ? 0 : -series.bars.barWidth/2; var fillStyleCallback = series.bars.fill ? function (bottom, top) { return getFillStyle(series.bars, series.color, bottom, top); } : null; plotBars(series.datapoints, barLeft, barLeft + series.bars.barWidth, 0, fillStyleCallback, series.xaxis, series.yaxis); ctx.restore(); } function getFillStyle(filloptions, seriesColor, bottom, top) { var fill = filloptions.fill; if (!fill) return null; if (filloptions.fillColor) return getColorOrGradient(filloptions.fillColor, bottom, top, seriesColor); var c = $.color.parse(seriesColor); c.a = typeof fill == "number" ? fill : 0.4; c.normalize(); return c.toString(); } function insertLegend() { placeholder.find(".legend").remove(); if (!options.legend.show) return; var fragments = [], rowStarted = false, lf = options.legend.labelFormatter, s, label; for (var i = 0; i < series.length; ++i) { s = series[i]; label = s.label; if (!label) continue; if (i % options.legend.noColumns == 0) { if (rowStarted) fragments.push('</tr>'); fragments.push('<tr>'); rowStarted = true; } if (lf) label = lf(label, s); fragments.push( '<td class="legendColorBox"><div style="border:1px solid ' + options.legend.labelBoxBorderColor + ';padding:1px"><div style="width:4px;height:0;border:5px solid ' + s.color + ';overflow:hidden"></div></div></td>' + '<td class="legendLabel">' + label + '</td>'); } if (rowStarted) fragments.push('</tr>'); if (fragments.length == 0) return; var table = '<table style="font-size:smaller;color:' + options.grid.color + '">' + fragments.join("") + '</table>'; if (options.legend.container != null) $(options.legend.container).html(table); else { var pos = "", p = options.legend.position, m = options.legend.margin; if (m[0] == null) m = [m, m]; if (p.charAt(0) == "n") pos += 'top:' + (m[1] + plotOffset.top) + 'px;'; else if (p.charAt(0) == "s") pos += 'bottom:' + (m[1] + plotOffset.bottom) + 'px;'; if (p.charAt(1) == "e") pos += 'right:' + (m[0] + plotOffset.right) + 'px;'; else if (p.charAt(1) == "w") pos += 'left:' + (m[0] + plotOffset.left) + 'px;'; var legend = $('<div class="legend">' + table.replace('style="', 'style="position:absolute;' + pos +';') + '</div>').appendTo(placeholder); if (options.legend.backgroundOpacity != 0.0) { // put in the transparent background // separately to avoid blended labels and // label boxes var c = options.legend.backgroundColor; if (c == null) { c = options.grid.backgroundColor; if (c && typeof c == "string") c = $.color.parse(c); else c = $.color.extract(legend, 'background-color'); c.a = 1; c = c.toString(); } var div = legend.children(); $('<div style="position:absolute;width:' + div.width() + 'px;height:' + div.height() + 'px;' + pos +'background-color:' + c + ';"> </div>').prependTo(legend).css('opacity', options.legend.backgroundOpacity); } } } // interactive features var highlights = [], redrawTimeout = null; // returns the data item the mouse is over, or null if none is found function findNearbyItem(mouseX, mouseY, seriesFilter) { var maxDistance = options.grid.mouseActiveRadius, smallestDistance = maxDistance * maxDistance + 1, item = null, foundPoint = false, i, j; for (i = series.length - 1; i >= 0; --i) { if (!seriesFilter(series[i])) continue; var s = series[i], axisx = s.xaxis, axisy = s.yaxis, points = s.datapoints.points, ps = s.datapoints.pointsize, mx = axisx.c2p(mouseX), // precompute some stuff to make the loop faster my = axisy.c2p(mouseY), maxx = maxDistance / axisx.scale, maxy = maxDistance / axisy.scale; // with inverse transforms, we can't use the maxx/maxy // optimization, sadly if (axisx.options.inverseTransform) maxx = Number.MAX_VALUE; if (axisy.options.inverseTransform) maxy = Number.MAX_VALUE; if (s.lines.show || s.points.show) { for (j = 0; j < points.length; j += ps) { var x = points[j], y = points[j + 1]; if (x == null) continue; // For points and lines, the cursor must be within a // certain distance to the data point if (x - mx > maxx || x - mx < -maxx || y - my > maxy || y - my < -maxy) continue; // We have to calculate distances in pixels, not in // data units, because the scales of the axes may be different var dx = Math.abs(axisx.p2c(x) - mouseX), dy = Math.abs(axisy.p2c(y) - mouseY), dist = dx * dx + dy * dy; // we save the sqrt // use <= to ensure last point takes precedence // (last generally means on top of) if (dist < smallestDistance) { smallestDistance = dist; item = [i, j / ps]; } } } if (s.bars.show && !item) { // no other point can be nearby var barLeft = s.bars.align == "left" ? 0 : -s.bars.barWidth/2, barRight = barLeft + s.bars.barWidth; for (j = 0; j < points.length; j += ps) { var x = points[j], y = points[j + 1], b = points[j + 2]; if (x == null) continue; // for a bar graph, the cursor must be inside the bar if (series[i].bars.horizontal ? (mx <= Math.max(b, x) && mx >= Math.min(b, x) && my >= y + barLeft && my <= y + barRight) : (mx >= x + barLeft && mx <= x + barRight && my >= Math.min(b, y) && my <= Math.max(b, y))) item = [i, j / ps]; } } } if (item) { i = item[0]; j = item[1]; ps = series[i].datapoints.pointsize; return { datapoint: series[i].datapoints.points.slice(j * ps, (j + 1) * ps), dataIndex: j, series: series[i], seriesIndex: i }; } return null; } function onMouseMove(e) { if (options.grid.hoverable) triggerClickHoverEvent("plothover", e, function (s) { return s["hoverable"] != false; }); } function onMouseLeave(e) { if (options.grid.hoverable) triggerClickHoverEvent("plothover", e, function (s) { return false; }); } function onClick(e) { triggerClickHoverEvent("plotclick", e, function (s) { return s["clickable"] != false; }); } // trigger click or hover event (they send the same parameters // so we share their code) function triggerClickHoverEvent(eventname, event, seriesFilter) { var offset = eventHolder.offset(), canvasX = event.pageX - offset.left - plotOffset.left, canvasY = event.pageY - offset.top - plotOffset.top, pos = canvasToAxisCoords({ left: canvasX, top: canvasY }); pos.pageX = event.pageX; pos.pageY = event.pageY; var item = findNearbyItem(canvasX, canvasY, seriesFilter); if (item) { // fill in mouse pos for any listeners out there item.pageX = parseInt(item.series.xaxis.p2c(item.datapoint[0]) + offset.left + plotOffset.left); item.pageY = parseInt(item.series.yaxis.p2c(item.datapoint[1]) + offset.top + plotOffset.top); } if (options.grid.autoHighlight) { // clear auto-highlights for (var i = 0; i < highlights.length; ++i) { var h = highlights[i]; if (h.auto == eventname && !(item && h.series == item.series && h.point[0] == item.datapoint[0] && h.point[1] == item.datapoint[1])) unhighlight(h.series, h.point); } if (item) highlight(item.series, item.datapoint, eventname); } placeholder.trigger(eventname, [ pos, item ]); } function triggerRedrawOverlay() { if (!redrawTimeout) redrawTimeout = setTimeout(drawOverlay, 30); } function drawOverlay() { redrawTimeout = null; // draw highlights octx.save(); octx.clearRect(0, 0, canvasWidth, canvasHeight); octx.translate(plotOffset.left, plotOffset.top); var i, hi; for (i = 0; i < highlights.length; ++i) { hi = highlights[i]; if (hi.series.bars.show) drawBarHighlight(hi.series, hi.point); else drawPointHighlight(hi.series, hi.point); } octx.restore(); executeHooks(hooks.drawOverlay, [octx]); } function highlight(s, point, auto) { if (typeof s == "number") s = series[s]; if (typeof point == "number") { var ps = s.datapoints.pointsize; point = s.datapoints.points.slice(ps * point, ps * (point + 1)); } var i = indexOfHighlight(s, point); if (i == -1) { highlights.push({ series: s, point: point, auto: auto }); triggerRedrawOverlay(); } else if (!auto) highlights[i].auto = false; } function unhighlight(s, point) { if (s == null && point == null) { highlights = []; triggerRedrawOverlay(); } if (typeof s == "number") s = series[s]; if (typeof point == "number") point = s.data[point]; var i = indexOfHighlight(s, point); if (i != -1) { highlights.splice(i, 1); triggerRedrawOverlay(); } } function indexOfHighlight(s, p) { for (var i = 0; i < highlights.length; ++i) { var h = highlights[i]; if (h.series == s && h.point[0] == p[0] && h.point[1] == p[1]) return i; } return -1; } function drawPointHighlight(series, point) { var x = point[0], y = point[1], axisx = series.xaxis, axisy = series.yaxis; if (x < axisx.min || x > axisx.max || y < axisy.min || y > axisy.max) return; var pointRadius = series.points.radius + series.points.lineWidth / 2; octx.lineWidth = pointRadius; octx.strokeStyle = $.color.parse(series.color).scale('a', 0.5).toString(); var radius = 1.5 * pointRadius, x = axisx.p2c(x), y = axisy.p2c(y); octx.beginPath(); if (series.points.symbol == "circle") octx.arc(x, y, radius, 0, 2 * Math.PI, false); else series.points.symbol(octx, x, y, radius, false); octx.closePath(); octx.stroke(); } function drawBarHighlight(series, point) { octx.lineWidth = series.bars.lineWidth; octx.strokeStyle = $.color.parse(series.color).scale('a', 0.5).toString(); var fillStyle = $.color.parse(series.color).scale('a', 0.5).toString(); var barLeft = series.bars.align == "left" ? 0 : -series.bars.barWidth/2; drawBar(point[0], point[1], point[2] || 0, barLeft, barLeft + series.bars.barWidth, 0, function () { return fillStyle; }, series.xaxis, series.yaxis, octx, series.bars.horizontal, series.bars.lineWidth); } function getColorOrGradient(spec, bottom, top, defaultColor) { if (typeof spec == "string") return spec; else { // assume this is a gradient spec; IE currently only // supports a simple vertical gradient properly, so that's // what we support too var gradient = ctx.createLinearGradient(0, top, 0, bottom); for (var i = 0, l = spec.colors.length; i < l; ++i) { var c = spec.colors[i]; if (typeof c != "string") { var co = $.color.parse(defaultColor); if (c.brightness != null) co = co.scale('rgb', c.brightness) if (c.opacity != null) co.a *= c.opacity; c = co.toString(); } gradient.addColorStop(i / (l - 1), c); } return gradient; } } } $.plot = function(placeholder, data, options) { //var t0 = new Date(); var plot = new Plot($(placeholder), data, options, $.plot.plugins); //(window.console ? console.log : alert)("time used (msecs): " + ((new Date()).getTime() - t0.getTime())); return plot; }; $.plot.version = "0.7"; $.plot.plugins = []; // returns a string with the date d formatted according to fmt $.plot.formatDate = function(d, fmt, monthNames) { var leftPad = function(n) { n = "" + n; return n.length == 1 ? "0" + n : n; }; var r = []; var escape = false, padNext = false; var hours = d.getUTCHours(); var isAM = hours < 12; if (monthNames == null) monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; if (fmt.search(/%p|%P/) != -1) { if (hours > 12) { hours = hours - 12; } else if (hours == 0) { hours = 12; } } for (var i = 0; i < fmt.length; ++i) { var c = fmt.charAt(i); if (escape) { switch (c) { case 'h': c = "" + hours; break; case 'H': c = leftPad(hours); break; case 'M': c = leftPad(d.getUTCMinutes()); break; case 'S': c = leftPad(d.getUTCSeconds()); break; case 'd': c = "" + d.getUTCDate(); break; case 'm': c = "" + (d.getUTCMonth() + 1); break; case 'y': c = "" + d.getUTCFullYear(); break; case 'b': c = "" + monthNames[d.getUTCMonth()]; break; case 'p': c = (isAM) ? ("" + "am") : ("" + "pm"); break; case 'P': c = (isAM) ? ("" + "AM") : ("" + "PM"); break; case '0': c = ""; padNext = true; break; } if (c && padNext) { c = leftPad(c); padNext = false; } r.push(c); if (!padNext) escape = false; } else { if (c == "%") escape = true; else r.push(c); } } return r.join(""); }; // round to nearby lower multiple of base function floorInBase(n, base) { return base * Math.floor(n / base); } })(jQuery);
00-techstorm
trunk/assets/admin/lib/flot/jquery.flot.js
JavaScript
gpl3
106,797
/* * FullCalendar v1.5.3 Stylesheet * * Copyright (c) 2011 Adam Shaw * Dual licensed under the MIT and GPL licenses, located in * MIT-LICENSE.txt and GPL-LICENSE.txt respectively. * * Date: Mon Feb 6 22:40:40 2012 -0800 * */ .fc { direction: ltr; text-align: left; } .fc table { border-collapse: collapse; border-spacing: 0; } html .fc, .fc table { font-size: 1em; } .fc td, .fc th { padding: 0; vertical-align: top; } /* Header ------------------------------------------------------------------------*/ .fc-header td { white-space: nowrap; } .fc-header-left { width: 25%; text-align: left; } .fc-header-center { text-align: center; } .fc-header-right { width: 25%; text-align: right; } .fc-header-title { display: inline-block; vertical-align: top; } .fc-header-title h2 { margin-top: 0; white-space: nowrap; } .fc .fc-header-space { padding-left: 10px; } .fc-header .fc-button { margin-bottom: 1em; vertical-align: top; } /* buttons edges butting together */ .fc-header .fc-button { margin-right: -1px; } .fc-header .fc-corner-right { margin-right: 1px; /* back to normal */ } .fc-header .ui-corner-right { margin-right: 0; /* back to normal */ } /* button layering (for border precedence) */ .fc-header .fc-state-hover, .fc-header .ui-state-hover { z-index: 2; } .fc-header .fc-state-down { z-index: 3; } .fc-header .fc-state-active, .fc-header .ui-state-active { z-index: 4; } /* Content ------------------------------------------------------------------------*/ .fc-content { clear: both; } .fc-view { width: 100%; /* needed for view switching (when view is absolute) */ overflow: hidden; } /* Cell Styles ------------------------------------------------------------------------*/ .fc-widget-header, /* <th>, usually */ .fc-widget-content { /* <td>, usually */ border: 1px solid #ccc; } .fc-state-highlight { /* <td> today cell */ /* TODO: add .fc-today to <th> */ background: #ffc; } .fc-cell-overlay { /* semi-transparent rectangle while dragging */ background: #9cf; opacity: .2; filter: alpha(opacity=20); /* for IE */ } /* Buttons ------------------------------------------------------------------------*/ .fc-button { position: relative; display: inline-block; cursor: pointer; } .fc-state-default { /* non-theme */ border-style: solid; border-width: 1px 0; } .fc-button-inner { position: relative; float: left; overflow: hidden; } .fc-state-default .fc-button-inner { /* non-theme */ border-style: solid; border-width: 0 1px; } .fc-button-content { position: relative; float: left; height: 1.9em; line-height: 1.9em; padding: 0 .6em; white-space: nowrap; } /* icon (for jquery ui) */ .fc-button-content .fc-icon-wrap { position: relative; float: left; top: 50%; } .fc-button-content .ui-icon { position: relative; float: left; margin-top: -50%; *margin-top: 0; *top: -50%; } /* gloss effect */ .fc-state-default .fc-button-effect { position: absolute; top: 50%; left: 0; } .fc-state-default .fc-button-effect span { position: absolute; top: -100px; left: 0; width: 500px; height: 100px; border-width: 100px 0 0 1px; border-style: solid; border-color: #fff; background: #444; opacity: .09; filter: alpha(opacity=9); } /* button states (determines colors) */ .fc-state-default, .fc-state-default .fc-button-inner { border-style: solid; border-color: #ccc #bbb #aaa; background: #F3F3F3; color: #000; } .fc-state-hover, .fc-state-hover .fc-button-inner { border-color: #999; } .fc-state-down, .fc-state-down .fc-button-inner { border-color: #555; background: #777; } .fc-state-active, .fc-state-active .fc-button-inner { border-color: #555; background: #777; color: #fff; } .fc-state-disabled, .fc-state-disabled .fc-button-inner { color: #999; border-color: #ddd; } .fc-state-disabled { cursor: default; } .fc-state-disabled .fc-button-effect { display: none; } /* Global Event Styles ------------------------------------------------------------------------*/ .fc-event { border-style: solid; border-width: 0; font-size: .85em; cursor: default; } a.fc-event, .fc-event-draggable { cursor: pointer; } a.fc-event { text-decoration: none; } .fc-rtl .fc-event { text-align: right; } .fc-event-skin { border-color: #36c; /* default BORDER color */ background-color: #36c; /* default BACKGROUND color */ color: #fff; /* default TEXT color */ } .fc-event-inner { position: relative; width: 100%; height: 100%; border-style: solid; border-width: 0; overflow: hidden; } .fc-event-time, .fc-event-title { padding: 0 1px; } .fc .ui-resizable-handle { /*** TODO: don't use ui-resizable anymore, change class ***/ display: block; position: absolute; z-index: 99999; overflow: hidden; /* hacky spaces (IE6/7) */ font-size: 300%; /* */ line-height: 50%; /* */ } /* Horizontal Events ------------------------------------------------------------------------*/ .fc-event-hori { border-width: 1px 0; margin-bottom: 1px; } /* resizable */ .fc-event-hori .ui-resizable-e { top: 0 !important; /* importants override pre jquery ui 1.7 styles */ right: -3px !important; width: 7px !important; height: 100% !important; cursor: e-resize; } .fc-event-hori .ui-resizable-w { top: 0 !important; left: -3px !important; width: 7px !important; height: 100% !important; cursor: w-resize; } .fc-event-hori .ui-resizable-handle { _padding-bottom: 14px; /* IE6 had 0 height */ } /* Fake Rounded Corners (for buttons and events) ------------------------------------------------------------*/ .fc-corner-left { margin-left: 1px; } .fc-corner-left .fc-button-inner, .fc-corner-left .fc-event-inner { margin-left: -1px; } .fc-corner-right { margin-right: 1px; } .fc-corner-right .fc-button-inner, .fc-corner-right .fc-event-inner { margin-right: -1px; } .fc-corner-top { margin-top: 1px; } .fc-corner-top .fc-event-inner { margin-top: -1px; } .fc-corner-bottom { margin-bottom: 1px; } .fc-corner-bottom .fc-event-inner { margin-bottom: -1px; } /* Fake Rounded Corners SPECIFICALLY FOR EVENTS -----------------------------------------------------------------*/ .fc-corner-left .fc-event-inner { border-left-width: 1px; } .fc-corner-right .fc-event-inner { border-right-width: 1px; } .fc-corner-top .fc-event-inner { border-top-width: 1px; } .fc-corner-bottom .fc-event-inner { border-bottom-width: 1px; } /* Reusable Separate-border Table ------------------------------------------------------------*/ table.fc-border-separate { border-collapse: separate; } .fc-border-separate th, .fc-border-separate td { border-width: 1px 0 0 1px; } .fc-border-separate th.fc-last, .fc-border-separate td.fc-last { border-right-width: 1px; } .fc-border-separate tr.fc-last th, .fc-border-separate tr.fc-last td { border-bottom-width: 1px; } .fc-border-separate tbody tr.fc-first td, .fc-border-separate tbody tr.fc-first th { border-top-width: 0; } /* Month View, Basic Week View, Basic Day View ------------------------------------------------------------------------*/ .fc-grid th { text-align: center; } .fc-grid .fc-day-number { float: right; padding: 0 2px; } .fc-grid .fc-other-month .fc-day-number { opacity: 0.3; filter: alpha(opacity=30); /* for IE */ /* opacity with small font can sometimes look too faded might want to set the 'color' property instead making day-numbers bold also fixes the problem */ } .fc-grid .fc-day-content { clear: both; padding: 2px 2px 1px; /* distance between events and day edges */ } /* event styles */ .fc-grid .fc-event-time { font-weight: bold; } /* right-to-left */ .fc-rtl .fc-grid .fc-day-number { float: left; } .fc-rtl .fc-grid .fc-event-time { float: right; } /* Agenda Week View, Agenda Day View ------------------------------------------------------------------------*/ .fc-agenda table { border-collapse: separate; } .fc-agenda-days th { text-align: center; } .fc-agenda .fc-agenda-axis { width: 50px; padding: 0 4px; vertical-align: middle; text-align: right; white-space: nowrap; font-weight: normal; } .fc-agenda .fc-day-content { padding: 2px 2px 1px; } /* make axis border take precedence */ .fc-agenda-days .fc-agenda-axis { border-right-width: 1px; } .fc-agenda-days .fc-col0 { border-left-width: 0; } /* all-day area */ .fc-agenda-allday th { border-width: 0 1px; } .fc-agenda-allday .fc-day-content { min-height: 34px; /* TODO: doesnt work well in quirksmode */ _height: 34px; } /* divider (between all-day and slots) */ .fc-agenda-divider-inner { height: 2px; overflow: hidden; } .fc-widget-header .fc-agenda-divider-inner { background: #eee; } /* slot rows */ .fc-agenda-slots th { border-width: 1px 1px 0; } .fc-agenda-slots td { border-width: 1px 0 0; background: none; } .fc-agenda-slots td div { height: 20px; } .fc-agenda-slots tr.fc-slot0 th, .fc-agenda-slots tr.fc-slot0 td { border-top-width: 0; } .fc-agenda-slots tr.fc-minor th, .fc-agenda-slots tr.fc-minor td { border-top-style: dotted; } .fc-agenda-slots tr.fc-minor th.ui-widget-header { *border-top-style: solid; /* doesn't work with background in IE6/7 */ } /* Vertical Events ------------------------------------------------------------------------*/ .fc-event-vert { border-width: 0 1px; } .fc-event-vert .fc-event-head, .fc-event-vert .fc-event-content { position: relative; z-index: 2; width: 100%; overflow: hidden; } .fc-event-vert .fc-event-time { white-space: nowrap; font-size: 10px; } .fc-event-vert .fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay */ position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; background: #fff; opacity: .3; filter: alpha(opacity=30); } .fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */ .fc-select-helper .fc-event-bg { display: none\9; /* for IE6/7/8. nested opacity filters while dragging don't work */ } /* resizable */ .fc-event-vert .ui-resizable-s { bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */ width: 100% !important; height: 8px !important; overflow: hidden !important; line-height: 8px !important; font-size: 11px !important; font-family: monospace; text-align: center; cursor: s-resize; } .fc-agenda .ui-resizable-resizing { /* TODO: better selector */ _overflow: hidden; }
00-techstorm
trunk/assets/admin/lib/fullcalendar-1.5.3/fullcalendar/fullcalendar.css
CSS
gpl3
10,699
/* * FullCalendar v1.5.3 Print Stylesheet * * Include this stylesheet on your page to get a more printer-friendly calendar. * When including this stylesheet, use the media='print' attribute of the <link> tag. * Make sure to include this stylesheet IN ADDITION to the regular fullcalendar.css. * * Copyright (c) 2011 Adam Shaw * Dual licensed under the MIT and GPL licenses, located in * MIT-LICENSE.txt and GPL-LICENSE.txt respectively. * * Date: Mon Feb 6 22:40:40 2012 -0800 * */ /* Events -----------------------------------------------------*/ .fc-event-skin { background: none !important; color: #000 !important; } /* horizontal events */ .fc-event-hori { border-width: 0 0 1px 0 !important; border-bottom-style: dotted !important; border-bottom-color: #000 !important; padding: 1px 0 0 0 !important; } .fc-event-hori .fc-event-inner { border-width: 0 !important; padding: 0 1px !important; } /* vertical events */ .fc-event-vert { border-width: 0 0 0 1px !important; border-left-style: dotted !important; border-left-color: #000 !important; padding: 0 1px 0 0 !important; } .fc-event-vert .fc-event-inner { border-width: 0 !important; padding: 1px 0 !important; } .fc-event-bg { display: none !important; } .fc-event .ui-resizable-handle { display: none !important; }
00-techstorm
trunk/assets/admin/lib/fullcalendar-1.5.3/fullcalendar/fullcalendar.print.css
CSS
gpl3
1,337
#zoom-box { background: white; border-radius: 10px; box-shadow: 0px 0px 10px rgba(50, 50, 50, 0.75); padding: 10px; z-index: 1000; border: 1px solid #999; } #zoom-box img { padding:0px; } #zoom-box > .zoom-close { position: absolute; top: -10px; left: -13px; } #zoom-box img { border: none; }
00-techstorm
trunk/assets/admin/lib/fancy-zoom/css/fancyzoom.css
CSS
gpl3
317
/**** Isotope Filtering ****/ .isotope-item { z-index: 2; } .isotope-hidden.isotope-item { pointer-events: none; z-index: 1; } /**** Isotope CSS3 transitions ****/ .isotope, .isotope .isotope-item { -webkit-transition-duration: 0.8s; -moz-transition-duration: 0.8s; -ms-transition-duration: 0.8s; -o-transition-duration: 0.8s; transition-duration: 0.8s; } .isotope { -webkit-transition-property: height, width; -moz-transition-property: height, width; -ms-transition-property: height, width; -o-transition-property: height, width; transition-property: height, width; } .isotope .isotope-item { -webkit-transition-property: -webkit-transform, opacity; -moz-transition-property: -moz-transform, opacity; -ms-transition-property: -ms-transform, opacity; -o-transition-property: -o-transform, opacity; transition-property: transform, opacity; } /**** disabling Isotope CSS3 transitions ****/ .isotope.no-transition, .isotope.no-transition .isotope-item, .isotope .isotope-item.no-transition { -webkit-transition-duration: 0s; -moz-transition-duration: 0s; -ms-transition-duration: 0s; -o-transition-duration: 0s; transition-duration: 0s; }
00-techstorm
trunk/assets/isotope/css/style.css
CSS
gpl3
1,288
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Index Default</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href="css/lightbox.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown active"> <a href="index.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown"> <a href="index.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="index.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="index.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="index.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="index.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Home Slider --> <div class="home-slider"> <!-- Carousel --> <div id="home-slider" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#home-slider" data-slide-to="0" class="active"></li> <li data-target="#home-slider" data-slide-to="1"></li> <li data-target="#home-slider" data-slide-to="2"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner"> <!-- Slide #1 --> <div class="item active" id="item-1"> <div class="container"> <div class="row"> <div class="col-sm-6"> <h1 class="first-child animated slideInDown delay-2">Powerful Responsive Theme For Business and Personal Projects</h1> <h3 class="animated slideInDown delay-3">Beautiful Theme That Works Out Of The Box</h3> <p class="text-muted animated slideInLeft delay-4">Nulla pretium libero interdum, tempus lorem non, rutrum diam. Quisque pellentesque diam sed pulvinar lobortis. <a href="index.html#" id="tooltip" data-toggle="tooltip" data-placement="top" title="Quisque pellentesque diam.">Vestibulum ante ipsum</a> primis in faucibus orci luctus et ultrices posuere cubilia Curae.</p> <a href="index.html#" class="btn btn-lg btn-red animated fadeInUpBig delay-5">Purchase Now</a> </div> <div class="col-sm-6 hidden-xs"> <img class="img-responsive" src="img/showcase.png" alt="..."> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .item --> <!-- Slide #2 --> <div class="item" id="item-2"> <div class="container"> <div class="row"> <div class="col-sm-6"> <ul class="lead"> <li class="animated slideInLeft delay-2"><span>Built with Bootstrap 3x</span></li> <li class="animated slideInLeft delay-3"><span>20+ HTML Templates</span></li> <li class="animated slideInLeft delay-4"><span>Isotope Gallery</span></li> <li class="animated slideInLeft delay-5"><span>LESS Files Included</span></li> </ul> <ul class="lead string"> <li class="animated fadeInUpBig delay-6"><span>Professional Multi-purpose Theme</span></li> <li class="animated fadeInUpBig delay-7"><span>That Works Out Of The Box</span></li> </ul> </div> <div class="col-sm-6 hidden-xs"> <img class="img-responsive" src="img/macbook.png" alt="..."> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .item --> <!-- Slide #3 --> <div class="item" id="item-3"> <div class="container"> <div class="row"> <div class="col-sm-6"> <h1 class="first-child animated slideInDown delay-2">Fully Packed With Features</h1> <h3 class="animated slideInDown delay-3">Look No Further</h3> <ul> <li class="animated slideInLeft delay-4"><i class="fa fa-chevron-circle-right fa-fw"></i> Built With Bootstrap 3</li> <li class="animated slideInLeft delay-5"><i class="fa fa-chevron-circle-right fa-fw"></i> Fully Responsive Design</li> <li class="animated slideInLeft delay-6"><i class="fa fa-chevron-circle-right fa-fw"></i> Easy to Customize</li> <li class="animated slideInLeft delay-7"><i class="fa fa-chevron-circle-right fa-fw"></i> 20+ HTML Templates</li> </ul> <a href="index.html#" class="btn btn-lg btn-red animated fadeInUpBig delay-8">Purchase Now</a> </div> <div class="col-sm-6 hidden-xs"> <img class="img-responsive" src="img/iphone.png" alt="..."> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .item --> </div> <!-- / .carousel --> <!-- Controls --> <a class="carousel-arrow carousel-arrow-prev" href="index.html#home-slider" data-slide="prev"> <i class="fa fa-angle-left"></i> </a> <a class="carousel-arrow carousel-arrow-next" href="index.html#home-slider" data-slide="next"> <i class="fa fa-angle-right"></i> </a> </div> </div> <!-- / .home-slider --> <!-- Services --> <div class="home-services"> <div class="container"> <div class="row"> <div class="col-sm-12 col-md-7"> <ul> <li> <i class="fa fa-gears"></i> <p><span>Built with </span> Bootstrap 3</p> </li> <li> <i class="fa fa-flag"></i> <p>Font Awesome <span>Icons</span></p> </li> <li> <i class="fa fa-picture-o"></i> <p>Isotope <span>Portfolio</span></p> </li> <li> <i class="fa fa-envelope-o"></i> <p>24/7 Support <span>by e-mail</span></p> </li> </ul> </div> <div class="col-md-5 hidden-sm hidden-xs"> <p class="lead">Ready-to-go Solution Built with Bootstrap 3</p> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .services --> <!-- Browser Showcase --> <div class="container"> <div class="row"> <div class="col-sm-12"> <h2 class="first-child text-center">Paperclip: Multi-purpose Professional Theme</h2> <h4 class="text-blue text-center">Perfect for corporate websites and mobile apps.</h4> <div class="browser-showcase"> <img src="img/browsers.png" class="img-responsive" alt="..."> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Main Services --> <div class="main-services"> <div class="container"> <div class="row"> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-gear"></i> <div class="service-desc"> <h4>Built With Bootstrap 3</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-arrows-alt"></i> <div class="service-desc"> <h4>Responsive Design</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-refresh"></i> <div class="service-desc"> <h4>Easy to Customize</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-plus"></i> <div class="service-desc"> <h4>20+ Templates Included</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-envelope"></i> <div class="service-desc"> <h4>24/7 Support</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-picture-o"></i> <div class="service-desc"> <h4>Isotope Gallery</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .main-features --> <!-- Responsive Showcase --> <div class="responsive-showcase"> <div class="container"> <div class="responsive-design"> <div class="row"> <div class="col-sm-6"> <h2>Fully Responsive Design</h2> <p class="lead text-muted"> Pellentesque magna turpis, porttitor non leo ac, imperdiet sollicitudin neque. Sed id condimentum quam. Ut dui velit, suscipit et libero vulputate, feugiat vestibulum velit. Integer auctor, orci sit amet tincidunt posuere. </p> <ul class="list-inline hidden-xs"> <li><i class="fa fa-mobile text-blue inactive" data-device="#iphone"></i></li> <li><i class="fa fa-tablet text-blue inactive" data-device="#ipad"></i></li> <li><i class="fa fa-laptop text-blue" data-device="#macbook"></i></li> <li><i class="fa fa-desktop text-blue inactive" data-device="#imac"></i></li> </ul> </div> <div class="col-sm-6 hidden-xs"> <img class="img-responsive show" src="img/macbook.png" alt="..." id="macbook"> <img class="img-responsive hidden" src="img/imac.png" alt="..." id="imac"> <img class="img-responsive hidden" src="img/ipad.png" alt="..." id="ipad"> <img class="img-responsive hidden" src="img/iphone.png" alt="..." id="iphone"> </div> </div> <!-- / .row --> </div> <!-- / .template-thumbnails --> </div> <!-- / .container --> </div> <!-- / .template-showcase --> <!-- Feedback --> <div class="feedbacks"> <div class="container"> <div class="row"> <div class="col-sm-12"> <h2 class="text-center">What Clients Say About Us</h2> </div> </div> <!-- / .row --> <div class="row"> <div class="col-sm-6 col-md-4"> <div class="feedback"> <i class="fa fa-user fa-2x"></i> <div> <p> In vitae sodales massa. Proin commodo nibh sed nisi placerat facilisis. Fusce fringilla elit ipsum, vitae viverra ligula hendrerit nec. </p> </div> </div> </div> <div class="col-sm-6 col-md-4"> <div class="feedback"> <i class="fa fa-user fa-2x"></i> <div> <p> In vitae sodales massa. Proin commodo nibh sed nisi placerat facilisis. Fusce fringilla elit ipsum, vitae viverra ligula hendrerit nec. </p> </div> </div> </div> <div class="hidden-sm col-md-4"> <div class="feedback"> <i class="fa fa-user fa-2x"></i> <div> <p> In vitae sodales massa. Proin commodo nibh sed nisi placerat facilisis. Fusce fringilla elit ipsum, vitae viverra ligula hendrerit nec. </p> </div> </div> </div> <div class="col-sm-6 col-md-6"> <div class="feedback"> <i class="fa fa-user fa-2x"></i> <div> <p> Donec dignissim ipsum nec sagittis suscipit. Nullam nibh turpis, faucibus ultrices ullamcorper et, ornare sit amet quam. Etiam adipiscing justo massa, vel elementum felis aliquet quis. Nulla facilisis magna nulla, nec imperdiet felis lacinia et. </p> </div> </div> </div> <div class="col-sm-6 col-md-6"> <div class="feedback"> <i class="fa fa-user fa-2x"></i> <div> <p> Donec dignissim ipsum nec sagittis suscipit. Nullam nibh turpis, faucibus ultrices ullamcorper et, ornare sit amet quam. Etiam adipiscing justo massa, vel elementum felis aliquet quis. Nulla facilisis magna nulla, nec imperdiet felis lacinia et. </p> </div> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .feedback --> <!-- Recent Blog Posts --> <div class="container"> <div class="row"> <div class="col-sm-12"> <h2 class="text-center">Recent Blog Posts</h2> </div> </div> <!-- / .row --> <div class="row"> <div class="col-sm-6"> <div class="blog"> <img src="img/photo-1.jpg" alt="..."> <div class="blog-desc"> <h3> <a href="blog-post.html">Sed lacinia suscipit lacus non sodales. Pellentesque lacinia ornare justo eu tincidunt.</a> </h3> <hr> <p class="text-muted">by John Doe</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nisi lorem, elementum sed feugiat ac, pharetra lacinia mi. Integer iaculis risus sed quam vehicula, sit amet lacinia sem rutrum. Integer ligula orci.</p> <a class="btn btn-lg btn-red" href="blog-post.html">Read More...</a> </div> </div> </div> <div class="col-sm-6"> <div class="blog"> <img src="img/photo-2.jpg" alt="..."> <div class="blog-desc"> <h3> <a href="blog-post.html">Nulla pretium libero interdum, tempus lorem non, rutrum diam. Lorem ipsum dolor sit amet.</a> </h3> <hr> <p class="text-muted">by John Doe</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nisi lorem, elementum sed feugiat ac, pharetra lacinia mi. Integer iaculis risus sed quam vehicula, sit amet lacinia sem rutrum. Integer ligula orci.</p> <a class="btn btn-lg btn-red" href="blog-post.html">Read More...</a> </div> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="index.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="index.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="index.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/lightbox-2.6.min.js"></script> <script src="js/custom.js"></script> <script src="js/index.js"></script> </body> </html>
00-techstorm
trunk/assets/template/index.html
HTML
gpl3
25,192
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - User Profile</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="user-profile.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown"> <a href="user-profile.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="user-profile.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="user-profile.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown active"> <a href="user-profile.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="user-profile.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>User Profile</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">User Profile</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-3"> <div class="user-avatar text-center"> <img class="img-responsive center-block" src="img/photo-1.jpg" alt="..."> John Doe <p class="text-muted">Project Manager</p> </div> <div class="panel panel-default"> <div class="panel-heading"> User Menu </div> <div class="panel-body"> <ul> <li><a href="user-profile.html#"><i class="fa fa-user"></i> My Profile</a></li> <li><a href="user-profile.html#"><i class="fa fa-edit"></i> Edit Profile</a></li> <li><a href="user-profile.html#"><i class="fa fa-envelope-o"></i> Messages</a></li> <li><a href="user-profile.html#"><i class="fa fa-sign-out"></i> Sign Out</a></li> </ul> </div> </div> </div> <div class="col-sm-9"> <div class="row"> <div class="col-sm-7"> <h3 class="second-child">John Joe</h3> <p class="text-muted"> Talented designer and passionate narrator. </p> <p><a href="https://wrapbootstrap.com/">https://wrapbootstrap.com/</a></p> <div class="social user-social"> <ul class="list-inline"> <li><a href="user-profile.html#" class="twitter"><i class="fa fa-twitter"></i></a></li> <li><a href="user-profile.html#" class="facebook"><i class="fa fa-facebook"></i></a></li> <li><a href="user-profile.html#" class="pinterest"><i class="fa fa-pinterest"></i></a></li> </ul> </div> </div> <div class="col-sm-5"> <ul class="user-info"> <li>From: <span class="text-muted">San Francisco, CA</span></li> <li>Rating: <ul class="rating list-inline"> <li><i class="fa fa-star"></i></li> <li><i class="fa fa-star"></i></li> <li><i class="fa fa-star"></i></li> <li><i class="fa fa-star"></i></li> <li><i class="fa fa-star"></i></li> </ul> </li> <li>Last login: <span class="text-muted">3 hours ago</span></li> </ul> <a href="http://7.pdvop2sz.z8.ru/paperclip/1.0/contact-us" class="btn btn-blue"><i class="fa fa-envelope"></i> Send Message</a> </div> <div class="col-sm-12 shopping-cart user-cart"> <hr class="arrow-down"> <table class="table table-bordered"> <thead> <tr> <th>3 items to buy</th> <th>Price</th> <th>Quantity</th> </tr> </thead> <tbody> <tr> <td> <img class="img-responsive" src="img/imac.png" alt="..."> <div class="item"> Product Title #1 <p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </td> <td>$339,00</td> <td><input type="number" name="pcs" value="1" class="form-control"></td> </tr> <tr> <td> <img class="img-responsive" src="img/macbook.png" alt="..."> <div class="item"> Product Title #2 <p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </td> <td>$210,00</td> <td><input type="number" name="pcs" value="1" class="form-control"></td> </tr> <tr> <td> <img class="img-responsive" src="img/ipad.png" alt="..."> <div class="item"> Product Title #3 <p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </td> <td>$50,00</td> <td><input type="number" name="pcs" value="1" class="form-control"></td> </tr> </tbody> </table> <ul class="text-right checkout"> <li><strong>Total Price</strong>: $599</li> <li><strong>Shipping</strong>: Free</li> <li><a href="user-profile.html#" class="btn btn-blue">Proceed to checkout</a></li> </ul> </div> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="user-profile.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="user-profile.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="user-profile.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/user-profile.html
HTML
gpl3
15,267
/*------------------------------------------------------------------ Project: Paperclip Author: Yevgeny S. URL: https://twitter.com/YevSim Version: 1.0 Created: 11/03/2014 Last change: 01/04/2014 -------------------------------------------------------------------*/ /* ===== Coming Soon Countdown ===== */ $(function () { var austDay = new Date(); austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26); $('#countdown').countdown({until: austDay}); $('#year').text(austDay.getFullYear()); });
00-techstorm
trunk/assets/template/js/coming-soon.js
JavaScript
gpl3
539
/*------------------------------------------------------------------ Project: Paperclip Author: Yevgeny S. URL: https://twitter.com/YevSim Version: 1.0 Created: 11/03/2014 Last change: 01/04/2014 -------------------------------------------------------------------*/ /* ===== Tooltips ===== */ $('.tooltip-test > button').tooltip(); /* ===== Popovers ===== */ $('.popover-test > button').popover(); /* ===== Smooth Scrolling ===== */ $(document).ready(function(){ $('a[href*=#typography],a[href*=#buttons], a[href*=#navs], a[href*=#pagination], a[href*=#tooltips], a[href*=#popovers], a[href*=#panels], a[href*=#accordion], a[href*=#carousel], a[href*=#info-boards], a[href*=#social-links], a[href*=#responsive-iframes]').bind("click", function(e){ var anchor = $(this); $('html, body').stop().animate({ scrollTop: $(anchor.attr('href')).offset().top }, 1000); e.preventDefault(); }); return false; });
00-techstorm
trunk/assets/template/js/ui-elements.js
JavaScript
gpl3
978
/*------------------------------------------------------------------ Project: Paperclip Author: Yevgeny S. URL: https://twitter.com/YevSim Version: 1.0 Created: 11/03/2014 Last change: 01/04/2014 -------------------------------------------------------------------*/ /* ===== Tooltips ===== */ $('#bonus-tip').tooltip();
00-techstorm
trunk/assets/template/js/pricing-table.js
JavaScript
gpl3
348
//** jQuery Scroll to Top Control script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com. //** Available/ usage terms at http://www.dynamicdrive.com (March 30th, 09') //** v1.1 (April 7th, 09'): //** 1) Adds ability to scroll to an absolute position (from top of page) or specific element on the page instead. //** 2) Fixes scroll animation not working in Opera. var scrolltotop={ //startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control //scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top). setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]}, controlHTML: '<i class="fa fa-angle-up backtotop"></i>', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol" controlattrs: {offsetx:5, offsety:5}, //offset of control relative to right/ bottom of window corner anchorkeyword: '#top', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links state: {isvisible:false, shouldvisible:false}, scrollup:function(){ if (!this.cssfixedsupport) //if control is positioned using JavaScript this.$control.css({opacity:0}) //hide control immediately after clicking it var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto) if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists dest=jQuery('#'+dest).offset().top else dest=0 this.$body.animate({scrollTop: dest}, this.setting.scrollduration); }, keepfixed:function(){ var $window=jQuery(window) var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety this.$control.css({left:controlx+'px', top:controly+'px'}) }, togglecontrol:function(){ var scrolltop=jQuery(window).scrollTop() if (!this.cssfixedsupport) this.keepfixed() this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false if (this.state.shouldvisible && !this.state.isvisible){ this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0]) this.state.isvisible=true } else if (this.state.shouldvisible==false && this.state.isvisible){ this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1]) this.state.isvisible=false } }, init:function(){ jQuery(document).ready(function($){ var mainobj=scrolltotop var iebrws=document.all mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body') mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>') .css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'}) .attr({title:''}) .click(function(){mainobj.scrollup(); return false}) .appendTo('body') if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text mainobj.togglecontrol() $('a[href="' + mainobj.anchorkeyword +'"]').click(function(){ mainobj.scrollup() return false }) $(window).bind('scroll resize', function(e){ mainobj.togglecontrol() }) }) } } scrolltotop.init()
00-techstorm
trunk/assets/template/js/scrolltopcontrol.js
JavaScript
gpl3
3,721
/*------------------------------------------------------------------ Project: Paperclip Author: Yevgeny S. URL: https://twitter.com/YevSim Version: 1.0 Created: 11/03/2014 Last change: 01/04/2014 -------------------------------------------------------------------*/ // Isotop Gallery // ============== var $container = $('#isotope-container'); $container.isotope({ itemSelector : '.isotope-item', }); $('#filters a').click(function(){ var selector = $(this).attr('data-filter'); $container.isotope({ filter: selector }); return false; });
00-techstorm
trunk/assets/template/js/portfolio.js
JavaScript
gpl3
588
/*------------------------------------------------------------------ Project: Paperclip Author: Yevgeny S. URL: https://twitter.com/YevSim Version: 1.0 Created: 11/03/2014 Last change: 01/04/2014 -------------------------------------------------------------------*/ /* ===== Sign Up popovers ===== */ $(function(){ $('#name').popover(); }); $(function(){ $('#username').popover(); }); $(function(){ $('#email').popover(); }); $(function(){ $('#password').popover(); }); $(function(){ $('#repeat-password').popover(); });
00-techstorm
trunk/assets/template/js/sign-up.js
JavaScript
gpl3
573
/*------------------------------------------------------------------ Project: Paperclip Author: Yevgeny S. URL: https://twitter.com/YevSim Version: 1.0 Created: 11/03/2014 Last change: 01/04/2014 -------------------------------------------------------------------*/ /* ===== Tooltips ===== */ $('#tooltip').tooltip();
00-techstorm
trunk/assets/template/js/index.js
JavaScript
gpl3
346
/*------------------------------------------------------------------ Project: Paperclip Author: Yevgeny S. URL: https://twitter.com/YevSim Version: 1.0 Created: 11/03/2014 Last change: 01/04/2014 -------------------------------------------------------------------*/ /* ===== Navbar Search ===== */ $('#navbar-search > a').on('click', function() { $('#navbar-search > a > i').toggleClass('fa-search fa-times'); $("#navbar-search-box").toggleClass('show hidden animated fadeInUp'); return false; }); /*===== Pricing Bonus ===== */ $('#bonus .pricing-number > .fa-scissors').on('click', function() { $(this).css('left', '100%'); /* Cutting */ setTimeout(function(){ /* Removing the scissors */ $('#bonus .pricing-number > .fa-scissors').addClass('hidden'); $('#bonus .pricing-body ul').addClass('animated fadeOutDown'); }, 2000); return false; }); /* ===== Lost password form ===== */ $('.pwd-lost > .pwd-lost-q > a').on('click', function() { $(".pwd-lost > .pwd-lost-q").toggleClass("show hidden"); $(".pwd-lost > .pwd-lost-f").toggleClass("hidden show animated fadeIn"); return false; }); /* ===== Thumbs rating ===== */ $('.rating .voteup').on('click', function () { var up = $(this).closest('div').find('.up'); up.text(parseInt(up.text(),10) + 1); return false; }); $('.rating .votedown').on('click', function () { var down = $(this).closest('div').find('.down'); down.text(parseInt(down.text(),10) + 1); return false; }); /* ===== Responsive Showcase ===== */ $('.responsive-showcase ul > li > i').on('click', function() { var device = $(this).data('device'); $('.responsive-showcase ul > li > i').addClass("inactive"); $(this).removeClass("inactive"); $('.responsive-showcase img').removeClass("show"); $('.responsive-showcase img').addClass("hidden"); $('.responsive-showcase img' + device).toggleClass("hidden show"); $('.responsive-showcase img' + device).addClass("animated fadeIn"); return false; }); /* ===== Services ===== */ $('.service-item').hover (function() { $(this).children("i").toggleClass("fa-rotate-90"); return false; });
00-techstorm
trunk/assets/template/js/custom.js
JavaScript
gpl3
2,215
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Blog</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="blog.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown"> <a href="blog.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="blog.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown active"> <a href="blog.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="blog.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="blog.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Blog</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">Blog</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-9"> <!-- Blog Post #1 --> <div class="blog"> <img src="img/photo-1.jpg" alt="..."> <div class="blog-desc"> <h3> <a href="blog-post.html">Sed lacinia suscipit lacus non sodales. Pellentesque lacinia ornare justo eu tincidunt.</a> </h3> <hr> <p class="text-muted">by John Doe on March 25, 2014</p> <p> Nam ultrices, orci sit amet dignissim dignissim, tellus elit consequat dui, eu venenatis urna nisi non est. Aliquam egestas pulvinar ornare. Aenean et vulputate lacus. Ut eget purus ut ante imperdiet feugiat quis vel elit. Donec imperdiet enim quis risus porttitor congue. Vestibulum vel tristique urna. Pellentesque nulla leo, laoreet sed luctus eu, dapibus id lorem. Pellentesque eu tincidunt odio. Proin imperdiet bibendum mauris, ut bibendum odio mollis id. </p> <a class="btn btn-lg btn-red" href="blog-post.html">Read More...</a> <a href="blog-post.html"><img class="img-responsive" src="img/general-3.jpg" alt="..."></a> </div> </div> <!-- Blog Post #2 --> <div class="blog"> <img src="img/photo-2.jpg" alt="..."> <div class="blog-desc"> <h3> <a href="blog-post.html">Aliquam placerat ligula nec augue sollicitudin porta.</a> </h3> <hr> <p class="text-muted">by John Doe on March 15, 2014</p> <p> Nam ultrices, orci sit amet dignissim dignissim, tellus elit consequat dui, eu venenatis urna nisi non est. Aliquam egestas pulvinar ornare. Aenean et vulputate lacus. Ut eget purus ut ante imperdiet feugiat quis vel elit. Donec imperdiet enim quis risus porttitor congue. Vestibulum vel tristique urna. Pellentesque nulla leo, laoreet sed luctus eu, dapibus id lorem. Pellentesque eu tincidunt odio. Proin imperdiet bibendum mauris, ut bibendum odio mollis id. </p> <a class="btn btn-lg btn-red" href="blog-post.html">Read More...</a> <a href="blog-post.html"><img class="img-responsive" src="img/general-4.jpg" alt="..."></a> </div> </div> <!-- Pagination --> <ul class="pagination pull-right"> <li><a href="blog.html#">&laquo;</a></li> <li class="active"><a href="blog.html#">1</a></li> <li><a href="blog.html#">2</a></li> <li><a href="blog.html#">3</a></li> <li><a href="blog.html#">4</a></li> <li><a href="blog.html#">5</a></li> <li><a href="blog.html#">&raquo;</a></li> </ul> <div class="clearfix"></div> </div> <div class="col-sm-3"> <!-- Search --> <form role="form"> <div class="well"> <div class="row"> <div class="col-sm-12"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search here..."> <span class="input-group-btn"> <button class="btn btn-red" type="button"><i class="fa fa-search"></i></button> </span> </div><!-- /input-group --> </div><!-- /.col-lg-6 --> </div><!-- /.row --> </div> </form> <!-- Categories --> <div class="panel panel-default"> <div class="panel-heading"> Categories </div> <div class="panel-body"> <ul> <li><a href="blog.html#">Databases (12)</a></li> <li><a href="blog.html#">Design (25)</a></li> <li><a href="blog.html#">Hardware (17)</a></li> <li><a href="blog.html#">Management (15)</a></li> <li><a href="blog.html#">Security (8)</a></li> </ul> </div> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="blog.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="blog.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="blog.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/blog.html
HTML
gpl3
14,082
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Portfolio Item</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href="css/lightbox.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="portfolio-item.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown"> <a href="portfolio-item.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown active"> <a href="portfolio-item.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="portfolio-item.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="portfolio-item.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="portfolio-item.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Portfolio Item</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li><a href="portfolio.html">Portfolio</a></li> <li class="active">Portfolio Item</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-6"> <div class="portfolio-slideshow"> <!-- Image Carousel --> <div id="portfolio-slideshow" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#portfolio-slideshow" data-slide-to="0" class="active"></li> <li data-target="#portfolio-slideshow" data-slide-to="1"></li> <li data-target="#portfolio-slideshow" data-slide-to="2"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner"> <div class="item active"> <img src="img/general-1.jpg" class="img-responsive" alt="..."> </div> <div class="item"> <img src="img/general-2.jpg" class="img-responsive" alt="..."> </div> <div class="item"> <img src="img/general-3.jpg" class="img-responsive" alt="..."> </div> <div class="item"> <img src="img/general-4.jpg" class="img-responsive" alt="..."> </div> </div> <!-- Controls --> <a class="carousel-arrow carousel-arrow-prev" href="portfolio-item.html#portfolio-slideshow" data-slide="prev"> <i class="fa fa-angle-left"></i> </a> <a class="carousel-arrow carousel-arrow-next" href="portfolio-item.html#portfolio-slideshow" data-slide="next"> <i class="fa fa-angle-right"></i> </a> </div> </div> </div> <div class="col-sm-6"> <h3 class="headline second-child"><span>Pellentesque elementum dolor</span></h3> <p>Integer sodales, lectus et elementum volutpat, ipsum purus tristique dolor, non scelerisque diam sem id neque. Etiam sit amet eros magna. Mauris purus nunc, venenatis vitae erat ac, sagittis consectetur dolor.</p> <br /> <h4 class="headline"><span>File Info</span></h4> <table class="table"> <tbody> <tr> <td>Category<td> <td>Modernism</td> </tr> <tr> <td>File Size<td> <td>1Mb</td> </tr> <tr> <td>License<td> <td>All Rights Reserved</td> </tr> </tbody> </table> </div> </div> <!-- / .row --> <div class="row"> <div class="col-sm-12"> <h3 class="headline"><span>Latest Items</span></h3> </div> <div class="col-sm-3"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-1.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-1.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> <div class="col-sm-3"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-2.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-2.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> <div class="col-sm-3"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-3.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-3.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> <div class="col-sm-3 isotope-item"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-4.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-2.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="portfolio-item.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="portfolio-item.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="portfolio-item.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/lightbox-2.6.min.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/portfolio-item.html
HTML
gpl3
15,671
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Contact Us</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="contact-us.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown active"> <a href="contact-us.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="contact-us.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="contact-us.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="contact-us.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="contact-us.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Contact Us</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">Contact Us</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-8"> <h3 class="headline first-child"><span>Contact Us</span></h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin congue tellus ut velit mollis condimentum. Nulla egestas neque sed odio varius facilisis. Donec ac metus gravida leo dictum porttitor.</p> <form role="form"> <div class="form-group"> <label for="email">Your email address</label> <input type="email" class="form-control" id="email" placeholder="Enter email"> </div> <div class="form-group"> <label for="name">Your name</label> <input type="text" class="form-control" id="name" placeholder="Enter name"> </div> <div class="form-group"> <label for="message">Your message</label> <textarea class="form-control" rows="3" id="message" placeholder="Enter message"></textarea> </div> <div class="form-group"> <label for="exampleInputFile">Upload file</label> <input type="file" id="exampleInputFile"> <p class="help-block">Attach your file here.</p> </div> <div class="checkbox"> <label> <input type="checkbox"> Send a copy to myself </label> </div> <button type="submit" class="btn btn-lg btn-red">Send Request</button> </form> </div> <div class="col-sm-4"> <h3 class="headline second-child"><span>Our Address</span></h3> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="contact-us.html#">admin@mysite.com</a> </p> <h3 class="headline"><span>Google Map (responsive)</span></h3> <div class="google-maps"> <iframe width="500" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=San+Francisco,+CA,+United+States&amp;aq=0&amp;oq=san+f&amp;sll=37.77493,-122.419416&amp;sspn=0.158751,0.338173&amp;ie=UTF8&amp;hq=&amp;hnear=%D0%A1%D0%B0%D0%BD-%D0%A4%D1%80%D0%B0%D0%BD%D1%86%D0%B8%D1%81%D0%BA%D0%BE,+%D0%9A%D0%B0%D0%BB%D0%B8%D1%84%D0%BE%D1%80%D0%BD%D0%B8%D1%8F,+%D0%A1%D0%BE%D0%B5%D0%B4%D0%B8%D0%BD%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5+%D0%A8%D1%82%D0%B0%D1%82%D1%8B+%D0%90%D0%BC%D0%B5%D1%80%D0%B8%D0%BA%D0%B8&amp;t=m&amp;ll=37.774921,-122.419453&amp;spn=0.023745,0.030041&amp;z=14&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=San+Francisco,+CA,+United+States&amp;aq=0&amp;oq=san+f&amp;sll=37.77493,-122.419416&amp;sspn=0.158751,0.338173&amp;ie=UTF8&amp;hq=&amp;hnear=%D0%A1%D0%B0%D0%BD-%D0%A4%D1%80%D0%B0%D0%BD%D1%86%D0%B8%D1%81%D0%BA%D0%BE,+%D0%9A%D0%B0%D0%BB%D0%B8%D1%84%D0%BE%D1%80%D0%BD%D0%B8%D1%8F,+%D0%A1%D0%BE%D0%B5%D0%B4%D0%B8%D0%BD%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5+%D0%A8%D1%82%D0%B0%D1%82%D1%8B+%D0%90%D0%BC%D0%B5%D1%80%D0%B8%D0%BA%D0%B8&amp;t=m&amp;ll=37.774921,-122.419453&amp;spn=0.023745,0.030041&amp;z=14&amp;iwloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="contact-us.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="contact-us.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="contact-us.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/contact-us.html
HTML
gpl3
13,363
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Blog Post</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="blog-post.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown"> <a href="blog-post.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="blog-post.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown active"> <a href="blog-post.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="blog-post.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="blog-post.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Blog Post</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li><a href="blog.html">Blog</a></li> <li class="active">Blog Post</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-9"> <!-- Blog Post #1 --> <div class="blog"> <img src="img/photo-1.jpg" alt="..."> <div class="blog-desc"> <h3> <a href="blog-post.html">Sed lacinia suscipit lacus non sodales. Pellentesque lacinia ornare justo eu tincidunt.</a> </h3> <hr> <p class="text-muted">by John Doe on March 25, 2014</p> <p> Nam ultrices, orci sit amet dignissim dignissim, tellus elit consequat dui, eu venenatis urna nisi non est. Aliquam egestas pulvinar ornare. Aenean et vulputate lacus. Ut eget purus ut ante imperdiet feugiat quis vel elit. Donec imperdiet enim quis risus porttitor congue. Vestibulum vel tristique urna. Pellentesque nulla leo, laoreet sed luctus eu, dapibus id lorem. Pellentesque eu tincidunt odio. Proin imperdiet bibendum mauris, ut bibendum odio mollis id. </p> <img class="img-responsive" src="img/general-3.jpg" alt="..."> <p> Nulla fringilla lacinia tortor eget auctor. Morbi vulputate tincidunt justo, quis viverra arcu dapibus sit amet. Sed facilisis lectus non lacus tincidunt interdum. Pellentesque congue posuere urna quis condimentum. Maecenas non molestie leo. Quisque eget tortor tellus. Duis lacinia est vel blandit fermentum. Duis quis arcu mauris. Mauris et facilisis orci, sed pretium enim. In hac habitasse platea dictumst. Pellentesque eget tempor nisl, quis tempus ipsum. Nunc egestas neque ac velit lobortis pulvinar. <br /><br /> Aliquam neque metus, ornare eget tincidunt a, hendrerit ultricies nunc. Duis ornare semper eleifend. Suspendisse tellus justo, tristique vel eros ut, lacinia gravida arcu. Etiam erat ligula, mattis pellentesque velit id, facilisis ultricies sapien. Donec ultrices sodales velit ut placerat. Fusce id mi mattis est bibendum iaculis sit amet vitae lectus. Quisque tempus fringilla neque et accumsan. Etiam at metus laoreet, suscipit justo faucibus, lacinia massa. Pellentesque felis nibh, interdum id mi vel, ultrices fermentum quam. </p> </div> </div> <!-- Pagination --> <ul class="pager pull-right"> <li><a href="blog-post.html#">Previous</a></li> <li><a href="blog-post.html#">Next</a></li> </ul> <div class="clearfix"></div> <div class="comments"> <!-- New comment form --> <div class="cmt well"> <img src="img/photo-1.jpg" alt="..."> <div class="cmt-block"> <strong>Alex Smith</strong> <form role="form" class="cmt-body"> <div class="form-group"> <textarea class="form-control" rows="3" placeholder="Enter your comment here"></textarea> </div> <button type="submit" class="btn btn-red btn-sm">Submit</button> </form> </div> </div> <!-- List of comments --> <h4 class="text-right">3 comments</h4> <hr> <div class="cmt"> <img src="img/photo-2.jpg" alt="..."> <div class="cmt-block"> <a href="user-profile.html" class="profile-link">John Doe</a> <span class="text-muted time">20 minutes ago</span> <span class="rating pull-right"> <span class="up">0</span> <i class="fa fa-thumbs-up voteup"></i> <i class="fa fa-thumbs-down votedown"></i> <span class="down">0</span> </span> <p class="cmt-body"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis nibh nibh, a aliquam leo suscipit ac. Praesent ultricies nibh quis nisi placerat tristique non lobortis diam! </p> <ul class="list-inline"> <li><a href="blog-post.html#">Answer</a></li> </ul> </div> </div> <div class="cmt"> <img src="img/photo-3.jpg" alt="..."> <div class="cmt-block"> <a href="user-profile.html" class="profile-link">John Doe</a> <span class="text-muted time">1 hour ago</span> <span class="rating pull-right"> <span class="up">0</span> <i class="fa fa-thumbs-up voteup"></i> <i class="fa fa-thumbs-down votedown"></i> <span class="down">0</span> </span> <p class="cmt-body"> Praesent ultricies nibh quis nisi placerat tristique non lobortis diam. Quisque ac quam ut magna malesuada imperdiet ut a odio. Aliquam erat volutpat. Nullam non elit orci. </p> <ul class="list-inline"> <li><a href="blog-post.html#">Answer</a></li> </ul> </div> </div> <div class="cmt"> <img src="img/photo-1.jpg" alt="..."> <div class="cmt-block"> <a href="user-profile.html" class="profile-link">John Doe</a> <span class="text-muted time">08/01/2014</span> <span class="rating pull-right"> <span class="up">0</span> <i class="fa fa-thumbs-up voteup"></i> <i class="fa fa-thumbs-down votedown"></i> <span class="down">0</span> </span> <p class="cmt-body"> Duis vitae mollis massa. Nunc eleifend velit sit amet lorem commodo, a faucibus metus imperdiet. Maecenas vitae pellentesque lacus. Duis cursus lacus non porta eleifend. Nunc elementum, metus vitae ornare euismod, nulla felis pulvinar nunc, condimentum bibendum lacus elit in neque. Nunc hendrerit sit amet ipsum in elementum. Maecenas vel libero varius, convallis dui vel, ultricies urna. </p> <ul class="list-inline"> <li><a href="blog-post.html#">Answer</a></li> </ul> </div> </div> </div> </div> <div class="col-sm-3"> <!-- Search --> <form role="form"> <div class="well"> <div class="row"> <div class="col-sm-12"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search here..."> <span class="input-group-btn"> <button class="btn btn-red" type="button"><i class="fa fa-search"></i></button> </span> </div><!-- /input-group --> </div><!-- /.col-lg-6 --> </div><!-- /.row --> </div> </form> <!-- Categories --> <div class="panel panel-default"> <div class="panel-heading"> Categories </div> <div class="panel-body"> <ul> <li><a href="blog-post.html#">Databases (12)</a></li> <li><a href="blog-post.html#">Design (25)</a></li> <li><a href="blog-post.html#">Hardware (17)</a></li> <li><a href="blog-post.html#">Management (15)</a></li> <li><a href="blog-post.html#">Security (8)</a></li> </ul> </div> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="blog-post.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="blog-post.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="blog-post.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/blog-post.html
HTML
gpl3
17,801
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Coming Soon</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body class="coming-soon"> <div class="container"> <div class="row"> <div class="col-xs-12"> <!-- Main Content --> <h1 class="text-center">Coming Soon...</h1> <p class="lead text-center"> We are currently working on a new version of our website.<br /> Enter your e-mail below to stay tuned. </p> <form class="form-inline text-center" role="form"> <div class="form-group"> <label class="sr-only" for="email">Email address</label> <input type="email" class="form-control border-color col-sm-12" id="email" placeholder="Email"> </div> <button type="submit" class="btn btn-red">Subscribe</button> </form> </div> </div> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> <div id="countdown"></div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/jquery.plugin.min.js"></script> <script src="js/jquery.countdown.min.js"></script> <script src="js/custom.js"></script> <script src="js/coming-soon.js"></script> </body> </html>
00-techstorm
trunk/assets/template/coming-soon.html
HTML
gpl3
2,914
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Pricing Table</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="pricing-table.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown active"> <a href="pricing-table.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="pricing-table.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="pricing-table.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="pricing-table.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="pricing-table.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Pricing Table</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">Pricing Table</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-12"> <h3 class="headline first-child"><span>Please choose one of the pricing options below to subscribe</span></h3> <p> Donec tincidunt nec mi eu venenatis. Nulla facilisi. Maecenas venenatis condimentum porttitor. Aliquam erat volutpat. In ac mollis odio. Praesent ac mi nisi. Nulla congue mi at porttitor ultrices. Nulla pellentesque placerat elit, sit amet egestas mi consectetur eleifend. Integer molestie ultricies libero ut consectetur. Maecenas consectetur quis elit quis consequat. Sed tincidunt nulla in lorem ullamcorper, ut aliquam odio malesuada. </p> </div> </div> <!-- / .row --> <div class="row"> <div class="col-sm-6 col-md-3"> <div class="pricing-option"> <div class="pricing-inner"> <div class="pricing-header"> <h5>Basic Plan</h5> </div> <div class="pricing-number"> 25$<span>/month</span> </div> <div class="pricing-body"> <ul class="list-style-none"> <li>Lorem ipsum dolor sit amet</li> <li>Lorem ipsum dolor sit amet</li> <li>Lorem ipsum dolor sit amet</li> <li>Lorem ipsum dolor sit amet</li> </ul> <a href="pricing-table.html#" class="btn btn-blue">Subscribe</a> </div> </div> </div> <!-- / .pricing-option --> </div> <div class="col-sm-6 col-md-3"> <div class="pricing-option" id="bonus"> <div class="pricing-inner"> <div class="pricing-header"> <h5>Pro Plan</h5> </div> <div class="pricing-number"> 35$<span>/month</span> <i class="fa fa-scissors" id="bonus-tip" data-toggle="tooltip" data-placement="top" title="Click to reach a secret level."></i> </div> <div class="pricing-body"> <ul class="list-style-none"> <li>Lorem ipsum dolor sit amet</li> <li>Lorem ipsum dolor sit amet</li> <li>Lorem ipsum dolor sit amet</li> <li>Lorem ipsum dolor sit amet</li> </ul> <p class="text-center"> <i class="fa fa-unlock fa-lg"></i><br /> Congratulations! You've unlocked a secret level.<br /> As a bonus you get a 5% discount, but keep it on the down low! </p> <a href="pricing-table.html#" class="btn btn-blue">Subscribe</a> </div> </div> </div> <!-- / .pricing-option --> </div> <div class="col-sm-6 col-md-3"> <div class="pricing-option"> <div class="pricing-inner"> <div class="pricing-header"> <h5>Business Plan</h5> </div> <div class="pricing-number"> 45$<span>/month</span> </div> <div class="pricing-body"> <ul class="list-style-none"> <li>Lorem ipsum dolor sit amet</li> <li>Lorem ipsum dolor sit amet</li> <li>Lorem ipsum dolor sit amet</li> <li>Lorem ipsum dolor sit amet</li> </ul> <a href="pricing-table.html#" class="btn btn-blue">Subscribe</a> </div> </div> </div> <!-- / .pricing-option --> </div> <div class="col-sm-6 col-md-3"> <div class="pricing-option"> <div class="pricing-inner"> <div class="pricing-header"> <h5>Exclusive Plan</h5> </div> <div class="pricing-number"> 55$<span>/month</span> </div> <div class="pricing-body"> <ul class="list-style-none"> <li>Lorem ipsum dolor sit amet</li> <li>Lorem ipsum dolor sit amet</li> <li>Lorem ipsum dolor sit amet</li> <li>Lorem ipsum dolor sit amet</li> </ul> <a href="pricing-table.html#" class="btn btn-blue">Subscribe</a> </div> </div> </div> <!-- / .pricing-option --> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="pricing-table.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="pricing-table.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="pricing-table.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> <script src="js/pricing-table.js"></script> </body> </html>
00-techstorm
trunk/assets/template/pricing-table.html
HTML
gpl3
14,669
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - UI Elements</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="ui-elements.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown"> <a href="ui-elements.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="ui-elements.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="ui-elements.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="ui-elements.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="active hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="ui-elements.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>UI Elements</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">UI Elements</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <!-- Vertical Navigation --> <div class="col-md-3"> <div class="panel panel-default bs-sidebar affix-top" data-spy="affix" data-offset-top="110" data-offset-bottom="379"> <div class="panel-heading"> Elements </div> <div class="panel-body"> <ul> <li><a href="ui-elements.html#typography">Typography</a></li> <li><a href="ui-elements.html#buttons">Buttons</a></li> <li><a href="ui-elements.html#navs">Navs</a></li> <li><a href="ui-elements.html#pagination">Pagination</a></li> <li><a href="ui-elements.html#tooltips">Tooltips</a></li> <li><a href="ui-elements.html#popovers">Popovers</a></li> <li><a href="ui-elements.html#panels">Panels</a></li> <li><a href="ui-elements.html#accordions">Accordion</a></li> <li><a href="ui-elements.html#carousel">Carousel</a></li> <li><a href="ui-elements.html#info-boards">Info Boards</a></li> <li><a href="ui-elements.html#social-links">Social Links</a></li> <li><a href="ui-elements.html#responsive-iframes">Responsive iFrames</a></li> </ul> </div> </div> </div> <!-- / .col-md-3 --> <div class="col-md-9"> <!-- Typography --> <h2 class="headline first-child" id="typography"><span>Typography</span></h2> <div class="row"> <div class="col-sm-8"> <p class="lead"> Phasellus a sem et augue ullamcorper gravida. Maecenas sed porta orci. Aliquam interdum felis sapien, vitae viverra diam consectetur a. Sed interdum quam leo, sed pretium eros mattis vitae. </p> <p> Phasellus a sem et augue ullamcorper gravida. Maecenas sed porta orci. Aliquam interdum felis sapien, vitae viverra diam consectetur a. Sed interdum quam leo, sed pretium eros mattis vitae. </p> </div> <div class="col-sm-4"> <h1 class="first-child">Header 1</h1> <h2>Header 2</h2> <h3>Header 3</h3> <h4>Header 4</h4> <h5>Header 5</h5> <h6>Header 6</h6> </div> </div> <!-- Buttons --> <h2 class="headline" id="buttons"><span>Buttons</span></h2> <div class="row"> <div class="col-sm-6"> <div class="panel-body"> <p><a class="btn btn-lg btn-default">Large Button Red</a> <a class="btn btn-lg btn-red">Large Button Red</a> </p> <p><a class="btn btn-default">Default Button</a> <a class="btn btn-red">Default Button</a> </p> <p><a class="btn btn-sm btn-default">Small Button</a> <a class="btn btn-sm btn-red">Small Button</a> </p> <p><a class="btn btn-xs btn-default">Extra Small</a> <a class="btn btn-xs btn-red">Extra Small</a> </p> </div> </div> <div class="col-sm-6"> <div class="panel-body"> <p><a class="btn btn-lg btn-default">Large Button Blue</a> <a class="btn btn-lg btn-blue">Large Button Blue</a> </p> <p><a class="btn btn-default">Default Button</a> <a class="btn btn-blue">Default Button</a> </p> <p><a class="btn btn-sm btn-default">Small Button</a> <a class="btn btn-sm btn-blue">Small Button</a> </p> <p><a class="btn btn-xs btn-default">Extra Small</a> <a class="btn btn-xs btn-blue">Extra Small</a> </p> </div> </div> </div> <!-- Navs --> <h2 class="headline" id="navs"><span>Navs</span></h2> <div class="row"> <div class="col-sm-6"> <h3 class="first-child">Tabs</h3> <ul class="nav nav-tabs"> <li class="active"><a href="ui-elements.html#">Home</a></li> <li><a href="ui-elements.html#">Profile</a></li> <li><a href="ui-elements.html#">Messages</a></li> </ul> </div> <div class="col-sm-6"> <h3 class="second-child">Pills</h3> <ul class="nav nav-pills"> <li class="active"><a href="ui-elements.html#">Home</a></li> <li><a href="ui-elements.html#">Profile</a></li> <li><a href="ui-elements.html#">Messages</a></li> </ul> </div> </div> <!-- Pagination --> <h2 class="headline" id="pagination"><span>Pagination</span></h2> <!-- Pagination Large --> <div class="pagination-example"> <ul class="pagination pagination-lg"> <li><a href="ui-elements.html#">&laquo;</a></li> <li class="active"><a href="ui-elements.html#">1</a></li> <li><a href="ui-elements.html#">2</a></li> <li><a href="ui-elements.html#">3</a></li> <li><a href="ui-elements.html#">4</a></li> <li><a href="ui-elements.html#">5</a></li> <li><a href="ui-elements.html#">&raquo;</a></li> </ul> </div> <!-- Pagination Default --> <div class="pagination-example"> <ul class="pagination"> <li><a href="ui-elements.html#">&laquo;</a></li> <li class="active"><a href="ui-elements.html#">1</a></li> <li><a href="ui-elements.html#">2</a></li> <li><a href="ui-elements.html#">3</a></li> <li><a href="ui-elements.html#">4</a></li> <li><a href="ui-elements.html#">5</a></li> <li><a href="ui-elements.html#">&raquo;</a></li> </ul> </div> <!-- Pagination Small --> <div class="pagination-example"> <ul class="pagination pagination-sm"> <li><a href="ui-elements.html#">&laquo;</a></li> <li class="active"><a href="ui-elements.html#">1</a></li> <li><a href="ui-elements.html#">2</a></li> <li><a href="ui-elements.html#">3</a></li> <li><a href="ui-elements.html#">4</a></li> <li><a href="ui-elements.html#">5</a></li> <li><a href="ui-elements.html#">&raquo;</a></li> </ul> </div> <!-- Tooltips --> <h2 class="headline" id="tooltips"><span>Tooltips</span></h2> <div class="tooltip-test"> <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="left" title="Tooltip on left">Tooltip on left</button> <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Tooltip on top">Tooltip on top</button> <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">Tooltip on bottom</button> <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="right" title="Tooltip on right">Tooltip on right</button> </div> <!-- Popovers --> <h2 class="headline" id="popovers"><span>Popovers</span></h2> <div class="popover-test"> <button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."> Popover on left </button> <button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."> Popover on top </button> <button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."> Popover on bottom </button> <button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."> Popover on right </button> </div> <!-- Panels --> <h2 class="headline" id="panels"><span>Panels</span></h2> <div class="row"> <div class="col-sm-4"> <!-- Panel default --> <div class="panel panel-default"> <div class="panel-heading">Panel default</div> <div class="panel-body"> Panel content </div> </div> </div> <div class="col-sm-4"> <!-- Panel red --> <div class="panel panel-red"> <div class="panel-heading">Panel red</div> <div class="panel-body"> Panel content </div> </div> </div> <div class="col-sm-4"> <!-- Panel blue --> <div class="panel panel-blue"> <div class="panel-heading">Panel blue</div> <div class="panel-body"> Panel content </div> </div> </div> </div> <!-- Accordion --> <h2 class="headline" id="accordions"><span>Accordion</span></h2> <div class="panel-group" id="accordion"> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#accordion" href="ui-elements.html#collapseOne"> Collapsible Group Item #1 </a> </div> <div id="collapseOne" class="panel-collapse collapse in"> <div class="panel-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#accordion" href="ui-elements.html#collapseTwo" class="collapsed"> Collapsible Group Item #2 </a> </div> <div id="collapseTwo" class="panel-collapse collapse"> <div class="panel-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#accordion" href="ui-elements.html#collapseThree" class="collapsed"> Collapsible Group Item #3 </a> </div> <div id="collapseThree" class="panel-collapse collapse"> <div class="panel-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> </div> <!-- Carousel --> <h2 class="headline" id="carousel"><span>Carousel</span></h2> <div class="carousel-example"> <!-- Image Carousel --> <div id="portfolio-slideshow" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> <li data-target="#carousel-example-generic" data-slide-to="1"></li> <li data-target="#carousel-example-generic" data-slide-to="2"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner"> <div class="item active"> <img src="img/general-1.jpg" class="img-responsive" alt="..."> </div> <div class="item"> <img src="img/general-2.jpg" class="img-responsive" alt="..."> </div> <div class="item"> <img src="img/general-3.jpg" class="img-responsive" alt="..."> </div> <div class="item"> <img src="img/general-4.jpg" class="img-responsive" alt="..."> </div> </div> <!-- Controls --> <a class="carousel-arrow carousel-arrow-prev" href="ui-elements.html#portfolio-slideshow" data-slide="prev"> <i class="fa fa-angle-left"></i> </a> <a class="carousel-arrow carousel-arrow-next" href="ui-elements.html#portfolio-slideshow" data-slide="next"> <i class="fa fa-angle-right"></i> </a> </div> </div> <!-- Info Boards --> <h2 class="headline" id="info-boards"><span>Info Boards</span></h2> <div class="row"> <div class="col-sm-6"> <!-- Info Board Red --> <div class="info-board info-board-red"> <h4>Welcome Aboard</h4> <p> Nunc in neque nec arcu vulputate ullamcorper. Ut id orci ac arcu consectetur fringilla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p> </div> </div> <div class="col-sm-6"> <!-- Info Board Blue --> <div class="info-board info-board-blue"> <h4>Welcome Aboard</h4> <p> Nunc in neque nec arcu vulputate ullamcorper. Ut id orci ac arcu consectetur fringilla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p> </div> </div> </div> <!-- / .row --> <!-- Social Links --> <h2 class="headline" id="social-links"><span>Social Links</span></h2> <div class="social social-lg"> <ul class="list-inline"> <li><a href="ui-elements.html#" class="rss"><i class="fa fa-rss"></i></a></li> <li><a href="ui-elements.html#" class="facebook"><i class="fa fa-facebook"></i></a></li> <li><a href="ui-elements.html#" class="twitter"><i class="fa fa-twitter"></i></a></li> <li><a href="ui-elements.html#" class="plus"><i class="fa fa-plus"></i></a></li> <li><a href="ui-elements.html#" class="vk"><i class="fa fa-vk"></i></a></li> <li><a href="ui-elements.html#" class="vimeo"><i class="fa fa-vimeo-square"></i></a></li> <li><a href="ui-elements.html#" class="github"><i class="fa fa-github"></i></a></li> <li><a href="ui-elements.html#" class="linkedin"><i class="fa fa-linkedin"></i></a></li> <li><a href="ui-elements.html#" class="dropbox"><i class="fa fa-dropbox"></i></a></li> <li><a href="ui-elements.html#" class="youtube"><i class="fa fa-youtube"></i></a></li> </ul> </div> <div class="social"> <ul class="list-inline"> <li><a href="ui-elements.html#" class="rss"><i class="fa fa-rss"></i></a></li> <li><a href="ui-elements.html#" class="facebook"><i class="fa fa-facebook"></i></a></li> <li><a href="ui-elements.html#" class="twitter"><i class="fa fa-twitter"></i></a></li> <li><a href="ui-elements.html#" class="plus"><i class="fa fa-plus"></i></a></li> <li><a href="ui-elements.html#" class="vk"><i class="fa fa-vk"></i></a></li> <li><a href="ui-elements.html#" class="vimeo"><i class="fa fa-vimeo-square"></i></a></li> <li><a href="ui-elements.html#" class="github"><i class="fa fa-github"></i></a></li> <li><a href="ui-elements.html#" class="linkedin"><i class="fa fa-linkedin"></i></a></li> <li><a href="ui-elements.html#" class="dropbox"><i class="fa fa-dropbox"></i></a></li> <li><a href="ui-elements.html#" class="youtube"><i class="fa fa-youtube"></i></a></li> </ul> </div> <div class="social social-sm"> <ul class="list-inline"> <li><a href="ui-elements.html#" class="rss"><i class="fa fa-rss"></i></a></li> <li><a href="ui-elements.html#" class="facebook"><i class="fa fa-facebook"></i></a></li> <li><a href="ui-elements.html#" class="twitter"><i class="fa fa-twitter"></i></a></li> <li><a href="ui-elements.html#" class="plus"><i class="fa fa-plus"></i></a></li> <li><a href="ui-elements.html#" class="vk"><i class="fa fa-vk"></i></a></li> <li><a href="ui-elements.html#" class="vimeo"><i class="fa fa-vimeo-square"></i></a></li> <li><a href="ui-elements.html#" class="github"><i class="fa fa-github"></i></a></li> <li><a href="ui-elements.html#" class="linkedin"><i class="fa fa-linkedin"></i></a></li> <li><a href="ui-elements.html#" class="dropbox"><i class="fa fa-dropbox"></i></a></li> <li><a href="ui-elements.html#" class="youtube"><i class="fa fa-youtube"></i></a></li> </ul> </div> <!-- Responsive iFrames --> <h2 class="headline" id="responsive-iframes"><span>Responsive iFrames</span></h2> <div class="row"> <div class="col-sm-6"> <div class="video-container"> <iframe src="http://player.vimeo.com/video/67449472?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> <div class="col-sm-6"> <div class="google-maps"> <iframe width="500" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=San+Francisco,+CA,+United+States&amp;aq=0&amp;oq=san+f&amp;sll=37.77493,-122.419416&amp;sspn=0.158751,0.338173&amp;ie=UTF8&amp;hq=&amp;hnear=%D0%A1%D0%B0%D0%BD-%D0%A4%D1%80%D0%B0%D0%BD%D1%86%D0%B8%D1%81%D0%BA%D0%BE,+%D0%9A%D0%B0%D0%BB%D0%B8%D1%84%D0%BE%D1%80%D0%BD%D0%B8%D1%8F,+%D0%A1%D0%BE%D0%B5%D0%B4%D0%B8%D0%BD%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5+%D0%A8%D1%82%D0%B0%D1%82%D1%8B+%D0%90%D0%BC%D0%B5%D1%80%D0%B8%D0%BA%D0%B8&amp;t=m&amp;ll=37.774921,-122.419453&amp;spn=0.023745,0.030041&amp;z=14&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=San+Francisco,+CA,+United+States&amp;aq=0&amp;oq=san+f&amp;sll=37.77493,-122.419416&amp;sspn=0.158751,0.338173&amp;ie=UTF8&amp;hq=&amp;hnear=%D0%A1%D0%B0%D0%BD-%D0%A4%D1%80%D0%B0%D0%BD%D1%86%D0%B8%D1%81%D0%BA%D0%BE,+%D0%9A%D0%B0%D0%BB%D0%B8%D1%84%D0%BE%D1%80%D0%BD%D0%B8%D1%8F,+%D0%A1%D0%BE%D0%B5%D0%B4%D0%B8%D0%BD%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5+%D0%A8%D1%82%D0%B0%D1%82%D1%8B+%D0%90%D0%BC%D0%B5%D1%80%D0%B8%D0%BA%D0%B8&amp;t=m&amp;ll=37.774921,-122.419453&amp;spn=0.023745,0.030041&amp;z=14&amp;iwloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small> </div> </div> </div> <!-- / .row --> </div> <!-- / .col-md-9 --> </div> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="ui-elements.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="ui-elements.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="ui-elements.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> <script src="js/ui-elements.js"></script> </body> </html>
00-techstorm
trunk/assets/template/ui-elements.html
HTML
gpl3
32,124
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Portfolio</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href="css/lightbox.css" rel="stylesheet"> <link href="isotope/css/style.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="portfolio.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown"> <a href="portfolio.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown active"> <a href="portfolio.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="portfolio.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="portfolio.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="portfolio.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Portfolio</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">Portfolio</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-3"> <!-- Categories --> <div class="panel panel-default"> <div class="panel-heading"> Choose Style </div> <div class="panel-body"> <ul id="filters"> <li><a href="portfolio.html#" data-filter="*">All</a></li> <li><a href="portfolio.html#" data-filter=".modernism">Modernism</a></li> <li><a href="portfolio.html#" data-filter=".impressionism">Impressionism</a></li> <li><a href="portfolio.html#" data-filter=".photorealism">Photorealism</a></li> <li><a href="portfolio.html#" data-filter=".surrealism">Surrealism</a></li> </ul> </div> </div> </div> <div class="col-sm-9"> <div class="row" id="isotope-container"> <div class="col-sm-6 col-md-6 col-lg-4 isotope-item modernism"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-1.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-1.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> <div class="col-sm-6 col-md-6 col-lg-4 isotope-item impressionism photorealism"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-2.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-2.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> <div class="col-sm-6 col-md-6 col-lg-4 isotope-item photorealism surrealism"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-3.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-3.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> <div class="col-sm-6 col-md-6 col-lg-4 isotope-item modernism surrealism impressionism"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-4.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-2.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> <div class="col-sm-6 col-md-6 col-lg-4 isotope-item impressionism surrealism"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-1.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-1.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> <div class="col-sm-6 col-md-6 col-lg-4 isotope-item photorealism surrealism"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-2.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-2.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> <div class="col-sm-6 col-md-6 col-lg-4 isotope-item modernism"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-3.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-3.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> <div class="col-sm-6 col-md-6 col-lg-4 isotope-item impressionism surrealism"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-4.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-2.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> <div class="col-sm-6 col-md-6 col-lg-4 isotope-item photorealism"> <div class="portfolio-item"> <div class="portfolio-thumbnail"> <img class="img-responsive" src="img/general-3.jpg" alt="..."> <div class="mask"> <p> <a href="img/general-3.jpg" data-lightbox="template_showcase"><i class="fa fa-search-plus fa-2x"></i></a> <a href="portfolio-item.html"><i class="fa fa-info-circle fa-2x"></i></a> </p> </div> </div> </div> <!-- / .portfolio-item --> </div> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="portfolio.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="portfolio.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="portfolio.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/lightbox-2.6.min.js"></script> <script src="isotope/js/jquery.isotope.min.js"></script> <script src="js/custom.js"></script> <script src="js/portfolio.js"></script> </body> </html>
00-techstorm
trunk/assets/template/portfolio.html
HTML
gpl3
17,597
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Responsive Video</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="responsive-video.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown active"> <a href="responsive-video.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="responsive-video.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="responsive-video.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="responsive-video.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="responsive-video.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Responsive Video</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">Responsive Video</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row margin-bottom-20"> <div class="col-sm-6"> <div class="video-container"> <iframe src="http://player.vimeo.com/video/67449472?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> <div class="col-sm-6"> <div class="video-container"> <iframe src="http://player.vimeo.com/video/67449472?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> </div> <div class="row margin-bottom-20"> <div class="col-sm-4"> <div class="video-container"> <iframe src="http://player.vimeo.com/video/67449472?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> <div class="col-sm-4"> <div class="video-container"> <iframe src="http://player.vimeo.com/video/67449472?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> <div class="col-sm-4"> <div class="video-container"> <iframe src="http://player.vimeo.com/video/67449472?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> </div> <div class="row margin-bottom-20"> <div class="col-sm-3"> <div class="video-container"> <iframe src="http://player.vimeo.com/video/67449472?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> <div class="col-sm-3"> <div class="video-container"> <iframe src="http://player.vimeo.com/video/67449472?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> <div class="col-sm-3"> <div class="video-container"> <iframe src="http://player.vimeo.com/video/67449472?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> <div class="col-sm-3"> <div class="video-container"> <iframe src="http://player.vimeo.com/video/67449472?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> </div> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="responsive-video.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="responsive-video.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="responsive-video.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/responsive-video.html
HTML
gpl3
12,987
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Sign Up</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="sign-up.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown active"> <a href="sign-up.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="sign-up.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="sign-up.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="sign-up.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="sign-up.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Sign Up</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">Sign Up</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2"> <div class="sign-form"> <div class="sign-inner"> <h3 class="first-child">Create New Account</h3> <hr> <form role="form"> <div class="form-group"> <input type="text" class="form-control" id="name" placeholder="Your name" data-toggle="popover" data-placement="left" data-trigger="focus" data-content="Enter your full name here." data-original-title="Name"> </div> <div class="form-group"> <input type="text" class="form-control" id="username" placeholder="Username" data-toggle="popover" data-placement="left" data-trigger="focus" data-content="Enter your nickname here." data-original-title="Username"> </div> <div class="form-group"> <input type="email" class="form-control" id="email" placeholder="Enter email" data-toggle="popover" data-placement="left" data-trigger="focus" data-content="Enter a valid email here." data-original-title="Email"> </div> <div class="form-group"> <div class="row"> <div class="col-sm-6"> <input type="password" class="form-control margin-bottom-xs" id="password" placeholder="Password" data-toggle="popover" data-placement="left" data-trigger="focus" data-content="Enter a good password here." data-original-title="Password"> </div> <div class="col-sm-6"> <input type="password" class="form-control" id="repeat-password" placeholder="Repeat Password" data-toggle="popover" data-trigger="focus" data-content="Confirm your password here." data-original-title="Repeat Password"> </div> </div> </div> <div class="checkbox"> <label> <input type="checkbox"> I agree to the <a href="sign-up.html#">Terms of Service</a> and <a href="sign-up.html#">Privacy Policy</a> </label> </div> <button type="submit" class="btn btn-red">Create Account</button> </form> </div> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="sign-up.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="sign-up.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="sign-up.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> <script src="js/sign-up.js"></script> </body> </html>
00-techstorm
trunk/assets/template/sign-up.html
HTML
gpl3
12,297
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Shop Item</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href="css/lightbox.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="shop-item.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown"> <a href="shop-item.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="shop-item.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="shop-item.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown active"> <a href="shop-item.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="shop-item.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Shop Item</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li><a href="shop.html">Shop</a></li> <li class="active">Shop Item</li> </ol> </div> </div> </div> </div> <div class="container shop-item"> <div class="row"> <div class="col-sm-9"> <div class="row"> <div class="col-sm-6"> <div class="product-img"> <a href="img/macbook.png" data-lightbox="products"> <img src="img/macbook.png" class="img-responsive main" alt="..."> </a> <div class="row"> <div class="col-xs-4"> <a href="img/macbook.png" data-lightbox="products"> <img src="img/macbook.png" class="img-responsive" alt="..."> </a> </div> <div class="col-xs-4"> <a href="img/imac.png" data-lightbox="products"> <img src="img/imac.png" class="img-responsive" alt="..."> </a> </div> <div class="col-xs-4"> <a href="img/ipad.png" data-lightbox="products"> <img src="img/ipad.png" class="img-responsive" alt="..."> </a> </div> </div> <!-- / .row --> </div> </div> <div class="col-sm-6"> <h3 class="headline first-child"><span>Product Title</span></h3> <ul class="rating list-inline"> <li><i class="fa fa-star"></i></li> <li><i class="fa fa-star"></i></li> <li><i class="fa fa-star"></i></li> <li><i class="fa fa-star"></i></li> <li><i class="fa fa-star"></i></li> </ul> <span class="text-muted reviews">(12 reviews)</span> <p class="text-muted"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim. </p> <div> <div class="price-block"> <span class="price">US $99,99 x</span> <input type="number" name="pcs" value="1" class="form-control"> </div> </div> <a class="btn btn-blue" href="shop-item.html#"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <!-- Item Description --> <div class="row"> <div class="col-sm-12"> <h3 class="headline"><span>Product Details</span></h3> <p> Nunc in neque nec arcu vulputate ullamcorper. Ut id orci ac arcu consectetur fringilla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis hendrerit enim id arcu lacinia, id commodo ante semper. Sed vel ante nec nisi vestibulum congue. Pellentesque non lacus in tortor rutrum tristique. </p> </div> </div> <!-- / .row --> <div class="row"> <div class="col-sm-12"> <h3 class="headline"><span>Similar Products</span></h3> <div class="row"> <div class="col-sm-4"> <div class="shop-product featured"> <a href="shop-item.html"><img src="img/imac.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #1</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p class="price"> <span class="old">$80,99</span> <span class="new">$59,99</span> </p> <a href="shop-item.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/macbook.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #2</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $200,00 </p> <a href="shop-item.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/ipad.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #3</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $50,00 </p> <a href="shop-item.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> </div> <!-- / .row --> </div> </div> <!-- / .row --> </div> <div class="col-sm-3"> <!-- Search --> <form role="form"> <div class="well"> <div class="row"> <div class="col-sm-12"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search products..."> <span class="input-group-btn"> <button class="btn btn-red" type="button"><i class="fa fa-search"></i></button> </span> </div><!-- /input-group --> </div><!-- /.col-lg-6 --> </div><!-- /.row --> </div> </form> <!-- Categories --> <div class="panel-group" id="help-nav"> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="shop-item.html#help-nav-one"> Books & CDs </a> </div> <div id="help-nav-one" class="panel-collapse collapse in"> <div class="panel-body"> <ul> <li><a href="shop-item.html#">Subcategory (17)</a></li> <li><a href="shop-item.html#">Subcategory (8)</a></li> <li><a href="shop-item.html#">Subcategory (10)</a></li> <li><a href="shop-item.html#">Subcategory (24)</a></li> <li><a href="shop-item.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="shop-item.html#help-nav-two" class="collapsed"> Electronics & Computers </a> </div> <div id="help-nav-two" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="shop-item.html#">Subcategory (17)</a></li> <li><a href="shop-item.html#">Subcategory (8)</a></li> <li><a href="shop-item.html#">Subcategory (10)</a></li> <li><a href="shop-item.html#">Subcategory (24)</a></li> <li><a href="shop-item.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="shop-item.html#help-nav-three" class="collapsed"> Home & Garden </a> </div> <div id="help-nav-three" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="shop-item.html#">Subcategory (17)</a></li> <li><a href="shop-item.html#">Subcategory (8)</a></li> <li><a href="shop-item.html#">Subcategory (10)</a></li> <li><a href="shop-item.html#">Subcategory (24)</a></li> <li><a href="shop-item.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="shop-item.html#help-nav-four" class="collapsed"> Toys & Kids </a> </div> <div id="help-nav-four" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="shop-item.html#">Subcategory (17)</a></li> <li><a href="shop-item.html#">Subcategory (8)</a></li> <li><a href="shop-item.html#">Subcategory (10)</a></li> <li><a href="shop-item.html#">Subcategory (24)</a></li> <li><a href="shop-item.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="shop-item.html#help-nav-five" class="collapsed"> Clothing & Shoes </a> </div> <div id="help-nav-five" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="shop-item.html#">Subcategory (17)</a></li> <li><a href="shop-item.html#">Subcategory (8)</a></li> <li><a href="shop-item.html#">Subcategory (10)</a></li> <li><a href="shop-item.html#">Subcategory (24)</a></li> <li><a href="shop-item.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="shop-item.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="shop-item.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="shop-item.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/lightbox-2.6.min.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/shop-item.html
HTML
gpl3
21,069
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Error Page</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown active"> <a href="error-page.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown"> <a href="error-page.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="error-page.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="error-page.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="error-page.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="error-page.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Error Page</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">Error Page</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-12 col-md-6 col-md-offset-3"> <div class="error-page"> <div class="not-found"> <span>Not Found</span> </div> <p>The page you were looking for couldn't be found.</p> <p class="text-muted">You can try to reload it some time later or browse our fabulous website right now!</p> <a href="index.html">Homepage</a> <span class="divider">|</span> <a href="about-us.html">About Us</a> <span class="divider">|</span> <a href="contact-us.html">Contact Us</a> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="error-page.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="error-page.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="error-page.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/error-page.html
HTML
gpl3
10,472
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Sign In</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="sign-in.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown active"> <a href="sign-in.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="sign-in.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="sign-in.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="sign-in.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="sign-in.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Sign In</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">Sign In</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2"> <div class="sign-form"> <div class="sign-inner"> <h3 class="first-child">Sign In To Your Account</h3> <hr> <form role="form"> <div class="input-group"> <span class="input-group-addon"><i class="fa fa-user"></i></span> <input type="email" class="form-control" id="email" placeholder="Enter email" data-original-title="" title=""> </div> <br> <div class="input-group"> <span class="input-group-addon"><i class="fa fa-lock"></i></span> <input type="password" class="form-control" id="password" placeholder="Password" data-original-title="" title=""> </div> <div class="checkbox"> <label> <input type="checkbox"> Remember me </label> </div> <button type="submit" class="btn btn-red">Submit</button> <hr> </form> <p>Not registered? <a href="sign-up.html">Create an Account.</a></p> <div class="pwd-lost"> <div class="pwd-lost-q show">Lost your password? <a href="sign-in.html#">Click here to recover.</a></div> <div class="pwd-lost-f hidden"> <p class="text-muted">Enter your email address below and we will send you a link to reset your password.</p> <form class="form-inline" role="form"> <div class="form-group"> <label class="sr-only" for="email-pwd">Email address</label> <input type="email" class="form-control" id="email-pwd" placeholder="Enter email"> </div> <button type="submit" class="btn btn-blue">Send</button> </form> </div> </div> <!-- / .pwd-lost --> </div> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="sign-in.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="sign-in.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="sign-in.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/sign-in.html
HTML
gpl3
12,024
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Shop</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="shop.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown"> <a href="shop.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="shop.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="shop.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown active"> <a href="shop.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="shop.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Shop</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">Shop</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-4"> <!-- Search --> <form role="form"> <div class="well"> <div class="row"> <div class="col-sm-12"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search products..."> <span class="input-group-btn"> <button class="btn btn-red" type="button"><i class="fa fa-search"></i></button> </span> </div><!-- /input-group --> </div><!-- /.col-lg-6 --> </div><!-- /.row --> </div> </form> <!-- Categories --> <div class="panel-group" id="help-nav"> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="shop.html#help-nav-one"> Books & CDs </a> </div> <div id="help-nav-one" class="panel-collapse collapse in"> <div class="panel-body"> <ul> <li><a href="shop.html#">Subcategory (17)</a></li> <li><a href="shop.html#">Subcategory (8)</a></li> <li><a href="shop.html#">Subcategory (10)</a></li> <li><a href="shop.html#">Subcategory (24)</a></li> <li><a href="shop.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="shop.html#help-nav-two" class="collapsed"> Electronics & Computers </a> </div> <div id="help-nav-two" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="shop.html#">Subcategory (17)</a></li> <li><a href="shop.html#">Subcategory (8)</a></li> <li><a href="shop.html#">Subcategory (10)</a></li> <li><a href="shop.html#">Subcategory (24)</a></li> <li><a href="shop.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="shop.html#help-nav-three" class="collapsed"> Home & Garden </a> </div> <div id="help-nav-three" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="shop.html#">Subcategory (17)</a></li> <li><a href="shop.html#">Subcategory (8)</a></li> <li><a href="shop.html#">Subcategory (10)</a></li> <li><a href="shop.html#">Subcategory (24)</a></li> <li><a href="shop.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="shop.html#help-nav-four" class="collapsed"> Toys & Kids </a> </div> <div id="help-nav-four" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="shop.html#">Subcategory (17)</a></li> <li><a href="shop.html#">Subcategory (8)</a></li> <li><a href="shop.html#">Subcategory (10)</a></li> <li><a href="shop.html#">Subcategory (24)</a></li> <li><a href="shop.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="shop.html#help-nav-five" class="collapsed"> Clothing & Shoes </a> </div> <div id="help-nav-five" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="shop.html#">Subcategory (17)</a></li> <li><a href="shop.html#">Subcategory (8)</a></li> <li><a href="shop.html#">Subcategory (10)</a></li> <li><a href="shop.html#">Subcategory (24)</a></li> <li><a href="shop.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> </div> </div> <div class="col-sm-8"> <!-- Filters --> <ul class="nav nav-tabs nav-justified"> <li class="active"><a href="shop.html#popular" data-toggle="tab">Most Popular</a></li> <li><a href="shop.html#recommended" data-toggle="tab">Recommended</a></li> <li><a href="shop.html#recent" data-toggle="tab">Recently Added</a></li> <li><a href="shop.html#last" data-toggle="tab">Last Chance</a></li> </ul> <div class="row"> <div class="tab-content"> <!-- All--> <div class="tab-pane fade in active" id="popular"> <div class="col-sm-4"> <div class="shop-product featured"> <a href="shop-item.html"><img src="img/imac.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #1</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p class="price"> <span class="old">$80,99</span> <span class="new">$59,99</span> </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/macbook.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #2</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $200,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/ipad.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #3</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $50,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/imac.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #1</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $200,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/macbook.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #2</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $200,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/ipad.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #3</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $50,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> </div> <!-- Ebooks --> <div class="tab-pane fade" id="recommended"> <div class="col-sm-4"> <div class="shop-product featured"> <a href="shop-item.html"><img src="img/imac.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #1</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p class="price"> <span class="old">$80,99</span> <span class="new">$59,99</span> </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/macbook.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #2</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $200,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> </div> <!-- Audio CD --> <div class="tab-pane fade" id="recent"> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/ipad.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #3</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $50,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/imac.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #1</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $200,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/macbook.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #2</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $200,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> </div> <!-- Audio CD --> <div class="tab-pane fade" id="last"> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/ipad.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #3</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $50,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/ipad.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #3</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $50,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/imac.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #1</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $200,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> <div class="col-sm-4"> <div class="shop-product"> <a href="shop-item.html"><img src="img/macbook.png" class="img-responsive" alt="..."></a> <a href="shop-item.html"><h5 class="primary-font">Product #2</h5></a> <p class="text-muted"> Nunc in neque nec arcu vulputate ullamcorper. </p> <p> $200,00 </p> <a href="shop.html#" class="btn btn-sm btn-blue"><i class="fa fa-shopping-cart"></i> Add to cart</a> </div> </div> </div> </div> <!-- /.tab-content --> </div> <!-- / .row --> <!-- Pagination --> <div class="row"> <div class="col-sm-12"> <ul class="pagination pull-right"> <li class="disabled"><a href="shop.html#">&laquo;</a></li> <li class="active"><a href="shop.html#">1 <span class="sr-only">(current)</span></a></li> <li><a href="shop.html#">2</a></li> <li><a href="shop.html#">3</a></li> <li><a href="shop.html#">4</a></li> <li><a href="shop.html#">5</a></li> <li><a href="shop.html#">&raquo;</a></li> </ul> </div> </div> <!-- / .row --> </div> <!-- / .col-sm-8 --> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="shop.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="shop.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="shop.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/shop.html
HTML
gpl3
27,828
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Help Center</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="help-center.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown active"> <a href="help-center.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="help-center.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="help-center.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="help-center.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="help-center.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Help Center</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">Help Center</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-4"> <!-- Search --> <form role="form"> <div class="well"> <div class="row"> <div class="col-sm-12"> <div class="input-group"> <input type="text" class="form-control" placeholder="Enter your question here..."> <span class="input-group-btn"> <button class="btn btn-red" type="button"><i class="fa fa-search"></i></button> </span> </div><!-- /input-group --> </div><!-- /.col-lg-6 --> </div><!-- /.row --> </div> </form> <!-- Categories --> <div class="panel-group" id="help-nav"> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="help-center.html#help-nav-one"> Administration </a> </div> <div id="help-nav-one" class="panel-collapse collapse in"> <div class="panel-body"> <ul> <li><a href="help-center.html#">Subcategory (17)</a></li> <li><a href="help-center.html#">Subcategory (8)</a></li> <li><a href="help-center.html#">Subcategory (10)</a></li> <li><a href="help-center.html#">Subcategory (24)</a></li> <li><a href="help-center.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="help-center.html#help-nav-two" class="collapsed"> Development </a> </div> <div id="help-nav-two" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="help-center.html#">Subcategory (17)</a></li> <li><a href="help-center.html#">Subcategory (8)</a></li> <li><a href="help-center.html#">Subcategory (10)</a></li> <li><a href="help-center.html#">Subcategory (24)</a></li> <li><a href="help-center.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="help-center.html#help-nav-three" class="collapsed"> Installation </a> </div> <div id="help-nav-three" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="help-center.html#">Subcategory (17)</a></li> <li><a href="help-center.html#">Subcategory (8)</a></li> <li><a href="help-center.html#">Subcategory (10)</a></li> <li><a href="help-center.html#">Subcategory (24)</a></li> <li><a href="help-center.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="help-center.html#help-nav-four" class="collapsed"> Security </a> </div> <div id="help-nav-four" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="help-center.html#">Subcategory (17)</a></li> <li><a href="help-center.html#">Subcategory (8)</a></li> <li><a href="help-center.html#">Subcategory (10)</a></li> <li><a href="help-center.html#">Subcategory (24)</a></li> <li><a href="help-center.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="help-center.html#help-nav-five" class="collapsed"> User Management </a> </div> <div id="help-nav-five" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="help-center.html#">Subcategory (17)</a></li> <li><a href="help-center.html#">Subcategory (8)</a></li> <li><a href="help-center.html#">Subcategory (10)</a></li> <li><a href="help-center.html#">Subcategory (24)</a></li> <li><a href="help-center.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> </div> </div> <div class="col-sm-6"> <h3 class="headline"><span>Most Popular Questions</span></h3> <ol class="help-questions"> <li><a href="help-item.html">Proin pharetra ipsum vel turpis semper dapibus?</a></li> <li><a href="help-item.html">Vivamus sed magna vulputate, vehicula diam nec, tincidunt purus?</a></li> <li><a href="help-item.html">Nullam eu turpis in turpis accumsan interdum sit amet vel tortor?</a></li> <li><a href="help-item.html">Suspendisse posuere dolor in lobortis rhoncus?</a></li> <li><a href="help-item.html">Proin pharetra ipsum vel turpis semper dapibus?</a></li> <li><a href="help-item.html">Vivamus sed magna vulputate, vehicula diam nec, tincidunt purus?</a></li> <li><a href="help-item.html">Nullam eu turpis in turpis accumsan interdum sit amet vel tortor?</a></li> <li><a href="help-item.html">Suspendisse posuere dolor in lobortis rhoncus?</a></li> <li><a href="help-item.html">Proin pharetra ipsum vel turpis semper dapibus?</a></li> <li><a href="help-item.html">Vivamus sed magna vulputate, vehicula diam nec, tincidunt purus?</a></li> <li><a href="help-item.html">Nullam eu turpis in turpis accumsan interdum sit amet vel tortor?</a></li> <li><a href="help-item.html">Suspendisse posuere dolor in lobortis rhoncus?</a></li> <li><a href="help-item.html">Suspendisse posuere dolor in lobortis rhoncus?</a></li> <li><a href="help-item.html">Proin pharetra ipsum vel turpis semper dapibus?</a></li> <li><a href="help-item.html">Vivamus sed magna vulputate, vehicula diam nec, tincidunt purus?</a></li> </ol> <!-- Paggination --> <ul class="pagination pull-left"> <li class="disabled"><a href="help-center.html#">&laquo;</a></li> <li class="active"><a href="help-center.html#">1 <span class="sr-only">(current)</span></a></li> <li><a href="help-center.html#">2</a></li> <li><a href="help-center.html#">3</a></li> <li><a href="help-center.html#">4</a></li> <li><a href="help-center.html#">5</a></li> <li><a href="help-center.html#">&raquo;</a></li> </ul> <div class="clearfix"></div> </div> <div class="col-sm-2"> <h3 class="headline"><span>Resources</span></h3> <ul class="list-style-none resources"> <li><a href="about-us.html">About Us</a></li> <li><a href="blog.html">Our Blog</a></li> <li><a href="contact-us.html">Contact Us</a></li> </ul> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="help-center.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="help-center.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="help-center.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/help-center.html
HTML
gpl3
18,258
/**** Isotope Filtering ****/ .isotope-item { z-index: 2; } .isotope-hidden.isotope-item { pointer-events: none; z-index: 1; } /**** Isotope CSS3 transitions ****/ .isotope, .isotope .isotope-item { -webkit-transition-duration: 0.8s; -moz-transition-duration: 0.8s; -ms-transition-duration: 0.8s; -o-transition-duration: 0.8s; transition-duration: 0.8s; } .isotope { -webkit-transition-property: height, width; -moz-transition-property: height, width; -ms-transition-property: height, width; -o-transition-property: height, width; transition-property: height, width; } .isotope .isotope-item { -webkit-transition-property: -webkit-transform, opacity; -moz-transition-property: -moz-transform, opacity; -ms-transition-property: -ms-transform, opacity; -o-transition-property: -o-transform, opacity; transition-property: transform, opacity; } /**** disabling Isotope CSS3 transitions ****/ .isotope.no-transition, .isotope.no-transition .isotope-item, .isotope .isotope-item.no-transition { -webkit-transition-duration: 0s; -moz-transition-duration: 0s; -ms-transition-duration: 0s; -o-transition-duration: 0s; transition-duration: 0s; }
00-techstorm
trunk/assets/template/isotope/css/style.css
CSS
gpl3
1,288
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Index Fullscreen</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href="css/lightbox.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown active"> <a href="index-full.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown"> <a href="index-full.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="index-full.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="index-full.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="index-full.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="index-full.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Fullscreen Picture --> <div class="fullscreen"> <div class="container"> <div class="row"> <div class="col-sm-8 col-md-6"> <h1 class="animated slideInDown">Powerful Responsive Theme For Business and Personal Projects.</h1> <hr class="animated slideInDown delay-1"> <h3 class="animated slideInLeft delay-2">Beautiful Theme That Works Out Of The Box.</h3> <a href="index-full.html#" class="btn btn-default btn-lg animated fadeInUpBig delay-3">Purchase Now!</a> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .fullscreen --> <!-- Wrapper --> <!-- <div class="wrapper"> wrapper removed due to the fullscreen homepage image --> <!-- Services --> <div class="home-services"> <div class="container"> <div class="row"> <div class="col-sm-12 col-md-7"> <ul> <li> <i class="fa fa-gears"></i> <p><span>Built with </span> Bootstrap 3</p> </li> <li> <i class="fa fa-flag"></i> <p>Font Awesome <span>Icons</span></p> </li> <li> <i class="fa fa-picture-o"></i> <p>Isotope <span>Portfolio</span></p> </li> <li> <i class="fa fa-envelope-o"></i> <p>24/7 Support <span>by e-mail</span></p> </li> </ul> </div> <div class="col-md-5 hidden-sm hidden-xs"> <p class="lead">Ready-to-go Solution Built with Bootstrap 3</p> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .services --> <!-- Browser Showcase --> <div class="container"> <div class="row"> <div class="col-sm-12"> <h2 class="first-child text-center">Paperclip: Multi-purpose Professional Theme</h2> <h4 class="text-blue text-center">Perfect for corporate websites and mobile apps.</h4> <div class="browser-showcase"> <img src="img/browsers.png" class="img-responsive" alt="..."> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Main Services --> <div class="main-services"> <div class="container"> <div class="row"> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-gear"></i> <div class="service-desc"> <h4>Built With Bootstrap 3</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-arrows-alt"></i> <div class="service-desc"> <h4>Responsive Design</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-refresh"></i> <div class="service-desc"> <h4>Easy to Customize</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-plus"></i> <div class="service-desc"> <h4>20+ Templates Included</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-envelope"></i> <div class="service-desc"> <h4>24/7 Support</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-picture-o"></i> <div class="service-desc"> <h4>Isotope Gallery</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .main-features --> <!-- Responsive Showcase --> <div class="responsive-showcase"> <div class="container"> <div class="responsive-design"> <div class="row"> <div class="col-sm-6"> <h2>Fully Responsive Design</h2> <p class="lead text-muted"> Pellentesque magna turpis, porttitor non leo ac, imperdiet sollicitudin neque. Sed id condimentum quam. Ut dui velit, suscipit et libero vulputate, feugiat vestibulum velit. Integer auctor, orci sit amet tincidunt posuere. </p> <ul class="list-inline hidden-xs"> <li><i class="fa fa-mobile text-blue inactive" data-device="#iphone"></i></li> <li><i class="fa fa-tablet text-blue inactive" data-device="#ipad"></i></li> <li><i class="fa fa-laptop text-blue" data-device="#macbook"></i></li> <li><i class="fa fa-desktop text-blue inactive" data-device="#imac"></i></li> </ul> </div> <div class="col-sm-6 hidden-xs"> <img class="img-responsive show" src="img/macbook.png" alt="..." id="macbook"> <img class="img-responsive hidden" src="img/imac.png" alt="..." id="imac"> <img class="img-responsive hidden" src="img/ipad.png" alt="..." id="ipad"> <img class="img-responsive hidden" src="img/iphone.png" alt="..." id="iphone"> </div> </div> <!-- / .row --> </div> <!-- / .template-thumbnails --> </div> <!-- / .container --> </div> <!-- / .template-showcase --> <!-- Feedback --> <div class="feedbacks"> <div class="container"> <div class="row"> <div class="col-sm-12"> <h2 class="text-center">What Clients Say About Us</h2> </div> </div> <!-- / .row --> <div class="row"> <div class="col-sm-6 col-md-4"> <div class="feedback"> <i class="fa fa-user fa-2x"></i> <div> <p> In vitae sodales massa. Proin commodo nibh sed nisi placerat facilisis. Fusce fringilla elit ipsum, vitae viverra ligula hendrerit nec. </p> </div> </div> </div> <div class="col-sm-6 col-md-4"> <div class="feedback"> <i class="fa fa-user fa-2x"></i> <div> <p> In vitae sodales massa. Proin commodo nibh sed nisi placerat facilisis. Fusce fringilla elit ipsum, vitae viverra ligula hendrerit nec. </p> </div> </div> </div> <div class="hidden-sm col-md-4"> <div class="feedback"> <i class="fa fa-user fa-2x"></i> <div> <p> In vitae sodales massa. Proin commodo nibh sed nisi placerat facilisis. Fusce fringilla elit ipsum, vitae viverra ligula hendrerit nec. </p> </div> </div> </div> <div class="col-sm-6 col-md-6"> <div class="feedback"> <i class="fa fa-user fa-2x"></i> <div> <p> Donec dignissim ipsum nec sagittis suscipit. Nullam nibh turpis, faucibus ultrices ullamcorper et, ornare sit amet quam. Etiam adipiscing justo massa, vel elementum felis aliquet quis. Nulla facilisis magna nulla, nec imperdiet felis lacinia et. </p> </div> </div> </div> <div class="col-sm-6 col-md-6"> <div class="feedback"> <i class="fa fa-user fa-2x"></i> <div> <p> Donec dignissim ipsum nec sagittis suscipit. Nullam nibh turpis, faucibus ultrices ullamcorper et, ornare sit amet quam. Etiam adipiscing justo massa, vel elementum felis aliquet quis. Nulla facilisis magna nulla, nec imperdiet felis lacinia et. </p> </div> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .feedback --> <!-- Recent Blog Posts --> <div class="container"> <div class="row"> <div class="col-sm-12"> <h2 class="text-center">Recent Blog Posts</h2> </div> </div> <!-- / .row --> <div class="row"> <div class="col-sm-6"> <div class="blog"> <img src="img/photo-1.jpg" alt="..."> <div class="blog-desc"> <h3> <a href="http://7.pdvop2sz.z8.ru/paperclip/1.0/post.html">Sed lacinia suscipit lacus non sodales. Pellentesque lacinia ornare justo eu tincidunt.</a> </h3> <hr> <p class="text-muted">by John Doe</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nisi lorem, elementum sed feugiat ac, pharetra lacinia mi. Integer iaculis risus sed quam vehicula, sit amet lacinia sem rutrum. Integer ligula orci.</p> <a class="btn btn-lg btn-red" href="blog-post.html">Read More...</a> </div> </div> </div> <div class="col-sm-6"> <div class="blog"> <img src="img/photo-2.jpg" alt="..."> <div class="blog-desc"> <h3> <a href="blog-post.html">Nulla pretium libero interdum, tempus lorem non, rutrum diam. Lorem ipsum dolor sit amet.</a> </h3> <hr> <p class="text-muted">by John Doe</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nisi lorem, elementum sed feugiat ac, pharetra lacinia mi. Integer iaculis risus sed quam vehicula, sit amet lacinia sem rutrum. Integer ligula orci.</p> <a class="btn btn-lg btn-red" href="blog-post.html">Read More...</a> </div> </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- </div> wrapper removed due to the fullscreen homepage image --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="index-full.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="index-full.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="index-full.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/lightbox-2.6.min.js"></script> <script src="js/custom.js"></script> <script src="js/index.js"></script> </body> </html>
00-techstorm
trunk/assets/template/index-full.html
HTML
gpl3
21,142
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Services</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="services.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown active"> <a href="services.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="services.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="services.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="services.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="services.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Services</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">Services</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-7"> <h3 class="headline"><span>Company Introduction</span></h3> <p> Sed at porta tellus. Sed sit amet ipsum non dolor tincidunt vestibulum eget et urna. In et placerat eros. Curabitur tristique lacinia tortor ut ornare. Proin vehicula rhoncus fermentum. Integer scelerisque aliquam turpis. Quisque pellentesque, sem vel molestie posuere, orci sapien interdum mauris, eget condimentum purus arcu ut augue. </p> <div class="info-board info-board-blue"> <h4>Welcome Aboard</h4> <p> Nunc in neque nec arcu vulputate ullamcorper. Ut id orci ac arcu consectetur fringilla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p> </div> </div> <div class="col-sm-5"> <h3 class="headline"><span>Video Guide</span></h3> <div class="video-container"> <iframe src="http://player.vimeo.com/video/67449472?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe> </div> </div> </div> <div class="row"> <div class="col-sm-12"> <h3 class="headline"><span>Main Services Provided By Your Company</span></h3> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent imperdiet pretium elit non lacinia. Integer in consequat metus. Curabitur dapibus velit sed scelerisque fermentum. Proin interdum purus nec pharetra semper. </p> </div> </div> <!-- / .row --> <div class="row"> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-gear"></i> <div class="service-desc"> <h4>Built With Bootstrap 3</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-arrows-alt"></i> <div class="service-desc"> <h4>Responsive Design</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-refresh"></i> <div class="service-desc"> <h4>Easy to Customize</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-plus"></i> <div class="service-desc"> <h4>Works Out Of the Box</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-envelope"></i> <div class="service-desc"> <h4>24/7 Support</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> <div class="col-sm-4"> <div class="services"> <div class="service-item"> <i class="fa fa-picture-o"></i> <div class="service-desc"> <h4>Isotope Gallery</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </div> </div> <!-- / .services --> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="services.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="services.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="services.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/services.html
HTML
gpl3
14,627
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Shopping Cart</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="shopping-cart.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown"> <a href="shopping-cart.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="shopping-cart.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="shopping-cart.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown active"> <a href="shopping-cart.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="shopping-cart.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Shopping Cart</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li><a href="index.html">Shop</a></li> <li class="active">Shopping Cart</li> </ol> </div> </div> </div> </div> <div class="container shopping-cart"> <div class="row"> <div class="col-sm-12"> <table class="table table-bordered"> <thead> <tr> <th>3 items to buy</th> <th>Price</th> <th>Quantity</th> </tr> </thead> <tbody> <tr> <td> <img class="img-responsive" src="img/imac.png" alt="..."> <div class="item"> Product Title #1 <p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </td> <td>$339,00</td> <td><input type="number" name="pcs" value="1" class="form-control"></td> </tr> <tr> <td> <img class="img-responsive" src="img/macbook.png" alt="..."> <div class="item"> Product Title #2 <p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </td> <td>$210,00</td> <td><input type="number" name="pcs" value="1" class="form-control"></td> </tr> <tr> <td> <img class="img-responsive" src="img/ipad.png" alt="..."> <div class="item"> Product Title #3 <p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.</p> </div> </td> <td>$50,00</td> <td><input type="number" name="pcs" value="1" class="form-control"></td> </tr> </tbody> </table> <ul class="text-right checkout"> <li><strong>Total Price</strong>: $599</li> <li><strong>Shipping</strong>: Free</li> <li><a href="shopping-cart.html#" class="btn btn-blue">Proceed to checkout</a></li> </ul> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="shopping-cart.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="shopping-cart.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="shopping-cart.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/shopping-cart.html
HTML
gpl3
12,344
/*------------------------------------------------------------------ Project: Paperclip Author: Yevgeny S. URL: https://twitter.com/YevSim Version: 1.0 Created: 11/03/2014 Last change: 01/04/2014 -------------------------------------------------------------------*/ /*! normalize.css v3.0.0 | MIT License | git.io/normalize */ html { font-family: sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; } body { margin: 0; } article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; } audio, canvas, progress, video { display: inline-block; vertical-align: baseline; } audio:not([controls]) { display: none; height: 0; } [hidden], template { display: none; } a { background: transparent; } a:active, a:hover { outline: 0; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } h1 { font-size: 2em; margin: 0.67em 0; } mark { background: #ff0; color: #000; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 1em 40px; } hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } pre { overflow: auto; } code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; } button { overflow: visible; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } button[disabled], html input[disabled] { cursor: default; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } input { line-height: normal; } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; } input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } legend { border: 0; padding: 0; } textarea { overflow: auto; } optgroup { font-weight: bold; } table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; } @media print { * { text-shadow: none !important; color: #000 !important; background: transparent !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } select { background: #fff !important; } .navbar { display: none; } .table td, .table th { background-color: #fff !important; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 62.5%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { font-family: 'Source Sans Pro', sans-serif; font-size: 14px; line-height: 1.42857143; color: #333333; background-color: #ffffff; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #2babcf; text-decoration: none; } a:hover, a:focus { color: #2babcf; text-decoration: underline; } a:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } figure { margin: 0; } img { vertical-align: middle; } .img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; max-width: 100%; height: auto; } .img-rounded { border-radius: 6px; } .img-thumbnail { padding: 4px; line-height: 1.42857143; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; display: inline-block; max-width: 100%; height: auto; } .img-circle { border-radius: 50%; } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eeeeee; } .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: 'Ubuntu', sans-serif; font-weight: 300; line-height: 1.1; color: inherit; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { font-weight: normal; line-height: 1; color: #999999; } h1, .h1, h2, .h2, h3, .h3 { margin-top: 20px; margin-bottom: 10px; } h1 small, .h1 small, h2 small, .h2 small, h3 small, .h3 small, h1 .small, .h1 .small, h2 .small, .h2 .small, h3 .small, .h3 .small { font-size: 65%; } h4, .h4, h5, .h5, h6, .h6 { margin-top: 10px; margin-bottom: 10px; } h4 small, .h4 small, h5 small, .h5 small, h6 small, .h6 small, h4 .small, .h4 .small, h5 .small, .h5 .small, h6 .small, .h6 .small { font-size: 75%; } h1, .h1 { font-size: 36px; } h2, .h2 { font-size: 30px; } h3, .h3 { font-size: 24px; } h4, .h4 { font-size: 18px; } h5, .h5 { font-size: 14px; } h6, .h6 { font-size: 12px; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 16px; font-weight: 200; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 21px; } } small, .small { font-size: 85%; } cite { font-style: normal; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } .text-justify { text-align: justify; } .text-muted { color: #999999; } .text-primary { color: #428bca; } a.text-primary:hover { color: #3071a9; } .text-success { color: #3c763d; } a.text-success:hover { color: #2b542c; } .text-info { color: #31708f; } a.text-info:hover { color: #245269; } .text-warning { color: #8a6d3b; } a.text-warning:hover { color: #66512c; } .text-danger { color: #a94442; } a.text-danger:hover { color: #843534; } .bg-primary { color: #fff; background-color: #428bca; } a.bg-primary:hover { background-color: #3071a9; } .bg-success { background-color: #dff0d8; } a.bg-success:hover { background-color: #c1e2b3; } .bg-info { background-color: #d9edf7; } a.bg-info:hover { background-color: #afd9ee; } .bg-warning { background-color: #fcf8e3; } a.bg-warning:hover { background-color: #f7ecb5; } .bg-danger { background-color: #f2dede; } a.bg-danger:hover { background-color: #e4b9b9; } .page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eeeeee; } ul, ol { margin-top: 0; margin-bottom: 10px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; margin-left: -5px; } .list-inline > li { display: inline-block; padding-left: 5px; padding-right: 5px; } dl { margin-top: 0; margin-bottom: 20px; } dt, dd { line-height: 1.42857143; } dt { font-weight: bold; } dd { margin-left: 0; } @media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; clear: left; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #999999; } .initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid #eeeeee; } blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child { margin-bottom: 0; } blockquote footer, blockquote small, blockquote .small { display: block; font-size: 80%; line-height: 1.42857143; color: #999999; } blockquote footer:before, blockquote small:before, blockquote .small:before { content: '\2014 \00A0'; } .blockquote-reverse, blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; text-align: right; } .blockquote-reverse footer:before, blockquote.pull-right footer:before, .blockquote-reverse small:before, blockquote.pull-right small:before, .blockquote-reverse .small:before, blockquote.pull-right .small:before { content: ''; } .blockquote-reverse footer:after, blockquote.pull-right footer:after, .blockquote-reverse small:after, blockquote.pull-right small:after, .blockquote-reverse .small:after, blockquote.pull-right .small:after { content: '\00A0 \2014'; } blockquote:before, blockquote:after { content: ""; } address { margin-bottom: 20px; font-style: normal; line-height: 1.42857143; } code, kbd, pre, samp { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; } code { padding: 2px 4px; font-size: 90%; color: #c7254e; background-color: #f9f2f4; white-space: nowrap; border-radius: 4px; } kbd { padding: 2px 4px; font-size: 90%; color: #ffffff; background-color: #333333; border-radius: 3px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143; word-break: break-all; word-wrap: break-word; color: #333333; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; } pre code { padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; background-color: transparent; border-radius: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } @media (min-width: 768px) { .container { width: 750px; } } @media (min-width: 992px) { .container { width: 970px; } } @media (min-width: 1200px) { .container { width: 1030px; } } .container-fluid { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } .row { margin-left: -15px; margin-right: -15px; } .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { float: left; } .col-xs-12 { width: 100%; } .col-xs-11 { width: 91.66666667%; } .col-xs-10 { width: 83.33333333%; } .col-xs-9 { width: 75%; } .col-xs-8 { width: 66.66666667%; } .col-xs-7 { width: 58.33333333%; } .col-xs-6 { width: 50%; } .col-xs-5 { width: 41.66666667%; } .col-xs-4 { width: 33.33333333%; } .col-xs-3 { width: 25%; } .col-xs-2 { width: 16.66666667%; } .col-xs-1 { width: 8.33333333%; } .col-xs-pull-12 { right: 100%; } .col-xs-pull-11 { right: 91.66666667%; } .col-xs-pull-10 { right: 83.33333333%; } .col-xs-pull-9 { right: 75%; } .col-xs-pull-8 { right: 66.66666667%; } .col-xs-pull-7 { right: 58.33333333%; } .col-xs-pull-6 { right: 50%; } .col-xs-pull-5 { right: 41.66666667%; } .col-xs-pull-4 { right: 33.33333333%; } .col-xs-pull-3 { right: 25%; } .col-xs-pull-2 { right: 16.66666667%; } .col-xs-pull-1 { right: 8.33333333%; } .col-xs-pull-0 { right: 0%; } .col-xs-push-12 { left: 100%; } .col-xs-push-11 { left: 91.66666667%; } .col-xs-push-10 { left: 83.33333333%; } .col-xs-push-9 { left: 75%; } .col-xs-push-8 { left: 66.66666667%; } .col-xs-push-7 { left: 58.33333333%; } .col-xs-push-6 { left: 50%; } .col-xs-push-5 { left: 41.66666667%; } .col-xs-push-4 { left: 33.33333333%; } .col-xs-push-3 { left: 25%; } .col-xs-push-2 { left: 16.66666667%; } .col-xs-push-1 { left: 8.33333333%; } .col-xs-push-0 { left: 0%; } .col-xs-offset-12 { margin-left: 100%; } .col-xs-offset-11 { margin-left: 91.66666667%; } .col-xs-offset-10 { margin-left: 83.33333333%; } .col-xs-offset-9 { margin-left: 75%; } .col-xs-offset-8 { margin-left: 66.66666667%; } .col-xs-offset-7 { margin-left: 58.33333333%; } .col-xs-offset-6 { margin-left: 50%; } .col-xs-offset-5 { margin-left: 41.66666667%; } .col-xs-offset-4 { margin-left: 33.33333333%; } .col-xs-offset-3 { margin-left: 25%; } .col-xs-offset-2 { margin-left: 16.66666667%; } .col-xs-offset-1 { margin-left: 8.33333333%; } .col-xs-offset-0 { margin-left: 0%; } @media (min-width: 768px) { .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; } .col-sm-12 { width: 100%; } .col-sm-11 { width: 91.66666667%; } .col-sm-10 { width: 83.33333333%; } .col-sm-9 { width: 75%; } .col-sm-8 { width: 66.66666667%; } .col-sm-7 { width: 58.33333333%; } .col-sm-6 { width: 50%; } .col-sm-5 { width: 41.66666667%; } .col-sm-4 { width: 33.33333333%; } .col-sm-3 { width: 25%; } .col-sm-2 { width: 16.66666667%; } .col-sm-1 { width: 8.33333333%; } .col-sm-pull-12 { right: 100%; } .col-sm-pull-11 { right: 91.66666667%; } .col-sm-pull-10 { right: 83.33333333%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-8 { right: 66.66666667%; } .col-sm-pull-7 { right: 58.33333333%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-5 { right: 41.66666667%; } .col-sm-pull-4 { right: 33.33333333%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-2 { right: 16.66666667%; } .col-sm-pull-1 { right: 8.33333333%; } .col-sm-pull-0 { right: 0%; } .col-sm-push-12 { left: 100%; } .col-sm-push-11 { left: 91.66666667%; } .col-sm-push-10 { left: 83.33333333%; } .col-sm-push-9 { left: 75%; } .col-sm-push-8 { left: 66.66666667%; } .col-sm-push-7 { left: 58.33333333%; } .col-sm-push-6 { left: 50%; } .col-sm-push-5 { left: 41.66666667%; } .col-sm-push-4 { left: 33.33333333%; } .col-sm-push-3 { left: 25%; } .col-sm-push-2 { left: 16.66666667%; } .col-sm-push-1 { left: 8.33333333%; } .col-sm-push-0 { left: 0%; } .col-sm-offset-12 { margin-left: 100%; } .col-sm-offset-11 { margin-left: 91.66666667%; } .col-sm-offset-10 { margin-left: 83.33333333%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-8 { margin-left: 66.66666667%; } .col-sm-offset-7 { margin-left: 58.33333333%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-5 { margin-left: 41.66666667%; } .col-sm-offset-4 { margin-left: 33.33333333%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-2 { margin-left: 16.66666667%; } .col-sm-offset-1 { margin-left: 8.33333333%; } .col-sm-offset-0 { margin-left: 0%; } } @media (min-width: 992px) { .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { float: left; } .col-md-12 { width: 100%; } .col-md-11 { width: 91.66666667%; } .col-md-10 { width: 83.33333333%; } .col-md-9 { width: 75%; } .col-md-8 { width: 66.66666667%; } .col-md-7 { width: 58.33333333%; } .col-md-6 { width: 50%; } .col-md-5 { width: 41.66666667%; } .col-md-4 { width: 33.33333333%; } .col-md-3 { width: 25%; } .col-md-2 { width: 16.66666667%; } .col-md-1 { width: 8.33333333%; } .col-md-pull-12 { right: 100%; } .col-md-pull-11 { right: 91.66666667%; } .col-md-pull-10 { right: 83.33333333%; } .col-md-pull-9 { right: 75%; } .col-md-pull-8 { right: 66.66666667%; } .col-md-pull-7 { right: 58.33333333%; } .col-md-pull-6 { right: 50%; } .col-md-pull-5 { right: 41.66666667%; } .col-md-pull-4 { right: 33.33333333%; } .col-md-pull-3 { right: 25%; } .col-md-pull-2 { right: 16.66666667%; } .col-md-pull-1 { right: 8.33333333%; } .col-md-pull-0 { right: 0%; } .col-md-push-12 { left: 100%; } .col-md-push-11 { left: 91.66666667%; } .col-md-push-10 { left: 83.33333333%; } .col-md-push-9 { left: 75%; } .col-md-push-8 { left: 66.66666667%; } .col-md-push-7 { left: 58.33333333%; } .col-md-push-6 { left: 50%; } .col-md-push-5 { left: 41.66666667%; } .col-md-push-4 { left: 33.33333333%; } .col-md-push-3 { left: 25%; } .col-md-push-2 { left: 16.66666667%; } .col-md-push-1 { left: 8.33333333%; } .col-md-push-0 { left: 0%; } .col-md-offset-12 { margin-left: 100%; } .col-md-offset-11 { margin-left: 91.66666667%; } .col-md-offset-10 { margin-left: 83.33333333%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-8 { margin-left: 66.66666667%; } .col-md-offset-7 { margin-left: 58.33333333%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-5 { margin-left: 41.66666667%; } .col-md-offset-4 { margin-left: 33.33333333%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-2 { margin-left: 16.66666667%; } .col-md-offset-1 { margin-left: 8.33333333%; } .col-md-offset-0 { margin-left: 0%; } } @media (min-width: 1200px) { .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } .col-lg-12 { width: 100%; } .col-lg-11 { width: 91.66666667%; } .col-lg-10 { width: 83.33333333%; } .col-lg-9 { width: 75%; } .col-lg-8 { width: 66.66666667%; } .col-lg-7 { width: 58.33333333%; } .col-lg-6 { width: 50%; } .col-lg-5 { width: 41.66666667%; } .col-lg-4 { width: 33.33333333%; } .col-lg-3 { width: 25%; } .col-lg-2 { width: 16.66666667%; } .col-lg-1 { width: 8.33333333%; } .col-lg-pull-12 { right: 100%; } .col-lg-pull-11 { right: 91.66666667%; } .col-lg-pull-10 { right: 83.33333333%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-8 { right: 66.66666667%; } .col-lg-pull-7 { right: 58.33333333%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-5 { right: 41.66666667%; } .col-lg-pull-4 { right: 33.33333333%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-2 { right: 16.66666667%; } .col-lg-pull-1 { right: 8.33333333%; } .col-lg-pull-0 { right: 0%; } .col-lg-push-12 { left: 100%; } .col-lg-push-11 { left: 91.66666667%; } .col-lg-push-10 { left: 83.33333333%; } .col-lg-push-9 { left: 75%; } .col-lg-push-8 { left: 66.66666667%; } .col-lg-push-7 { left: 58.33333333%; } .col-lg-push-6 { left: 50%; } .col-lg-push-5 { left: 41.66666667%; } .col-lg-push-4 { left: 33.33333333%; } .col-lg-push-3 { left: 25%; } .col-lg-push-2 { left: 16.66666667%; } .col-lg-push-1 { left: 8.33333333%; } .col-lg-push-0 { left: 0%; } .col-lg-offset-12 { margin-left: 100%; } .col-lg-offset-11 { margin-left: 91.66666667%; } .col-lg-offset-10 { margin-left: 83.33333333%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-8 { margin-left: 66.66666667%; } .col-lg-offset-7 { margin-left: 58.33333333%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-5 { margin-left: 41.66666667%; } .col-lg-offset-4 { margin-left: 33.33333333%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-2 { margin-left: 16.66666667%; } .col-lg-offset-1 { margin-left: 8.33333333%; } .col-lg-offset-0 { margin-left: 0%; } } table { max-width: 100%; background-color: transparent; } th { text-align: left; } .table { width: 100%; margin-bottom: 20px; } .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { padding: 8px; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #dddddd; } .table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #dddddd; } .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { border-top: 0; } .table > tbody + tbody { border-top: 2px solid #dddddd; } .table .table { background-color: #ffffff; } .table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td { padding: 5px; } .table-bordered { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; } .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th { background-color: #f9f9f9; } .table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { background-color: #f5f5f5; } table col[class*="col-"] { position: static; float: none; display: table-column; } table td[class*="col-"], table th[class*="col-"] { position: static; float: none; display: table-cell; } .table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { background-color: #f5f5f5; } .table-hover > tbody > tr > td.active:hover, .table-hover > tbody > tr > th.active:hover, .table-hover > tbody > tr.active:hover > td, .table-hover > tbody > tr.active:hover > th { background-color: #e8e8e8; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background-color: #dff0d8; } .table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr.success:hover > th { background-color: #d0e9c6; } .table > thead > tr > td.info, .table > tbody > tr > td.info, .table > tfoot > tr > td.info, .table > thead > tr > th.info, .table > tbody > tr > th.info, .table > tfoot > tr > th.info, .table > thead > tr.info > td, .table > tbody > tr.info > td, .table > tfoot > tr.info > td, .table > thead > tr.info > th, .table > tbody > tr.info > th, .table > tfoot > tr.info > th { background-color: #d9edf7; } .table-hover > tbody > tr > td.info:hover, .table-hover > tbody > tr > th.info:hover, .table-hover > tbody > tr.info:hover > td, .table-hover > tbody > tr.info:hover > th { background-color: #c4e3f3; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background-color: #fcf8e3; } .table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr.warning:hover > th { background-color: #faf2cc; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background-color: #f2dede; } .table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr.danger:hover > th { background-color: #ebcccc; } @media (max-width: 767px) { .table-responsive { width: 100%; margin-bottom: 15px; overflow-y: hidden; overflow-x: scroll; -ms-overflow-style: -ms-autohiding-scrollbar; border: 1px solid #dddddd; -webkit-overflow-scrolling: touch; } .table-responsive > .table { margin-bottom: 0; } .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td { white-space: nowrap; } .table-responsive > .table-bordered { border: 0; } .table-responsive > .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .table-responsive > .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tfoot > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; } } fieldset { padding: 0; margin: 0; border: 0; min-width: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } label { display: inline-block; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; /* IE8-9 */ line-height: normal; } input[type="file"] { display: block; } input[type="range"] { display: block; width: 100%; } select[multiple], select[size] { height: auto; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } output { display: block; padding-top: 7px; font-size: 14px; line-height: 1.42857143; color: #555555; } .form-control { display: block; width: 100%; height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; color: #555555; background-color: #ffffff; background-image: none; border: 1px solid #e4e4e4; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; } .form-control:focus { border-color: #d0d0d0; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(208, 208, 208, 0.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(208, 208, 208, 0.6); -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(208, 208, 208, 0.6) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(208, 208, 208, 0.6) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(208, 208, 208, 0.6) 0 10px rgba(0, 0, 0, 0.175); } .form-control::-moz-placeholder { color: #999999; opacity: 1; } .form-control:-ms-input-placeholder { color: #999999; } .form-control::-webkit-input-placeholder { color: #999999; } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { cursor: not-allowed; background-color: #eeeeee; opacity: 1; } textarea.form-control { height: auto; } input[type="search"] { -webkit-appearance: none; } input[type="date"] { line-height: 34px; } .form-group { margin-bottom: 15px; } .radio, .checkbox { display: block; min-height: 20px; margin-top: 10px; margin-bottom: 10px; padding-left: 20px; } .radio label, .checkbox label { display: inline; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { float: left; margin-left: -20px; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { display: inline-block; padding-left: 20px; margin-bottom: 0; vertical-align: middle; font-weight: normal; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } input[type="radio"][disabled], input[type="checkbox"][disabled], .radio[disabled], .radio-inline[disabled], .checkbox[disabled], .checkbox-inline[disabled], fieldset[disabled] input[type="radio"], fieldset[disabled] input[type="checkbox"], fieldset[disabled] .radio, fieldset[disabled] .radio-inline, fieldset[disabled] .checkbox, fieldset[disabled] .checkbox-inline { cursor: not-allowed; } .input-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-sm { height: 30px; line-height: 30px; } textarea.input-sm, select[multiple].input-sm { height: auto; } .input-lg { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } select.input-lg { height: 46px; line-height: 46px; } textarea.input-lg, select[multiple].input-lg { height: auto; } .has-feedback { position: relative; } .has-feedback .form-control { padding-right: 42.5px; } .has-feedback .form-control-feedback { position: absolute; top: 25px; right: 0; display: block; width: 34px; height: 34px; line-height: 34px; text-align: center; } .has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline { color: #3c763d; } .has-success .form-control { border-color: #3c763d; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); } .has-success .form-control:focus { border-color: #2b542c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168 0 10px rgba(0, 0, 0, 0.175); } .has-success .input-group-addon { color: #3c763d; border-color: #3c763d; background-color: #dff0d8; } .has-success .form-control-feedback { color: #3c763d; } .has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline { color: #8a6d3b; } .has-warning .form-control { border-color: #8a6d3b; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); } .has-warning .form-control:focus { border-color: #66512c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b 0 10px rgba(0, 0, 0, 0.175); } .has-warning .input-group-addon { color: #8a6d3b; border-color: #8a6d3b; background-color: #fcf8e3; } .has-warning .form-control-feedback { color: #8a6d3b; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline { color: #a94442; } .has-error .form-control { border-color: #a94442; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); } .has-error .form-control:focus { border-color: #843534; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483 0 10px rgba(0, 0, 0, 0.175); } .has-error .input-group-addon { color: #a94442; border-color: #a94442; background-color: #f2dede; } .has-error .form-control-feedback { color: #a94442; } .form-control-static { margin-bottom: 0; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; } @media (min-width: 768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; } .form-inline .input-group > .form-control { width: 100%; } .form-inline .control-label { margin-bottom: 0; vertical-align: middle; } .form-inline .radio, .form-inline .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; padding-left: 0; vertical-align: middle; } .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { float: none; margin-left: 0; } .form-inline .has-feedback .form-control-feedback { top: 0; } } .form-horizontal .control-label, .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { margin-top: 0; margin-bottom: 0; padding-top: 7px; } .form-horizontal .radio, .form-horizontal .checkbox { min-height: 27px; } .form-horizontal .form-group { margin-left: -15px; margin-right: -15px; } .form-horizontal .form-control-static { padding-top: 7px; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; } } .form-horizontal .has-feedback .form-control-feedback { top: 0; right: 15px; } .btn { display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; border-radius: 4px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .btn:focus, .btn:active:focus, .btn.active:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn:hover, .btn:focus { color: #333333; text-decoration: none; } .btn:active, .btn.active { outline: 0; background-image: none; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) 0 10px rgba(0, 0, 0, 0.175); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; pointer-events: none; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; -webkit-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); box-shadow: none 0 10px rgba(0, 0, 0, 0.175); } .btn-default { color: #333333; background-color: #ffffff; border-color: #cccccc; } .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { color: #333333; background-color: #ebebeb; border-color: #adadad; } .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { background-image: none; } .btn-default.disabled, .btn-default[disabled], fieldset[disabled] .btn-default, .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled:active, .btn-default[disabled]:active, fieldset[disabled] .btn-default:active, .btn-default.disabled.active, .btn-default[disabled].active, fieldset[disabled] .btn-default.active { background-color: #ffffff; border-color: #cccccc; } .btn-default .badge { color: #ffffff; background-color: #333333; } .btn-primary { color: #ffffff; background-color: #428bca; border-color: #357ebd; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { color: #ffffff; background-color: #3276b1; border-color: #285e8e; } .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background-image: none; } .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { background-color: #428bca; border-color: #357ebd; } .btn-primary .badge { color: #428bca; background-color: #ffffff; } .btn-success { color: #ffffff; background-color: #5cb85c; border-color: #4cae4c; } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { color: #ffffff; background-color: #47a447; border-color: #398439; } .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { background-image: none; } .btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success[disabled].active, fieldset[disabled] .btn-success.active { background-color: #5cb85c; border-color: #4cae4c; } .btn-success .badge { color: #5cb85c; background-color: #ffffff; } .btn-info { color: #ffffff; background-color: #5bc0de; border-color: #46b8da; } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { color: #ffffff; background-color: #39b3d7; border-color: #269abc; } .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { background-image: none; } .btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info[disabled].active, fieldset[disabled] .btn-info.active { background-color: #5bc0de; border-color: #46b8da; } .btn-info .badge { color: #5bc0de; background-color: #ffffff; } .btn-warning { color: #ffffff; background-color: #f0ad4e; border-color: #eea236; } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { color: #ffffff; background-color: #ed9c28; border-color: #d58512; } .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { background-image: none; } .btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning.active { background-color: #f0ad4e; border-color: #eea236; } .btn-warning .badge { color: #f0ad4e; background-color: #ffffff; } .btn-danger { color: #ffffff; background-color: #d9534f; border-color: #d43f3a; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { color: #ffffff; background-color: #d2322d; border-color: #ac2925; } .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { background-image: none; } .btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active { background-color: #d9534f; border-color: #d43f3a; } .btn-danger .badge { color: #d9534f; background-color: #ffffff; } .btn-link { color: #2babcf; font-weight: normal; cursor: pointer; border-radius: 0; } .btn-link, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; -webkit-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); box-shadow: none 0 10px rgba(0, 0, 0, 0.175); } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #2babcf; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #999999; text-decoration: none; } .btn-lg, .btn-group-lg > .btn { padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } .btn-sm, .btn-group-sm > .btn { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-xs, .btn-group-xs > .btn { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-block { display: block; width: 100%; padding-left: 0; padding-right: 0; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { display: none; } .collapse.in { display: block; } .collapsing { position: relative; height: 0; overflow: hidden; -webkit-transition: height 0.35s ease; transition: height 0.35s ease; } @font-face { font-family: 'Glyphicons Halflings'; src: url('../fonts/glyphicons-halflings-regular.eot'); src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .glyphicon-asterisk:before { content: "\2a"; } .glyphicon-plus:before { content: "\2b"; } .glyphicon-euro:before { content: "\20ac"; } .glyphicon-minus:before { content: "\2212"; } .glyphicon-cloud:before { content: "\2601"; } .glyphicon-envelope:before { content: "\2709"; } .glyphicon-pencil:before { content: "\270f"; } .glyphicon-glass:before { content: "\e001"; } .glyphicon-music:before { content: "\e002"; } .glyphicon-search:before { content: "\e003"; } .glyphicon-heart:before { content: "\e005"; } .glyphicon-star:before { content: "\e006"; } .glyphicon-star-empty:before { content: "\e007"; } .glyphicon-user:before { content: "\e008"; } .glyphicon-film:before { content: "\e009"; } .glyphicon-th-large:before { content: "\e010"; } .glyphicon-th:before { content: "\e011"; } .glyphicon-th-list:before { content: "\e012"; } .glyphicon-ok:before { content: "\e013"; } .glyphicon-remove:before { content: "\e014"; } .glyphicon-zoom-in:before { content: "\e015"; } .glyphicon-zoom-out:before { content: "\e016"; } .glyphicon-off:before { content: "\e017"; } .glyphicon-signal:before { content: "\e018"; } .glyphicon-cog:before { content: "\e019"; } .glyphicon-trash:before { content: "\e020"; } .glyphicon-home:before { content: "\e021"; } .glyphicon-file:before { content: "\e022"; } .glyphicon-time:before { content: "\e023"; } .glyphicon-road:before { content: "\e024"; } .glyphicon-download-alt:before { content: "\e025"; } .glyphicon-download:before { content: "\e026"; } .glyphicon-upload:before { content: "\e027"; } .glyphicon-inbox:before { content: "\e028"; } .glyphicon-play-circle:before { content: "\e029"; } .glyphicon-repeat:before { content: "\e030"; } .glyphicon-refresh:before { content: "\e031"; } .glyphicon-list-alt:before { content: "\e032"; } .glyphicon-lock:before { content: "\e033"; } .glyphicon-flag:before { content: "\e034"; } .glyphicon-headphones:before { content: "\e035"; } .glyphicon-volume-off:before { content: "\e036"; } .glyphicon-volume-down:before { content: "\e037"; } .glyphicon-volume-up:before { content: "\e038"; } .glyphicon-qrcode:before { content: "\e039"; } .glyphicon-barcode:before { content: "\e040"; } .glyphicon-tag:before { content: "\e041"; } .glyphicon-tags:before { content: "\e042"; } .glyphicon-book:before { content: "\e043"; } .glyphicon-bookmark:before { content: "\e044"; } .glyphicon-print:before { content: "\e045"; } .glyphicon-camera:before { content: "\e046"; } .glyphicon-font:before { content: "\e047"; } .glyphicon-bold:before { content: "\e048"; } .glyphicon-italic:before { content: "\e049"; } .glyphicon-text-height:before { content: "\e050"; } .glyphicon-text-width:before { content: "\e051"; } .glyphicon-align-left:before { content: "\e052"; } .glyphicon-align-center:before { content: "\e053"; } .glyphicon-align-right:before { content: "\e054"; } .glyphicon-align-justify:before { content: "\e055"; } .glyphicon-list:before { content: "\e056"; } .glyphicon-indent-left:before { content: "\e057"; } .glyphicon-indent-right:before { content: "\e058"; } .glyphicon-facetime-video:before { content: "\e059"; } .glyphicon-picture:before { content: "\e060"; } .glyphicon-map-marker:before { content: "\e062"; } .glyphicon-adjust:before { content: "\e063"; } .glyphicon-tint:before { content: "\e064"; } .glyphicon-edit:before { content: "\e065"; } .glyphicon-share:before { content: "\e066"; } .glyphicon-check:before { content: "\e067"; } .glyphicon-move:before { content: "\e068"; } .glyphicon-step-backward:before { content: "\e069"; } .glyphicon-fast-backward:before { content: "\e070"; } .glyphicon-backward:before { content: "\e071"; } .glyphicon-play:before { content: "\e072"; } .glyphicon-pause:before { content: "\e073"; } .glyphicon-stop:before { content: "\e074"; } .glyphicon-forward:before { content: "\e075"; } .glyphicon-fast-forward:before { content: "\e076"; } .glyphicon-step-forward:before { content: "\e077"; } .glyphicon-eject:before { content: "\e078"; } .glyphicon-chevron-left:before { content: "\e079"; } .glyphicon-chevron-right:before { content: "\e080"; } .glyphicon-plus-sign:before { content: "\e081"; } .glyphicon-minus-sign:before { content: "\e082"; } .glyphicon-remove-sign:before { content: "\e083"; } .glyphicon-ok-sign:before { content: "\e084"; } .glyphicon-question-sign:before { content: "\e085"; } .glyphicon-info-sign:before { content: "\e086"; } .glyphicon-screenshot:before { content: "\e087"; } .glyphicon-remove-circle:before { content: "\e088"; } .glyphicon-ok-circle:before { content: "\e089"; } .glyphicon-ban-circle:before { content: "\e090"; } .glyphicon-arrow-left:before { content: "\e091"; } .glyphicon-arrow-right:before { content: "\e092"; } .glyphicon-arrow-up:before { content: "\e093"; } .glyphicon-arrow-down:before { content: "\e094"; } .glyphicon-share-alt:before { content: "\e095"; } .glyphicon-resize-full:before { content: "\e096"; } .glyphicon-resize-small:before { content: "\e097"; } .glyphicon-exclamation-sign:before { content: "\e101"; } .glyphicon-gift:before { content: "\e102"; } .glyphicon-leaf:before { content: "\e103"; } .glyphicon-fire:before { content: "\e104"; } .glyphicon-eye-open:before { content: "\e105"; } .glyphicon-eye-close:before { content: "\e106"; } .glyphicon-warning-sign:before { content: "\e107"; } .glyphicon-plane:before { content: "\e108"; } .glyphicon-calendar:before { content: "\e109"; } .glyphicon-random:before { content: "\e110"; } .glyphicon-comment:before { content: "\e111"; } .glyphicon-magnet:before { content: "\e112"; } .glyphicon-chevron-up:before { content: "\e113"; } .glyphicon-chevron-down:before { content: "\e114"; } .glyphicon-retweet:before { content: "\e115"; } .glyphicon-shopping-cart:before { content: "\e116"; } .glyphicon-folder-close:before { content: "\e117"; } .glyphicon-folder-open:before { content: "\e118"; } .glyphicon-resize-vertical:before { content: "\e119"; } .glyphicon-resize-horizontal:before { content: "\e120"; } .glyphicon-hdd:before { content: "\e121"; } .glyphicon-bullhorn:before { content: "\e122"; } .glyphicon-bell:before { content: "\e123"; } .glyphicon-certificate:before { content: "\e124"; } .glyphicon-thumbs-up:before { content: "\e125"; } .glyphicon-thumbs-down:before { content: "\e126"; } .glyphicon-hand-right:before { content: "\e127"; } .glyphicon-hand-left:before { content: "\e128"; } .glyphicon-hand-up:before { content: "\e129"; } .glyphicon-hand-down:before { content: "\e130"; } .glyphicon-circle-arrow-right:before { content: "\e131"; } .glyphicon-circle-arrow-left:before { content: "\e132"; } .glyphicon-circle-arrow-up:before { content: "\e133"; } .glyphicon-circle-arrow-down:before { content: "\e134"; } .glyphicon-globe:before { content: "\e135"; } .glyphicon-wrench:before { content: "\e136"; } .glyphicon-tasks:before { content: "\e137"; } .glyphicon-filter:before { content: "\e138"; } .glyphicon-briefcase:before { content: "\e139"; } .glyphicon-fullscreen:before { content: "\e140"; } .glyphicon-dashboard:before { content: "\e141"; } .glyphicon-paperclip:before { content: "\e142"; } .glyphicon-heart-empty:before { content: "\e143"; } .glyphicon-link:before { content: "\e144"; } .glyphicon-phone:before { content: "\e145"; } .glyphicon-pushpin:before { content: "\e146"; } .glyphicon-usd:before { content: "\e148"; } .glyphicon-gbp:before { content: "\e149"; } .glyphicon-sort:before { content: "\e150"; } .glyphicon-sort-by-alphabet:before { content: "\e151"; } .glyphicon-sort-by-alphabet-alt:before { content: "\e152"; } .glyphicon-sort-by-order:before { content: "\e153"; } .glyphicon-sort-by-order-alt:before { content: "\e154"; } .glyphicon-sort-by-attributes:before { content: "\e155"; } .glyphicon-sort-by-attributes-alt:before { content: "\e156"; } .glyphicon-unchecked:before { content: "\e157"; } .glyphicon-expand:before { content: "\e158"; } .glyphicon-collapse-down:before { content: "\e159"; } .glyphicon-collapse-up:before { content: "\e160"; } .glyphicon-log-in:before { content: "\e161"; } .glyphicon-flash:before { content: "\e162"; } .glyphicon-log-out:before { content: "\e163"; } .glyphicon-new-window:before { content: "\e164"; } .glyphicon-record:before { content: "\e165"; } .glyphicon-save:before { content: "\e166"; } .glyphicon-open:before { content: "\e167"; } .glyphicon-saved:before { content: "\e168"; } .glyphicon-import:before { content: "\e169"; } .glyphicon-export:before { content: "\e170"; } .glyphicon-send:before { content: "\e171"; } .glyphicon-floppy-disk:before { content: "\e172"; } .glyphicon-floppy-saved:before { content: "\e173"; } .glyphicon-floppy-remove:before { content: "\e174"; } .glyphicon-floppy-save:before { content: "\e175"; } .glyphicon-floppy-open:before { content: "\e176"; } .glyphicon-credit-card:before { content: "\e177"; } .glyphicon-transfer:before { content: "\e178"; } .glyphicon-cutlery:before { content: "\e179"; } .glyphicon-header:before { content: "\e180"; } .glyphicon-compressed:before { content: "\e181"; } .glyphicon-earphone:before { content: "\e182"; } .glyphicon-phone-alt:before { content: "\e183"; } .glyphicon-tower:before { content: "\e184"; } .glyphicon-stats:before { content: "\e185"; } .glyphicon-sd-video:before { content: "\e186"; } .glyphicon-hd-video:before { content: "\e187"; } .glyphicon-subtitles:before { content: "\e188"; } .glyphicon-sound-stereo:before { content: "\e189"; } .glyphicon-sound-dolby:before { content: "\e190"; } .glyphicon-sound-5-1:before { content: "\e191"; } .glyphicon-sound-6-1:before { content: "\e192"; } .glyphicon-sound-7-1:before { content: "\e193"; } .glyphicon-copyright-mark:before { content: "\e194"; } .glyphicon-registration-mark:before { content: "\e195"; } .glyphicon-cloud-download:before { content: "\e197"; } .glyphicon-cloud-upload:before { content: "\e198"; } .glyphicon-tree-conifer:before { content: "\e199"; } .glyphicon-tree-deciduous:before { content: "\e200"; } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid; border-right: 4px solid transparent; border-left: 4px solid transparent; } .dropdown { position: relative; } .dropdown-toggle:focus { outline: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; font-size: 14px; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) 0 10px rgba(0, 0, 0, 0.175); background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.42857143; color: #333333; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { text-decoration: none; color: #333333; background-color: #f6f6f6; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #333333; text-decoration: none; outline: 0; background-color: #ffffff; } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #999999; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); cursor: not-allowed; } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-menu-right { left: auto; right: 0; } .dropdown-menu-left { left: 0; right: auto; } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.42857143; color: #999999; } .dropdown-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px solid; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } @media (min-width: 768px) { .navbar-right .dropdown-menu { left: auto; right: 0; } .navbar-right .dropdown-menu-left { left: 0; right: auto; } } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; float: left; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { z-index: 2; } .btn-group > .btn:focus, .btn-group-vertical > .btn:focus { outline: none; } .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { margin-left: -1px; } .btn-toolbar { margin-left: -5px; } .btn-toolbar .btn-group, .btn-toolbar .input-group { float: left; } .btn-toolbar > .btn, .btn-toolbar > .btn-group, .btn-toolbar > .input-group { margin-left: 5px; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-bottom-right-radius: 0; border-top-right-radius: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child > .btn:last-child, .btn-group > .btn-group:first-child > .dropdown-toggle { border-bottom-right-radius: 0; border-top-right-radius: 0; } .btn-group > .btn-group:last-child > .btn:first-child { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { padding-left: 8px; padding-right: 8px; } .btn-group > .btn-lg + .dropdown-toggle { padding-left: 12px; padding-right: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) 0 10px rgba(0, 0, 0, 0.175); } .btn-group.open .dropdown-toggle.btn-link { -webkit-box-shadow: none; box-shadow: none; -webkit-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); box-shadow: none 0 10px rgba(0, 0, 0, 0.175); } .btn .caret { margin-left: 0; } .btn-lg .caret { border-width: 5px 5px 0; border-bottom-width: 0; } .dropup .btn-lg .caret { border-width: 0 5px 5px; } .btn-group-vertical > .btn, .btn-group-vertical > .btn-group, .btn-group-vertical > .btn-group > .btn { display: block; float: none; width: 100%; max-width: 100%; } .btn-group-vertical > .btn-group > .btn { float: none; } .btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical > .btn:first-child:not(:last-child) { border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn:last-child:not(:first-child) { border-bottom-left-radius: 4px; border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-justified { display: table; width: 100%; table-layout: fixed; border-collapse: separate; } .btn-group-justified > .btn, .btn-group-justified > .btn-group { float: none; display: table-cell; width: 1%; } .btn-group-justified > .btn-group .btn { width: 100%; } [data-toggle="buttons"] > .btn > input[type="radio"], [data-toggle="buttons"] > .btn > input[type="checkbox"] { display: none; } .input-group { position: relative; display: table; border-collapse: separate; } .input-group[class*="col-"] { float: none; padding-left: 0; padding-right: 0; } .input-group .form-control { position: relative; z-index: 2; float: left; width: 100%; margin-bottom: 0; } .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { height: 46px; line-height: 46px; } textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn, select[multiple].input-group-lg > .form-control, select[multiple].input-group-lg > .input-group-addon, select[multiple].input-group-lg > .input-group-btn > .btn { height: auto; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { height: 30px; line-height: 30px; } textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn, select[multiple].input-group-sm > .form-control, select[multiple].input-group-sm > .input-group-addon, select[multiple].input-group-sm > .input-group-btn > .btn { height: auto; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 6px 12px; font-size: 14px; font-weight: normal; line-height: 1; color: #555555; text-align: center; background-color: #eeeeee; border: 1px solid #e4e4e4; border-radius: 4px; } .input-group-addon.input-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; } .input-group-addon.input-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { border-bottom-right-radius: 0; border-top-right-radius: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { border-bottom-left-radius: 0; border-top-left-radius: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; font-size: 0; white-space: nowrap; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -1px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:focus, .input-group-btn > .btn:active { z-index: 2; } .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group { margin-right: -1px; } .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group { margin-left: -1px; } .nav { margin-bottom: 0; padding-left: 0; list-style: none; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eeeeee; } .nav > li.disabled > a { color: #999999; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #999999; text-decoration: none; background-color: transparent; cursor: not-allowed; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background-color: #eeeeee; border-color: #2babcf; } .nav .nav-divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .nav > li > a > img { max-width: none; } .nav-tabs { border-bottom: 1px solid #dddddd; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 1.42857143; border: 1px solid transparent; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #dddddd; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #555555; background-color: #ffffff; border: 1px solid #dddddd; border-bottom-color: transparent; cursor: default; } .nav-tabs.nav-justified { width: 100%; border-bottom: 0; } .nav-tabs.nav-justified > li { float: none; } .nav-tabs.nav-justified > li > a { text-align: center; margin-bottom: 5px; } .nav-tabs.nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-tabs.nav-justified > li { display: table-cell; width: 1%; } .nav-tabs.nav-justified > li > a { margin-bottom: 0; } } .nav-tabs.nav-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border: 1px solid #dddddd; } @media (min-width: 768px) { .nav-tabs.nav-justified > li > a { border-bottom: 1px solid #dddddd; border-radius: 4px 4px 0 0; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border-bottom-color: #ffffff; } } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 4px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #ffffff; background-color: #428bca; } .nav-stacked > li { float: none; } .nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .nav-justified { width: 100%; } .nav-justified > li { float: none; } .nav-justified > li > a { text-align: center; margin-bottom: 5px; } .nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-justified > li { display: table-cell; width: 1%; } .nav-justified > li > a { margin-bottom: 0; } } .nav-tabs-justified { border-bottom: 0; } .nav-tabs-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border: 1px solid #dddddd; } @media (min-width: 768px) { .nav-tabs-justified > li > a { border-bottom: 1px solid #dddddd; border-radius: 4px 4px 0 0; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border-bottom-color: #ffffff; } } .tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar { position: relative; min-height: 65px; margin-bottom: 20px; border: 1px solid transparent; } @media (min-width: 768px) { .navbar { border-radius: 4px; } } @media (min-width: 768px) { .navbar-header { float: left; } } .navbar-collapse { max-height: 340px; overflow-x: visible; padding-right: 15px; padding-left: 15px; border-top: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); -webkit-overflow-scrolling: touch; } .navbar-collapse.in { overflow-y: auto; } @media (min-width: 768px) { .navbar-collapse { width: auto; border-top: 0; box-shadow: none; } .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; } .navbar-collapse.in { overflow-y: visible; } .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { padding-left: 0; padding-right: 0; } } .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: -15px; margin-left: -15px; } @media (min-width: 768px) { .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: 0; margin-left: 0; } } .navbar-static-top { z-index: 1000; border-width: 0 0 1px; } @media (min-width: 768px) { .navbar-static-top { border-radius: 0; } } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; } @media (min-width: 768px) { .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } } .navbar-fixed-top { top: 0; border-width: 0 0 1px; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; border-width: 1px 0 0; } .navbar-brand { float: left; padding: 22.5px 15px; font-size: 18px; line-height: 20px; height: 65px; } .navbar-brand:hover, .navbar-brand:focus { text-decoration: none; } @media (min-width: 768px) { .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { margin-left: -15px; } } .navbar-toggle { position: relative; float: right; margin-right: 15px; padding: 9px 10px; margin-top: 15.5px; margin-bottom: 15.5px; background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 4px; } .navbar-toggle:focus { outline: none; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } @media (min-width: 768px) { .navbar-toggle { display: none; } } .navbar-nav { margin: 11.25px -15px; } .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; } @media (max-width: 767px) { .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; box-shadow: none; } .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; } .navbar-nav .open .dropdown-menu > li > a { line-height: 20px; } .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; } } @media (min-width: 768px) { .navbar-nav { float: left; margin: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { padding-top: 22.5px; padding-bottom: 22.5px; } .navbar-nav.navbar-right:last-child { margin-right: -15px; } } @media (min-width: 768px) { .navbar-left { float: left !important; } .navbar-right { float: right !important; } } .navbar-form { margin-left: -15px; margin-right: -15px; padding: 10px 15px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1) 0 10px rgba(0, 0, 0, 0.175); margin-top: 15.5px; margin-bottom: 15.5px; } @media (min-width: 768px) { .navbar-form .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .navbar-form .form-control { display: inline-block; width: auto; vertical-align: middle; } .navbar-form .input-group > .form-control { width: 100%; } .navbar-form .control-label { margin-bottom: 0; vertical-align: middle; } .navbar-form .radio, .navbar-form .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; padding-left: 0; vertical-align: middle; } .navbar-form .radio input[type="radio"], .navbar-form .checkbox input[type="checkbox"] { float: none; margin-left: 0; } .navbar-form .has-feedback .form-control-feedback { top: 0; } } @media (max-width: 767px) { .navbar-form .form-group { margin-bottom: 5px; } } @media (min-width: 768px) { .navbar-form { width: auto; border: 0; margin-left: 0; margin-right: 0; padding-top: 0; padding-bottom: 0; -webkit-box-shadow: none; box-shadow: none; -webkit-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); box-shadow: none 0 10px rgba(0, 0, 0, 0.175); } .navbar-form.navbar-right:last-child { margin-right: -15px; } } .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .navbar-btn { margin-top: 15.5px; margin-bottom: 15.5px; } .navbar-btn.btn-sm { margin-top: 17.5px; margin-bottom: 17.5px; } .navbar-btn.btn-xs { margin-top: 21.5px; margin-bottom: 21.5px; } .navbar-text { margin-top: 22.5px; margin-bottom: 22.5px; } @media (min-width: 768px) { .navbar-text { float: left; margin-left: 15px; margin-right: 15px; } .navbar-text.navbar-right:last-child { margin-right: 0; } } .navbar-default { background-color: #ffffff; border-color: #e4e4e4; } .navbar-default .navbar-brand { color: #999999; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-text { color: #777777; } .navbar-default .navbar-nav > li > a { color: #999999; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-default .navbar-toggle { border-color: #dddddd; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #ffffff; } .navbar-default .navbar-toggle .icon-bar { background-color: #888888; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #e4e4e4; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { background-color: transparent; color: #333333; } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #999999; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #cccccc; background-color: transparent; } } .navbar-default .navbar-link { color: #999999; } .navbar-default .navbar-link:hover { color: #333333; } .navbar-inverse { background-color: #222222; border-color: #080808; } .navbar-inverse .navbar-brand { color: #999999; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-text { color: #999999; } .navbar-inverse .navbar-nav > li > a { color: #999999; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #444444; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #333333; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #333333; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #ffffff; } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { border-color: #101010; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { background-color: #080808; color: #ffffff; } @media (max-width: 767px) { .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { border-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu .divider { background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #999999; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #444444; background-color: transparent; } } .navbar-inverse .navbar-link { color: #999999; } .navbar-inverse .navbar-link:hover { color: #ffffff; } .breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: #f5f5f5; border-radius: 4px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { content: "/\00a0"; padding: 0 5px; color: #cccccc; } .breadcrumb > .active { color: #999999; } .pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { position: relative; float: left; padding: 6px 12px; line-height: 1.42857143; text-decoration: none; color: #2babcf; background-color: #ffffff; border: 1px solid #dddddd; margin-left: -1px; } .pagination > li:first-child > a, .pagination > li:first-child > span { margin-left: 0; border-bottom-left-radius: 4px; border-top-left-radius: 4px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-bottom-right-radius: 4px; border-top-right-radius: 4px; } .pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus { color: #2babcf; background-color: #f6f6f6; border-color: #dddddd; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { z-index: 2; color: #ffffff; background-color: #428bca; border-color: #2babcf; cursor: default; } .pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { color: #999999; background-color: #ffffff; border-color: #dddddd; cursor: not-allowed; } .pagination-lg > li > a, .pagination-lg > li > span { padding: 10px 16px; font-size: 18px; } .pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span { border-bottom-left-radius: 6px; border-top-left-radius: 6px; } .pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span { border-bottom-right-radius: 6px; border-top-right-radius: 6px; } .pagination-sm > li > a, .pagination-sm > li > span { padding: 5px 10px; font-size: 12px; } .pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span { border-bottom-left-radius: 3px; border-top-left-radius: 3px; } .pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span { border-bottom-right-radius: 3px; border-top-right-radius: 3px; } .pager { padding-left: 0; margin: 20px 0; list-style: none; text-align: center; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #f6f6f6; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #999999; background-color: #ffffff; cursor: not-allowed; } .label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; } .label[href]:hover, .label[href]:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .label:empty { display: none; } .btn .label { position: relative; top: -1px; } .label-default { background-color: #999999; } .label-default[href]:hover, .label-default[href]:focus { background-color: #808080; } .label-primary { background-color: #428bca; } .label-primary[href]:hover, .label-primary[href]:focus { background-color: #3071a9; } .label-success { background-color: #5cb85c; } .label-success[href]:hover, .label-success[href]:focus { background-color: #449d44; } .label-info { background-color: #5bc0de; } .label-info[href]:hover, .label-info[href]:focus { background-color: #31b0d5; } .label-warning { background-color: #f0ad4e; } .label-warning[href]:hover, .label-warning[href]:focus { background-color: #ec971f; } .label-danger { background-color: #d9534f; } .label-danger[href]:hover, .label-danger[href]:focus { background-color: #c9302c; } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: bold; color: #ffffff; line-height: 1; vertical-align: baseline; white-space: nowrap; text-align: center; background-color: #999999; border-radius: 10px; } .badge:empty { display: none; } .btn .badge { position: relative; top: -1px; } .btn-xs .badge { top: 0; padding: 1px 5px; } a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } a.list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #2babcf; background-color: #ffffff; } .nav-pills > li > a > .badge { margin-left: 3px; } .jumbotron { padding: 30px; margin-bottom: 30px; color: inherit; background-color: #eeeeee; } .jumbotron h1, .jumbotron .h1 { color: inherit; } .jumbotron p { margin-bottom: 15px; font-size: 21px; font-weight: 200; } .container .jumbotron { border-radius: 6px; } .jumbotron .container { max-width: 100%; } @media screen and (min-width: 768px) { .jumbotron { padding-top: 48px; padding-bottom: 48px; } .container .jumbotron { padding-left: 60px; padding-right: 60px; } .jumbotron h1, .jumbotron .h1 { font-size: 63px; } } .thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .thumbnail > img, .thumbnail a > img { margin-left: auto; margin-right: auto; } a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: #2babcf; } .thumbnail .caption { padding: 9px; color: #333333; } .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable { padding-right: 35px; } .alert-dismissable .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { background-color: #dff0d8; border-color: #d6e9c6; color: #3c763d; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #2b542c; } .alert-info { background-color: #d9edf7; border-color: #bce8f1; color: #31708f; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #245269; } .alert-warning { background-color: #fcf8e3; border-color: #faebcc; color: #8a6d3b; } .alert-warning hr { border-top-color: #f7e1b5; } .alert-warning .alert-link { color: #66512c; } .alert-danger { background-color: #f2dede; border-color: #ebccd1; color: #a94442; } .alert-danger hr { border-top-color: #e4b9c0; } .alert-danger .alert-link { color: #843534; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { overflow: hidden; height: 20px; margin-bottom: 20px; background-color: #f5f5f5; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) 0 10px rgba(0, 0, 0, 0.175); } .progress-bar { float: left; width: 0%; height: 100%; font-size: 12px; line-height: 20px; color: #ffffff; text-align: center; background-color: #428bca; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15) 0 10px rgba(0, 0, 0, 0.175); -webkit-transition: width 0.6s ease; transition: width 0.6s ease; } .progress-striped .progress-bar { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 40px 40px; } .progress.active .progress-bar { -webkit-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-bar-success { background-color: #5cb85c; } .progress-striped .progress-bar-success { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-info { background-color: #5bc0de; } .progress-striped .progress-bar-info { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-warning { background-color: #f0ad4e; } .progress-striped .progress-bar-warning { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-danger { background-color: #d9534f; } .progress-striped .progress-bar-danger { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .media, .media-body { overflow: hidden; zoom: 1; } .media, .media .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media-object { display: block; } .media-heading { margin: 0 0 5px; } .media > .pull-left { margin-right: 10px; } .media > .pull-right { margin-left: 10px; } .media-list { padding-left: 0; list-style: none; } .list-group { margin-bottom: 20px; padding-left: 0; } .list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: #ffffff; border: 1px solid #dddddd; } .list-group-item:first-child { border-top-right-radius: 4px; border-top-left-radius: 4px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .list-group-item > .badge { float: right; } .list-group-item > .badge + .badge { margin-right: 5px; } a.list-group-item { color: #555555; } a.list-group-item .list-group-item-heading { color: #333333; } a.list-group-item:hover, a.list-group-item:focus { text-decoration: none; background-color: #f5f5f5; } a.list-group-item.active, a.list-group-item.active:hover, a.list-group-item.active:focus { z-index: 2; color: #ffffff; background-color: #428bca; border-color: #428bca; } a.list-group-item.active .list-group-item-heading, a.list-group-item.active:hover .list-group-item-heading, a.list-group-item.active:focus .list-group-item-heading { color: inherit; } a.list-group-item.active .list-group-item-text, a.list-group-item.active:hover .list-group-item-text, a.list-group-item.active:focus .list-group-item-text { color: #e1edf7; } .list-group-item-success { color: #3c763d; background-color: #dff0d8; } a.list-group-item-success { color: #3c763d; } a.list-group-item-success .list-group-item-heading { color: inherit; } a.list-group-item-success:hover, a.list-group-item-success:focus { color: #3c763d; background-color: #d0e9c6; } a.list-group-item-success.active, a.list-group-item-success.active:hover, a.list-group-item-success.active:focus { color: #fff; background-color: #3c763d; border-color: #3c763d; } .list-group-item-info { color: #31708f; background-color: #d9edf7; } a.list-group-item-info { color: #31708f; } a.list-group-item-info .list-group-item-heading { color: inherit; } a.list-group-item-info:hover, a.list-group-item-info:focus { color: #31708f; background-color: #c4e3f3; } a.list-group-item-info.active, a.list-group-item-info.active:hover, a.list-group-item-info.active:focus { color: #fff; background-color: #31708f; border-color: #31708f; } .list-group-item-warning { color: #8a6d3b; background-color: #fcf8e3; } a.list-group-item-warning { color: #8a6d3b; } a.list-group-item-warning .list-group-item-heading { color: inherit; } a.list-group-item-warning:hover, a.list-group-item-warning:focus { color: #8a6d3b; background-color: #faf2cc; } a.list-group-item-warning.active, a.list-group-item-warning.active:hover, a.list-group-item-warning.active:focus { color: #fff; background-color: #8a6d3b; border-color: #8a6d3b; } .list-group-item-danger { color: #a94442; background-color: #f2dede; } a.list-group-item-danger { color: #a94442; } a.list-group-item-danger .list-group-item-heading { color: inherit; } a.list-group-item-danger:hover, a.list-group-item-danger:focus { color: #a94442; background-color: #ebcccc; } a.list-group-item-danger.active, a.list-group-item-danger.active:hover, a.list-group-item-danger.active:focus { color: #fff; background-color: #a94442; border-color: #a94442; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } .panel { margin-bottom: 20px; background-color: #ffffff; border: 1px solid transparent; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) 0 10px rgba(0, 0, 0, 0.175); } .panel-body { padding: 15px; } .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel-heading > .dropdown .dropdown-toggle { color: inherit; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit; } .panel-title > a { color: inherit; } .panel-footer { padding: 10px 15px; background-color: #f6f6f6; border-top: 1px solid #e9e9e9; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .list-group { margin-bottom: 0; } .panel > .list-group .list-group-item { border-width: 1px 0; border-radius: 0; } .panel > .list-group:first-child .list-group-item:first-child { border-top: 0; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel > .list-group:last-child .list-group-item:last-child { border-bottom: 0; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; } .panel > .table, .panel > .table-responsive > .table { margin-bottom: 0; } .panel > .table:first-child, .panel > .table-responsive:first-child > .table:first-child { border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { border-top-left-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { border-top-right-radius: 3px; } .panel > .table:last-child, .panel > .table-responsive:last-child > .table:last-child { border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { border-bottom-right-radius: 3px; } .panel > .panel-body + .table, .panel > .panel-body + .table-responsive { border-top: 1px solid #dddddd; } .panel > .table > tbody:first-child > tr:first-child th, .panel > .table > tbody:first-child > tr:first-child td { border-top: 0; } .panel > .table-bordered, .panel > .table-responsive > .table-bordered { border: 0; } .panel > .table-bordered > thead > tr > th:first-child, .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, .panel > .table-bordered > tbody > tr > th:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, .panel > .table-bordered > tfoot > tr > th:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, .panel > .table-bordered > thead > tr > td:first-child, .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, .panel > .table-bordered > tbody > tr > td:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, .panel > .table-bordered > tfoot > tr > td:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .panel > .table-bordered > thead > tr > th:last-child, .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, .panel > .table-bordered > tbody > tr > th:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, .panel > .table-bordered > tfoot > tr > th:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, .panel > .table-bordered > thead > tr > td:last-child, .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, .panel > .table-bordered > tbody > tr > td:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, .panel > .table-bordered > tfoot > tr > td:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .panel > .table-bordered > thead > tr:first-child > td, .panel > .table-responsive > .table-bordered > thead > tr:first-child > td, .panel > .table-bordered > tbody > tr:first-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, .panel > .table-bordered > thead > tr:first-child > th, .panel > .table-responsive > .table-bordered > thead > tr:first-child > th, .panel > .table-bordered > tbody > tr:first-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { border-bottom: 0; } .panel > .table-bordered > tbody > tr:last-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, .panel > .table-bordered > tfoot > tr:last-child > td, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, .panel > .table-bordered > tbody > tr:last-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, .panel > .table-bordered > tfoot > tr:last-child > th, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { border-bottom: 0; } .panel > .table-responsive { border: 0; margin-bottom: 0; } .panel-group { margin-bottom: 20px; } .panel-group .panel { margin-bottom: 0; border-radius: 4px; overflow: hidden; } .panel-group .panel + .panel { margin-top: 5px; } .panel-group .panel-heading { border-bottom: 0; } .panel-group .panel-heading + .panel-collapse .panel-body { border-top: 1px solid #e9e9e9; } .panel-group .panel-footer { border-top: 0; } .panel-group .panel-footer + .panel-collapse .panel-body { border-bottom: 1px solid #e9e9e9; } .panel-default { border-color: #e9e9e9; } .panel-default > .panel-heading { color: #333333; background-color: #f6f6f6; border-color: #e9e9e9; } .panel-default > .panel-heading + .panel-collapse .panel-body { border-top-color: #e9e9e9; } .panel-default > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #e9e9e9; } .panel-primary { border-color: #428bca; } .panel-primary > .panel-heading { color: #ffffff; background-color: #428bca; border-color: #428bca; } .panel-primary > .panel-heading + .panel-collapse .panel-body { border-top-color: #428bca; } .panel-primary > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #428bca; } .panel-success { border-color: #d6e9c6; } .panel-success > .panel-heading { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; } .panel-success > .panel-heading + .panel-collapse .panel-body { border-top-color: #d6e9c6; } .panel-success > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #d6e9c6; } .panel-info { border-color: #bce8f1; } .panel-info > .panel-heading { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; } .panel-info > .panel-heading + .panel-collapse .panel-body { border-top-color: #bce8f1; } .panel-info > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #bce8f1; } .panel-warning { border-color: #faebcc; } .panel-warning > .panel-heading { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; } .panel-warning > .panel-heading + .panel-collapse .panel-body { border-top-color: #faebcc; } .panel-warning > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #faebcc; } .panel-danger { border-color: #ebccd1; } .panel-danger > .panel-heading { color: #a94442; background-color: #f2dede; border-color: #ebccd1; } .panel-danger > .panel-heading + .panel-collapse .panel-body { border-top-color: #ebccd1; } .panel-danger > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #ebccd1; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f6f6f6; border: 1px solid #e9e9e9; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05) 0 10px rgba(0, 0, 0, 0.175); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-lg { padding: 24px; border-radius: 6px; } .well-sm { padding: 9px; border-radius: 3px; } .close { float: right; font-size: 21px; font-weight: bold; line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.5; filter: alpha(opacity=50); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .modal-open { overflow: hidden; } .modal { display: none; overflow: auto; overflow-y: scroll; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; -webkit-overflow-scrolling: touch; outline: 0; } .modal.fade .modal-dialog { -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); transform: translate(0, -25%); -webkit-transition: -webkit-transform 0.3s ease-out; -moz-transition: -moz-transform 0.3s ease-out; -o-transition: -o-transform 0.3s ease-out; transition: transform 0.3s ease-out; } .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); transform: translate(0, 0); } .modal-dialog { position: relative; width: auto; margin: 10px; } .modal-content { position: relative; background-color: #ffffff; border: 1px solid #999999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5) 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5) 0 10px rgba(0, 0, 0, 0.175); background-clip: padding-box; outline: none; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000000; } .modal-backdrop.fade { opacity: 0; filter: alpha(opacity=0); } .modal-backdrop.in { opacity: 0.5; filter: alpha(opacity=50); } .modal-header { padding: 15px; border-bottom: 1px solid #e5e5e5; min-height: 16.42857143px; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.42857143; } .modal-body { position: relative; padding: 20px; } .modal-footer { margin-top: 15px; padding: 19px 20px 20px; text-align: right; border-top: 1px solid #e5e5e5; } .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } @media (min-width: 768px) { .modal-dialog { width: 600px; margin: 30px auto; } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) 0 10px rgba(0, 0, 0, 0.175); } .modal-sm { width: 300px; } } @media (min-width: 992px) { .modal-lg { width: 900px; } } .tooltip { position: absolute; z-index: 1030; display: block; visibility: visible; font-size: 12px; line-height: 1.4; opacity: 0; filter: alpha(opacity=0); } .tooltip.in { opacity: 0.9; filter: alpha(opacity=90); } .tooltip.top { margin-top: -3px; padding: 5px 0; } .tooltip.right { margin-left: 3px; padding: 0 5px; } .tooltip.bottom { margin-top: 3px; padding: 5px 0; } .tooltip.left { margin-left: -3px; padding: 0 5px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #ffffff; text-align: center; text-decoration: none; background-color: #2a2a2a; border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-top-color: #2a2a2a; } .tooltip.top-left .tooltip-arrow { bottom: 0; left: 5px; border-width: 5px 5px 0; border-top-color: #2a2a2a; } .tooltip.top-right .tooltip-arrow { bottom: 0; right: 5px; border-width: 5px 5px 0; border-top-color: #2a2a2a; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: #2a2a2a; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: #2a2a2a; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-bottom-color: #2a2a2a; } .tooltip.bottom-left .tooltip-arrow { top: 0; left: 5px; border-width: 0 5px 5px; border-bottom-color: #2a2a2a; } .tooltip.bottom-right .tooltip-arrow { top: 0; right: 5px; border-width: 0 5px 5px; border-bottom-color: #2a2a2a; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; max-width: 276px; padding: 1px; text-align: left; background-color: #ffffff; background-clip: padding-box; border: 1px solid #cccccc; border: 1px solid #2babcf; border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) 0 10px rgba(0, 0, 0, 0.175); white-space: normal; } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { margin: 0; padding: 8px 14px; font-size: 14px; font-weight: normal; line-height: 18px; background-color: #ffffff; border-bottom: 1px solid #f2f2f2; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover > .arrow, .popover > .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover > .arrow { border-width: 11px; } .popover > .arrow:after { border-width: 10px; content: ""; } .popover.top > .arrow { left: 50%; margin-left: -11px; border-bottom-width: 0; border-top-color: #999999; border-top-color: #2babcf; bottom: -11px; } .popover.top > .arrow:after { content: " "; bottom: 1px; margin-left: -10px; border-bottom-width: 0; border-top-color: #2babcf; } .popover.right > .arrow { top: 50%; left: -11px; margin-top: -11px; border-left-width: 0; border-right-color: #999999; border-right-color: #2babcf; } .popover.right > .arrow:after { content: " "; left: 1px; bottom: -10px; border-left-width: 0; border-right-color: #2babcf; } .popover.bottom > .arrow { left: 50%; margin-left: -11px; border-top-width: 0; border-bottom-color: #999999; border-bottom-color: #2babcf; top: -11px; } .popover.bottom > .arrow:after { content: " "; top: 1px; margin-left: -10px; border-top-width: 0; border-bottom-color: #2babcf; } .popover.left > .arrow { top: 50%; right: -11px; margin-top: -11px; border-right-width: 0; border-left-color: #999999; border-left-color: #2babcf; } .popover.left > .arrow:after { content: " "; right: 1px; border-right-width: 0; border-left-color: #2babcf; bottom: -10px; } .carousel { position: relative; } .carousel-inner { position: relative; overflow: hidden; width: 100%; } .carousel-inner > .item { display: none; position: relative; -webkit-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { line-height: 1; } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; left: 0; bottom: 0; width: 15%; opacity: 0.5; filter: alpha(opacity=50); font-size: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-control.left { background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.5) 0%), color-stop(rgba(0, 0, 0, 0.0001) 100%)); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } .carousel-control.right { left: auto; right: 0; background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.0001) 0%), color-stop(rgba(0, 0, 0, 0.5) 100%)); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } .carousel-control:hover, .carousel-control:focus { outline: none; color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-control .icon-prev, .carousel-control .icon-next, .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right { position: absolute; top: 50%; z-index: 5; display: inline-block; } .carousel-control .icon-prev, .carousel-control .glyphicon-chevron-left { left: 50%; } .carousel-control .icon-next, .carousel-control .glyphicon-chevron-right { right: 50%; } .carousel-control .icon-prev, .carousel-control .icon-next { width: 20px; height: 20px; margin-top: -10px; margin-left: -10px; font-family: serif; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 60%; margin-left: -30%; padding-left: 0; list-style: none; text-align: center; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; border: 1px solid #ffffff; border-radius: 10px; cursor: pointer; background-color: #000 \9; background-color: rgba(0, 0, 0, 0); } .carousel-indicators .active { margin: 0; width: 12px; height: 12px; background-color: #ffffff; } .carousel-caption { position: absolute; left: 15%; right: 15%; bottom: 20px; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right, .carousel-control .icon-prev, .carousel-control .icon-next { width: 30px; height: 30px; margin-top: -15px; margin-left: -15px; font-size: 30px; } .carousel-caption { left: 20%; right: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 20px; } } .clearfix:before, .clearfix:after, .container:before, .container:after, .container-fluid:before, .container-fluid:after, .row:before, .row:after, .form-horizontal .form-group:before, .form-horizontal .form-group:after, .btn-toolbar:before, .btn-toolbar:after, .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after, .nav:before, .nav:after, .navbar:before, .navbar:after, .navbar-header:before, .navbar-header:after, .navbar-collapse:before, .navbar-collapse:after, .pager:before, .pager:after, .panel-body:before, .panel-body:after, .modal-footer:before, .modal-footer:after { content: " "; display: table; } .clearfix:after, .container:after, .container-fluid:after, .row:after, .form-horizontal .form-group:after, .btn-toolbar:after, .btn-group-vertical > .btn-group:after, .nav:after, .navbar:after, .navbar-header:after, .navbar-collapse:after, .pager:after, .panel-body:after, .modal-footer:after { clear: both; } .center-block { display: block; margin-left: auto; margin-right: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .hidden { display: none !important; visibility: hidden !important; } .affix { position: fixed; } @-ms-viewport { width: device-width; } .visible-xs, .visible-sm, .visible-md, .visible-lg { display: none !important; } @media (max-width: 767px) { .visible-xs { display: block !important; } table.visible-xs { display: table; } tr.visible-xs { display: table-row !important; } th.visible-xs, td.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } table.visible-sm { display: table; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } table.visible-md { display: table; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-lg { display: block !important; } table.visible-lg { display: table; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } } @media (max-width: 767px) { .hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg { display: none !important; } } .visible-print { display: none !important; } @media print { .visible-print { display: block !important; } table.visible-print { display: table; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } } @media print { .hidden-print { display: none !important; } } /*------------------------------------------------------------------ Project: Paperclip Author: Yevgeny S. URL: https://twitter.com/YevSim Version: 1.0 Created: 11/03/2014 Last change: 01/04/2014 -------------------------------------------------------------------*/ /* ===== Helper ===== */ .delay-1 { -webkit-animation-delay: 300ms; -moz-animation-delay: none; animation-delay: 300ms; } .delay-2 { -webkit-animation-delay: 600ms; -moz-animation-delay: none; animation-delay: 600ms; } .delay-3 { -webkit-animation-delay: 900ms; -moz-animation-delay: none; animation-delay: 900ms; } .delay-4 { -webkit-animation-delay: 1200ms; -moz-animation-delay: none; animation-delay: 1200ms; } .delay-5 { -webkit-animation-delay: 1500ms; -moz-animation-delay: none; animation-delay: 1500ms; } .delay-6 { -webkit-animation-delay: 1800ms; -moz-animation-delay: none; animation-delay: 1800ms; } .delay-7 { -webkit-animation-delay: 2100ms; -moz-animation-delay: none; animation-delay: 2100ms; } .delay-8 { -webkit-animation-delay: 2400ms; -moz-animation-delay: none; animation-delay: 2400ms; } .box-shadow-none { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .first-child { margin-top: 0; } .second-child { margin-top: 0; } @media (max-width: 767px) { /* Adjusting for mobile */ .second-child { margin-top: 20px; } } .list-style-none { list-style: none; padding-left: 0; } .margin-bottom-20 { margin-bottom: 20px; } hr.arrow-down { margin-top: 40px; margin-bottom: 40px; position: relative; border-top: 1px solid #e9e9e9; border-bottom: 15px solid #f6f6f6; } hr.arrow-down:after { content: url(../img/arrow.png); position: absolute; left: 50%; margin-left: -10px; top: -5px; } /*** Browser ***/ .browser { position: relative; border: 1px solid #b8b8b8; border-radius: 0 0 2px 2px; background: white; -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 0 10px rgba(0, 0, 0, 0.175); } .browser:before { content: ""; position: absolute; top: -29px; height: 28px; left: -1px; right: -1px; border: 1px solid #b8b8b8; border-bottom: 0; border-radius: 2px 2px 0 0; background-image: -webkit-linear-gradient(top, #ededed 0%, #d1d1d1 100%); background-image: -moz-linear-gradient(top, #ededed 0%, #d1d1d1 100%); background-image: -o-linear-gradient(top, #ededed 0%, #d1d1d1 100%); background-image: linear-gradient(top, #ededed 0%, #d1d1d1 100%); text-align: center; line-height: 28px; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.175); box-shadow: 0 0 5px rgba(0, 0, 0, 0.175); } /*** Responsive iFrames ***/ .video-container { position: relative; padding-bottom: 56.2%; margin-bottom: 10px; height: 0; overflow: hidden; } .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .google-maps { position: relative; padding-bottom: 90%; margin-bottom: 10px; height: 0; overflow: hidden; } .google-maps iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } /* ===== Colors ===== */ .text-red { color: #ed3e49; } .text-blue { color: #2babcf; } .bg-red { background: #ed3e49; } .bg-blue { background: #2babcf; } /* ===== Scaffolding ===== */ /* ===== Typography ====== */ /* ===== Tables ===== */ .table > thead > tr > td.yellow, .table > tbody > tr > td.yellow, .table > tfoot > tr > td.yellow, .table > thead > tr > th.yellow, .table > tbody > tr > th.yellow, .table > tfoot > tr > th.yellow, .table > thead > tr.yellow > td, .table > tbody > tr.yellow > td, .table > tfoot > tr.yellow > td, .table > thead > tr.yellow > th, .table > tbody > tr.yellow > th, .table > tfoot > tr.yellow > th { background-color: #fbfbcb; } .table-hover > tbody > tr > td.yellow:hover, .table-hover > tbody > tr > th.yellow:hover, .table-hover > tbody > tr.yellow:hover > td, .table-hover > tbody > tr.yellow:hover > th { background-color: #f8f79b; } /* ===== Buttons ===== */ .btn-red, .btn-red:hover, .btn-blue, .btn-blue:hover { color: #fff !important; } .btn-lg, .btn-group-lg > .btn { font-size: 14px; border-radius: 4px; } /*** Button Red ***/ .btn-red { background: #ed3e49; background-image: -webkit-linear-gradient(top, #f05f68 0%, #ed3e49 100%); background-image: -moz-linear-gradient(top, #f05f68 0%, #ed3e49 100%); background-image: -o-linear-gradient(top, #f05f68 0%, #ed3e49 100%); background-image: linear-gradient(top, #f05f68 0%, #ed3e49 100%); border-color: #e31522; } .btn-red:hover, .btn-red:focus, .btn-red:active { background: #ed3e49; background-image: none; border-color: #cc131f; } /*** Button Blue ***/ .btn-blue { background-color: #2babcf; background-image: -webkit-linear-gradient(top, #45b8d8 0%, #2babcf 100%); background-image: -moz-linear-gradient(top, #45b8d8 0%, #2babcf 100%); background-image: -o-linear-gradient(top, #45b8d8 0%, #2babcf 100%); background-image: linear-gradient(top, #45b8d8 0%, #2babcf 100%); border-color: #2288a5; } .btn-blue:hover, .btn-blue:focus, .btn-blue:active { background-image: none; border-color: #1e7790; } /* ===== Forms ===== */ .form-control { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .form-control:focus { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } /* ===== Dropdowns ===== */ .dropdown-menu { padding: 0; -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.175); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.175); } @media (min-width: 768px) { .navbar-nav > li > .dropdown-menu { margin-top: 3px; } .navbar-nav > li > .dropdown-menu:before { content: ""; position: absolute; top: -3px; height: 0; left: 0; width: 100%; border-top: 3px solid #2babcf; } .dropdown-menu > li > a { padding: 7px 30px 7px 10px; border-bottom: 1px solid #eee; -webkit-transition: padding 300ms; -moz-transition: padding 300ms; transition: padding 300ms; } .dropdown-menu > li:last-child > a { border-bottom: 0; } .dropdown-menu > li > a:hover { padding: 7px 20px 7px 20px; } } .dropdown-menu > li > a:before { content: "\f105"; font-family: FontAwesome; margin-right: 5px; opacity: 0; } .dropdown-menu > li > a:hover:before { opacity: 1; } /* ===== Container Sizes ===== */ /* ===== Navbar ===== */ .navbar-default { -moz-box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.175); box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.175); } /*** Navbar Brand ***/ .navbar-brand { font-family: 'Ubuntu', sans-serif; font-weight: 400; font-size: 22px; } .navbar-brand > img { height: 28px; width: auto; } /*** Navbar Links ***/ .navbar-default .navbar-nav > li > a { text-transform: uppercase; } @media (min-width: 768px) { .navbar-default .navbar-nav > li > a:before { content: ""; position: absolute; top: -3px; height: 0; left: 0; width: 100%; border-top: 3px solid #ed3e49; -webkit-transition: top 100ms; -moz-transition: top 100ms; transition: top 100ms; } .navbar-default .navbar-nav > li > a:hover:before, .navbar-default .navbar-nav > li > a:focus:before { top: 0; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { padding-top: 19.5px; border-top: 3px solid #ed3e49; } .navbar-default .navbar-nav > .active > a:before, .navbar-default .navbar-nav > .active > a:hover:before, .navbar-default .navbar-nav > .active > a:focus:before { top: -3px; } } /*** Navbar Toggle ***/ .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { border-color: #bbb; } .navbar-default .navbar-toggle:hover .icon-bar, .navbar-default .navbar-toggle:focus .icon-bar { background-color: #aaa; } /*** Navbar Search ***/ .navbar-nav > li #navbar-search-box { position: absolute; right: 0; bottom: -69px; width: 250px; padding: 15px; background: white; border: 1px solid #ddd; border-top: 3px solid #2babcf; border-radius: 0 0 4px 4px; -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.175); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.175); } .navbar-nav > #navbar-search > a > i.fa-times { margin: 0 1px; } /* ===== Navs ===== */ /*** Tabs ***/ .nav-tabs { border-bottom: 3px solid #2babcf; margin-bottom: 15px; } .nav-tabs > li { margin-bottom: 0; } .nav-tabs > li > a { border: 1px solid transparent; border-bottom: 0; } .nav-tabs > li > a:hover { border-color: #f6f6f6; background: #f6f6f6; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { background: #2babcf; background-image: -webkit-linear-gradient(top, #3db5d7 0%, #2babcf 100%); background-image: -moz-linear-gradient(top, #3db5d7 0%, #2babcf 100%); background-image: -o-linear-gradient(top, #3db5d7 0%, #2babcf 100%); background-image: linear-gradient(top, #3db5d7 0%, #2babcf 100%); color: white; border: 1px solid transparent; border-bottom: 0; } /*** Tabs Justified ***/ .nav-tabs.nav-justified { border-bottom: 0; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { background: #2babcf; background-image: -webkit-linear-gradient(top, #3db5d7 0%, #2babcf 100%); background-image: -moz-linear-gradient(top, #3db5d7 0%, #2babcf 100%); background-image: -o-linear-gradient(top, #3db5d7 0%, #2babcf 100%); background-image: linear-gradient(top, #3db5d7 0%, #2babcf 100%); color: white; border: 0; } @media (min-width: 768px) { .nav-tabs.nav-justified { border-bottom: 3px solid #2babcf; } .nav-tabs.nav-justified > li > a { border-bottom: 0; } } /*** Pills ***/ .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { background-image: -webkit-linear-gradient(top, #45b8d8 0%, #2babcf 100%); background-image: -moz-linear-gradient(top, #45b8d8 0%, #2babcf 100%); background-image: -o-linear-gradient(top, #45b8d8 0%, #2babcf 100%); background-image: linear-gradient(top, #45b8d8 0%, #2babcf 100%); } /* ===== Pagination ===== */ .pagination > li > a, .pagination > li > span { margin: 0 1px; border-radius: 4px; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { background-color: #2babcf; background-image: -webkit-linear-gradient(top, #45b8d8 0%, #2babcf 100%); background-image: -moz-linear-gradient(top, #45b8d8 0%, #2babcf 100%); background-image: -o-linear-gradient(top, #45b8d8 0%, #2babcf 100%); background-image: linear-gradient(top, #45b8d8 0%, #2babcf 100%); } /* ===== Tooltips ===== */ .tooltip-inner { padding: 7px; border-radius: 2px; } /* ===== Popovers ===== */ .popover { padding: 0; border-width: 3px; border-radius: 4px; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .popover-title { border-bottom: 1px solid #e9e9e9; border-radius: 4px 4px 0 0; font-family: 'Source Sans Pro', sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; font-weight: 600; } /* ===== Panels ===== */ .panel-heading { text-transform: uppercase; } /*** Panel Red ***/ .panel-red { border-color: #ed3e49; } .panel-red > .panel-heading { color: #fff; background-color: #ef555f; border-color: #ef555f; } .panel-red > .panel-heading + .panel-collapse .panel-body { border-top-color: #ef555f; } .panel-red > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #ef555f; } .panel-red > .panel-footer { background-color: #ef555f; border-top: 1px solid #ef555f; color: white; } /*** Panel Blue ***/ .panel-blue { border-color: #2babcf; } .panel-blue > .panel-heading { color: #fff; background-color: #3db5d7; border-color: #3db5d7; } .panel-blue > .panel-heading + .panel-collapse .panel-body { border-top-color: #3db5d7; } .panel-blue > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #3db5d7; } .panel-blue > .panel-footer { background-color: #3db5d7; border-top: 1px solid #3db5d7; color: white; } /*** Accordion ***/ .panel-group .panel-heading { position: relative; padding: 0; } .panel-group .panel-heading > a { position: relative; display: block; padding: 10px 15px; color: inherit; text-decoration: none; text-transform: uppercase; } .panel-group .panel-heading > a:after { position: absolute; right: 10px; height: 20px; width: 20px; content: "\f107"; background: #e4e4e4; border-radius: 20px; text-align: center; line-height: 20px; font-family: FontAwesome; color: white; } .panel-group .panel-heading > .collapsed:after { content: "\f105" !important; } /* ===== Wells ===== */ .well { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } /* ===== Carousel ===== */ /*** Slideshow controls ***/ a.carousel-arrow { height: 50px; width: 50px; border-radius: 50px; line-height: 50px; text-align: center; position: absolute; display: block; top: 50%; margin-top: -25px; background: transparent; color: transparent; font-size: 32px; font-weight: 300; cursor: pointer; -webkit-transition: background 300ms, color 300ms; transition: background 300ms, color 300ms; } .carousel:hover a.carousel-arrow { background: rgba(0, 0, 0, 0.5); color: #FFF; } .carousel a.carousel-arrow:hover { background: rgba(0, 0, 0, 0.7); } a.carousel-arrow:hover, a.carousel-arrow:active { text-decoration: none; } a.carousel-arrow-prev { left: 10px; right: auto; padding-right: 5px; } a.carousel-arrow-next { right: 10px; left: auto; padding-left: 5px; } /* ===== Info Boards ==== */ .info-board { margin: 20px 0; padding: 15px 30px 15px 15px; border-left: 5px solid #e9e9e9; } .info-board h4 { margin-top: 0; } .info-board p:last-child { margin-bottom: 0; } /* 1. Info board red */ .info-board-red { background-color: #fef9f9; border-color: #ef555f; } /* 2. Info board blue */ .info-board-blue { background-color: #eef9fc; border-color: #2babcf; } /* ===== Topic Header ===== */ .topic { margin-top: -30px; margin-bottom: 40px; border-bottom: 1px solid #eee; background: #f6f6f6; } .topic h3 { display: inline-block; margin: 0; padding: 23px 0; font-size: 16px; } .topic .breadcrumb { margin-bottom: 0; padding: 21px 0; background: transparent; } /* ===== Headline ===== */ .headline { display: block; position: relative; margin-bottom: 20px; } .headline > span { display: inline-block; position: relative; background: white; padding-right: 15px; } .headline:after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; border: 0; border-top: 1px solid #e9e9e9; z-index: -1; } /* ===== Back to Top link ===== */ .backtotop { background: #d0d0d0; padding: 10px 15px; font-size: 18px; color: #FFF; border-radius: 3px; -webkit-transition: background 300ms; -moz-transition: background 300ms; transition: background 300ms; } .backtotop:hover { background: #c3c3c3; } /* ===== Rating ===== */ .rating { display: inline-block; } .rating li { margin: 0; padding: 0; font-size: 16px; color: #F7C41F; } /* Social Links */ .social { margin-bottom: 15px; } .social > ul, .social > ul > li { margin: 0 0 10px; padding: 0; } .social li > a { display: inline-block; height: 34px; width: 34px; border-radius: 34px; line-height: 34px; text-align: center; background: #f6f6f6; border: 1px solid #e9e9e9; color: #555555; transition: background 300ms, color 300ms; -webkit-transition: background 300ms, color 300ms; } .social li:hover > a { color: #fff; border-color: transparent; } /*** Social Large ***/ .social-lg li > a { height: 45px; width: 45px; border-radius: 45px; line-height: 45px; text-align: center; } /*** Social Small ***/ .social-sm li > a { height: 30px; width: 30px; border-radius: 30px; line-height: 30px; text-align: center; } .social li > a.rss:hover { background: #ff9900; } .social li > a.facebook:hover { background: #3B5998; } .social li > a.twitter:hover { background: #1dcaff; } .social li > a.plus:hover { background: #dd4b39; } .social li > a.vk:hover { background: #3f628a; } .social li > a.pinterest:hover { background: #c92026; } .social li > a.vimeo:hover { background: #446d82; } .social li > a.github:hover { background: #657e8c; } .social li > a.linkedin:hover { background: #0c7bb3; } .social li > a.dropbox:hover { background: #4fa3e3; } .social li > a.youtube:hover { background: #ed413e; } /* ===== Sidebar ===== */ .bs-sidebar { margin-bottom: 50px; } .bs-sidebar.affix { position: static; } @media (min-width: 992px) { .bs-sidebar .nav > .active > ul { display: block; } .bs-sidebar.affix, .bs-sidebar.affix-bottom { width: 213px; } .bs-sidebar.affix { position: fixed; top: 110px; } .bs-sidebar.affix-bottom { position: absolute; } } @media (min-width: 1200px) { .bs-sidebar.affix-bottom, .bs-sidebar.affix { width: 220px; } } /* ===== General ===== */ html, body { height: 100%; } /* ===== Wrapper ===== */ .wrapper { min-height: 100%; height: auto !important; /* for older versions of IE */ height: 100%; padding-top: 95px; /* navbar height + margin */ margin-bottom: -379px; /* footer height + margin */ padding-bottom: 379px; /* footer height + margin */ } /* ===== Homepage Slider ===== */ .home-slider { margin-top: -30px; } .home-slider .carousel-inner > .item { padding: 80px 0 0; height: 490px; overflow: hidden; background-color: #f6f6f6; background-repeat: no-repeat; background-position: center center; background-size: cover !important; } #item-1 { background-image: url(../img/image-2.png); background-position: bottom center; } #item-2 { background-image: url(../img/image-3.png); } #item-3 { background-image: url(../img/image-4.png); } /*** First Slider ***/ .home-slider h3 { color: #ed3e49; } .home-slider p { margin: 35px 0; line-height: 1.5; } .home-slider ul { list-style-type: none; padding: 0; } /*** Second Slider ***/ .home-slider #item-2 ul { margin-top: 20px; } .home-slider #item-2 ul > li { text-align: right; } .home-slider #item-2 ul > li > span { display: inline-block; margin-bottom: 3px; padding: 3px 15px; background: rgba(237, 62, 73, 0.9); color: white; -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 0 10px rgba(0, 0, 0, 0.175); } .home-slider #item-2 ul.string > li > span { background: rgba(43, 171, 207, 0.9); } /*** Third Slider ***/ .home-slider #item-3 ul { margin: 30px 0; } .home-slider #item-3 ul > li { font-size: 18px; padding: 5px 0; } .home-slider #item-3 ul > li > i { color: #2babcf; } .home-slider #item-3 img { max-width: 300px; margin: 0 auto; } @media (max-width: 992px) { /* Adjusting for small devices */ .home-slider .carousel-inner > .item { padding-top: 50px; } } @media (max-width: 767px) { /* Adjusting for mobile */ .home-slider .carousel-inner > .item { padding-top: 50px; text-align: center; } .home-slider #item-2 ul > li { text-align: left; } .home-slider #item-2 ul > li > span { font-size: 22px; margin-bottom: 7px; } .home-slider #item-3 ul { text-align: left; margin-left: 50px; } } /* ===== Homepage Fullscreen ===== */ .fullscreen { min-height: 100%; height: auto !important; /* for older versions of IE */ height: 100%; padding-top: 95px; /* navbar height + margin */ margin-bottom: -93px; /* footer height + margin */ padding-bottom: 123px; /* footer height + margin */ background: #f6f6f6 url(../img/image-5.jpg) no-repeat center center; background-size: cover; color: white; text-shadow: 1px 1px 2px rgba(100, 100, 100, 0.5); } .fullscreen h1 { margin-top: 70px; } .fullscreen hr { padding-bottom: 3px; border-top: 1px solid white; border-bottom: 1px solid white; } .fullscreen h3 { font-size: 22px; } .fullscreen .btn-default { background: transparent; border: 2px solid white; color: white; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; margin-top: 30px; -webkit-transition: background 300ms, color 300ms; -moz-transition: background 300ms, color 300ms; transition: background 300ms, color 300ms; } .fullscreen .btn-default:hover { background: white; color: #333333; text-shadow: none; } @media (max-width: 992px) { /* Adjusting for small devices */ .fullscreen h1 { margin-top: 30px; } } @media (max-width: 767px) { /* Adjusting for mobile */ .fullscreen { background-image: url(../img/image-alt-5.jpg); } } /* ===== Home Services ===== */ .home-services { margin-bottom: 50px; background: #ed3e49; color: white; } .home-services ul { list-style-type: none; margin: 0; padding: 0; } .home-services li { float: left; width: 24%; padding: 20px 3px; border-right: 1px solid #dc2d38; text-align: center; cursor: pointer; overflow: hidden; white-space: nowrap; /* to avoid cell breaking during expanding on hover */ -webkit-transition: width 300ms; -moz-transition: width 300ms; transition: width 300ms; } .home-services li:first-child { border-left: 1px solid #dc2d38; } .home-services ul:hover li { width: 20%; } .home-services ul:hover > li:hover { width: 36%; } .home-services li i { font-size: 22px; } .home-services li p { margin: 10px 0 0; text-transform: uppercase; } .home-services li span { display: none; } .home-services li:hover span { display: inline-block; } .home-services .lead { margin: 0; line-height: 93px; } @media (max-width: 992px) { /* Adjusting for small devices */ .home-services ul { text-align: center; } } @media (max-width: 767px) { /* Adjusting for mobile */ .home-services li { display: block; float: none; width: 100%; border-right: 0; border-bottom: 1px solid #dc2d38; } .home-services li:first-child { border-left: 0; } .home-services ul:hover li { width: 100%; } .home-services ul:hover > li:hover { width: 100%; } } /* ===== Browser Showcase ===== */ .browser-showcase { margin-top: 40px; } /* ===== Main Services ===== */ .main-services { border-top: 1px solid #ddd; padding: 50px 0; } /* ===== Responsive Showcase ===== */ .responsive-showcase { padding: 50px 0; background: #f6f6f6; background-image: -webkit-linear-gradient(top, #f6f6f6 0%, #ffffff 150px); background-image: -moz-linear-gradient(top, #f6f6f6 0%, #ffffff 150px); background-image: -o-linear-gradient(top, #f6f6f6 0%, #ffffff 150px); background-image: linear-gradient(top, #f6f6f6 0%, #ffffff 150px); border-top: 1px solid #ddd; } @media (min-width: 768px) { .responsive-showcase { height: 480px; padding: 70px 0; overflow: hidden; } } .responsive-showcase .lead { margin: 20px 0 25px; font-size: 16px; } .responsive-showcase ul { margin-top: 20px; } .responsive-showcase ul > li > i { display: block; padding: 5px; font-size: 28px; cursor: pointer; } .responsive-showcase img { margin: 0 auto; } .responsive-showcase img#imac { max-width: 80%; } .responsive-showcase img#iphone { max-width: 60%; } .text-blue.inactive { color: #d0d0d0; } @media (min-width: 768px) and (max-width: 992px) { /* Small devices */ .responsive-showcase { height: 400px; } .responsive-showcase h2 { margin-top: 0; } } /* ===== Portfolio ===== */ .portfolio-item { margin-bottom: 10px; } .portfolio-item > .portfolio-thumbnail { position: relative; overflow: hidden; } .portfolio-item > .portfolio-thumbnail img { border-radius: 4px; } .portfolio-item > .portfolio-thumbnail > .mask { position: absolute; left: 0; width: 100%; top: 0; height: 100%; background: #2babcf; background: rgba(43, 171, 207, 0.5); color: white; opacity: 0; -webkit-transition: opacity 300ms; -moz-transition: opacity 300ms; transition: opacity 300ms; } .portfolio-item > .portfolio-thumbnail:hover > .mask { opacity: 1; } .portfolio-item > .portfolio-thumbnail > .mask a { color: white; margin: 0 3px; } .portfolio-item > .portfolio-thumbnail > .mask a:hover { text-decoration: none; } .portfolio-item > .portfolio-thumbnail > .mask > p { position: absolute; top: 50%; margin-top: -14px; left: 50%; margin-left: -33px; } .portfolio-item > .portfolio-description { padding: 0 5px; } /* ===== Feedback ===== */ .feedbacks { margin: 0 0 20px; padding: 20px 0 50px; background: #f6f6f6 url(../img/image-1.png) no-repeat center center; background-size: cover; border: 1px solid #ccc; } .feedback { margin: 40px 0 10px; } .feedback > i { float: left; margin-right: 15px; } .feedback > div { position: relative; overflow: hidden; padding-left: 20px; /* for arrow */ padding-right: 6px; /* for shadow */ } .feedback > div > p { padding: 10px 20px; background: white; border: white; border-radius: 0 4px 4px; -webkit-box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.175); box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.175); } .feedback > div > p:before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 0; border-top: 20px solid white; border-left: 30px solid transparent; } /* ===== Recent Blogs ===== */ .blog { margin-top: 30px; } .blog > img { height: 70px; width: 70px; float: left; margin-right: 20px; border-radius: 70px; } @media (max-width: 767px) { .blog > img { display: none; } } .blog-desc { overflow: hidden; } .blog-desc h3 { font-weight: 500; font-size: 20px; line-height: 1.5; margin-top: 0; } .blog-desc p { line-height: 1.7; } .blog-desc img { border-radius: 3px; margin: 20px 0; } /* ===== Our Team ===== */ .team-member { margin-bottom: 10px; } .team-member > img { margin-bottom: 5px; border-radius: 4px 4px 0 0; } .team-member > .info { padding: 5px; background: #f6f6f6; border-radius: 0 0 5px 5px; -webkit-transition: background 300ms; -moz-transition: background 300ms; transition: background 300ms; } .team-member:hover > .info { background: #e9e9e9; } .team-member > .info > p { margin-bottom: 0; } @media (max-width: 767px) { /* Adjusting for mobile */ .team-member > img { border-radius: 4px 4px; } .team-member > .info { background: white; } .team-member:hover > .info { background: white; } } /* ===== Help Center ===== */ .panel-body > ul { list-style-type: none; padding: 0; margin: 0; } .panel-body > ul > li { border-bottom: 1px solid #e9e9e9; } .panel-body > ul > li:last-child { border-bottom: 0; } .panel-body > ul > li > a { display: block; padding: 7px 0; font-weight: 600; font-size: 12px; color: #999999; text-transform: uppercase; text-decoration: none; } .panel-body > ul > li > a:hover { color: #333333; } .help-questions { padding-left: 0; margin-left: 20px; } .help-questions > li { padding: 5px 0; } .help-questions > li > a { color: #333333; } .resources > li { padding: 5px 0; } /* ===== Pricing Table ===== */ .pricing-option { margin-top: 30px; border: 15px solid #f6f6f6; text-align: center; } .pricing-inner { border: 1px solid #e9e9e9; -webkit-transition: box-shadow 300ms; -moz-transition: box-shadow 300ms; transition: box-shadow 300ms; } .pricing-inner:hover { -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); } .pricing-header { padding: 10px; } .pricing-header h5 { text-transform: uppercase; font-weight: 600; } .pricing-number { padding: 10px; background: #f8f79b; font-size: 22px; } .pricing-number > span { font-size: 18px; } .pricing-body { padding: 10px; } .pricing-body ul { background: white; } .pricing-body ul > li { padding: 7px 0; border-bottom: 1px solid #e9e9e9; text-transform: uppercase; font-size: 12px; font-weight: 600; color: #999; } .pricing-body ul > li:last-child { border-bottom: 0; } /*** Bonus ***/ #bonus .pricing-number { position: relative; border-bottom: 1px dashed #bbb; } #bonus .pricing-number > .fa-scissors { position: absolute; bottom: -10px; left: 0; font-size: 18px; cursor: pointer; -webkit-transition: left 2s; -moz-transition: left 2s; transition: left 2s; } #bonus .pricing-body { position: relative; } #bonus .pricing-body p { position: absolute; top: 0; left: 0; height: 100%; width: 100%; padding: 10px; z-index: -1; } /* ===== Services ===== */ .services { margin: 30px 0; } .service-item > i { height: 30px; width: 30px; border-radius: 30px; line-height: 30px; text-align: center; display: block; margin-right: 15px; background: #ed3e49; color: white; float: left; -webkit-transition: all 300ms; -moz-transition: all 300ms; transition: all 300ms; } .service-desc { overflow: hidden; } .service-desc > h4 { margin-top: 0; font-weight: 500; } /* ===== Sign In & Sign Up ===== */ .sign-form { border: 15px solid #f6f6f6; } .sign-inner { padding: 30px; border: 1px solid #e9e9e9; } .sign-form .popover { min-width: 200px; } /* ===== Portfolio ===== */ #isotope-container .portfolio-item { margin-bottom: 20px; } /* ===== Portfolio Item ===== */ .portfolio-slideshow { position: relative; border-radius: 3px; overflow: hidden; margin-bottom: 20px; } /* ===== Shop ===== */ .shop-product { margin: 10px 0 20px; text-align: center; } .shop-product img { max-height: 100px; margin: 0 auto; } .shop-product h5 { font-family: 'Source Sans Pro', sans-serif; font-weight: 600; } .shop-product.featured:before { position: absolute; top: 0; left: 15px; content: "\f0a3"; font-family: FontAwesome; font-size: 30px; color: #ed3e49; } .shop-product.featured:after { position: absolute; top: 13px; left: 19px; content: "New"; font-weight: 400; font-size: 10px; color: white; } .shop-product.featured .price .old { color: red; text-decoration: line-through; } .shop-product.featured .price .new { font-weight: bold; } /*** Shop Item ***/ .shop-item .product-img { margin-bottom: 20px; } .shop-item .product-img img { max-height: 70px; opacity: 0.5; margin: 0 auto; } .shop-item .product-img img:hover { opacity: 1; } .shop-item .product-img img.main { max-height: 100%; margin-bottom: 20px; opacity: 1; } .shop-item .product-img .row { padding: 0 12px; } .shop-item .product-img .col-xs-4 { padding-left: 2px; padding-right: 2px; } .rating { display: inline-block; margin-left: 0px; } .rating li { margin: 0; padding: 0; color: #F7C41F; font-size: 14px; } .shop-item .reviews { font-size: 12px; margin-left: 10px; } .shop-item .price-block { display: inline-block; margin-bottom: 15px; padding: 10px; background: #eee; border-radius: 3px; } .shop-item .price-block .form-control { display: inline-block; width: 60px; } .shop-item .price-block .price { margin-right: 10px; vertical-align: middle; font-size: 20px; font-weight: 600; } /*** Shopping Cart ***/ .shopping-cart table > thead > tr > th { border-bottom-width: 1px; } .shopping-cart table > tbody > tr > td { vertical-align: middle; } .shopping-cart table img { float: left; max-width: 100px; margin: 0 10px 10px 0; border-radius: 3px; } .shopping-cart table .item { overflow: hidden; } @media (max-width: 767px) { .shopping-cart table img { float: none; max-width: 100%; margin: 0 0 10px 0; } .shopping-cart table .item { overflow: visible; } } .shopping-cart .form-control { width: 60px; } .shopping-cart .checkout { list-style-type: none; margin: 0; padding: 0; } .shopping-cart .checkout > li { margin: 10px 0; } /* ===== User Profile ====== */ .user-avatar { position: relative; background: #fff; padding: 10px; margin-bottom: 30px; border: 1px solid #eee; border-radius: 3px; } .user-avatar > img { margin-bottom: 10px; border-radius: 3px; } .user-avatar:before, .user-avatar:after { z-index: -1; position: absolute; content: ""; bottom: 15px; left: 10px; width: 50%; top: 80%; max-width: 300px; background: #777; -webkit-box-shadow: 0 15px 10px #777; -moz-box-shadow: 0 15px 10px #777; box-shadow: 0 15px 10px #777; -webkit-transform: rotate(-3deg); -moz-transform: rotate(-3deg); -o-transform: rotate(-3deg); -ms-transform: rotate(-3deg); transform: rotate(-3deg); } .user-avatar:after { -webkit-transform: rotate(3deg); -moz-transform: rotate(3deg); -o-transform: rotate(3deg); -ms-transform: rotate(3deg); transform: rotate(3deg); right: 10px; left: auto; } .user-social { margin-top: 15px; } .user-cart > h4 { margin-bottom: 20px; } .user-info { list-style-type: none; padding-left: 0; margin-top: 20px; } .user-info > li { padding: 3px 0; } /* ===== 404 Not Found ===== */ .not-found { height: 38px; background: #f6f6f6; margin-bottom: 5px; } .not-found > span { display: inline-block; padding-right: 10px; background: white; text-transform: uppercase; font-size: 30px; font-weight: 600; letter-spacing: 1px; } .error-page p { margin-bottom: 30px; } .error-page > .text-muted { text-transform: uppercase; } .error-page > a { font-weight: 600; font-size: 16px; } .error-page .divider { margin: 0 10px; color: #999; } /* ===== Coming Soon ===== */ .coming-soon { background: url(../img/coming-soon.jpg) no-repeat center center; background-size: cover; padding: 100px 0; color: #fff; } .coming-soon h1 { font-size: 54px; text-shadow: 1px 1px 2px #505050; } .coming-soon .lead { margin: 40px 0 50px; font-weight: 400; text-shadow: 1px 1px 2px #505050; } .coming-soon form .form-control { height: 45px; width: 300px; padding: 12px 24px; border-radius: 45px 0 0 45px; font-size: 18px; -webkit-box-shadow: none; box-shadow: none; } .coming-soon form button { height: 45px; border-radius: 0 45px 45px 0; margin-left: -4px; } @media (max-width: 767px) { .coming-soon { padding: 30px 0; } .coming-soon form .form-control { border-radius: 45px; width: 100%; } .coming-soon form button { display: block; width: 100%; border-radius: 45px; } } .is-countdown { margin-top: 50px; text-shadow: 1px 1px 2px #505050; } .countdown-row { display: block; text-align: center; } .countdown-section { display: inline-block; margin: 0 2px; height: 70px; width: 70px; border-radius: 70px; line-height: 70px; text-align: center; border: 1px solid white; font-size: 24px; } .countdown-period { display: block; font-size: 16px; } /* ===== UI Elements ===== */ .tooltip-test button, .popover-test button { margin-bottom: 10px; } /*** Pagination ***/ .pagination-example ul { margin: 10px 0; } /*** Carousel ***/ .carousel-example { border-radius: 4px; overflow: hidden; } /* ===== Comments ===== */ .comments { margin: 20px 0; } .cmt { margin-bottom: 15px; } .cmt > img { height: 50px; width: 50px; border-radius: 50px; line-height: 50px; text-align: center; float: left; margin: 0 10px 0 0; } .cmt > .cmt-block { overflow: hidden; } .cmt > .cmt-block .profile-link { color: #333333; font-weight: 700; } .cmt > .cmt-block .time { margin-left: 10px; font-size: 13px; } .cmt > .cmt-block textarea { border-radius: 0; } .cmt > .cmt-block > .cmt-body { margin-top: 5px; } .rating { -moz-user-select: -moz-none; -o-user-select: none; -khtml-user-select: none; -webkit-user-select: none; user-select: none; } .rating > i { cursor: pointer; display: inline-block; padding: 3px; color: #555555; } .rating .up { color: green; } .rating .up:before { content: "+"; } .rating .down { color: #ed3e49; } .rating .down:before { content: "-"; } /* ===== Footer & Copyright ===== */ footer { margin-top: 50px; padding: 30px 0; background: #e9e9e9; } footer h4 { margin-bottom: 20px; text-transform: uppercase; font-weight: 400; } @media (max-width: 767px) { /* Adjusting for mobile */ footer { padding-top: 20px; } footer h4 { margin-top: 20px; } } footer .form-control { border-color: #ccc; } .copyright { padding: 20px 0; } .tweet > i { float: left; margin-right: 15px; color: #2babcf; } .tweet > p { overflow: hidden; } .tweet > p > a { display: block; }
00-techstorm
trunk/assets/template/css/style.css
CSS
gpl3
163,873
/* line 7, ../sass/lightbox.sass */ body:after { content: url(../img/close.png) url(../img/loading.gif) url(../img/prev.png) url(../img/next.png); display: none; } /* line 11, ../sass/lightbox.sass */ .lightboxOverlay { position: absolute; top: 0; left: 0; z-index: 9999; background-color: black; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80); opacity: 0.8; display: none; } /* line 20, ../sass/lightbox.sass */ .lightbox { position: absolute; left: 0; width: 100%; z-index: 10000; text-align: center; line-height: 0; font-weight: normal; } /* line 28, ../sass/lightbox.sass */ .lightbox .lb-image { display: block; height: auto; -webkit-border-radius: 3px; -moz-border-radius: 3px; -ms-border-radius: 3px; -o-border-radius: 3px; border-radius: 3px; } /* line 32, ../sass/lightbox.sass */ .lightbox a img { border: none; } /* line 35, ../sass/lightbox.sass */ .lb-outerContainer { position: relative; background-color: white; *zoom: 1; width: 250px; height: 250px; margin: 0 auto; -webkit-border-radius: 4px; -moz-border-radius: 4px; -ms-border-radius: 4px; -o-border-radius: 4px; border-radius: 4px; } /* line 38, ../../../../.rvm/gems/ruby-1.9.3-p392/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */ .lb-outerContainer:after { content: ""; display: table; clear: both; } /* line 44, ../sass/lightbox.sass */ .lb-container { padding: 4px; } /* line 47, ../sass/lightbox.sass */ .lb-loader { position: absolute; top: 43%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; } /* line 56, ../sass/lightbox.sass */ .lb-cancel { display: block; width: 32px; height: 32px; margin: 0 auto; background: url(../img/loading.gif) no-repeat; } /* line 63, ../sass/lightbox.sass */ .lb-nav { position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; } /* line 71, ../sass/lightbox.sass */ .lb-container > .nav { left: 0; } /* line 74, ../sass/lightbox.sass */ .lb-nav a { outline: none; } /* line 77, ../sass/lightbox.sass */ .lb-prev, .lb-next { width: 49%; height: 100%; cursor: pointer; /* Trick IE into showing hover */ display: block; } /* line 84, ../sass/lightbox.sass */ .lb-prev { left: 0; float: left; } /* line 87, ../sass/lightbox.sass */ .lb-prev:hover { background: url(../img/prev.png) left 48% no-repeat; } /* line 90, ../sass/lightbox.sass */ .lb-next { right: 0; float: right; } /* line 93, ../sass/lightbox.sass */ .lb-next:hover { background: url(../img/next.png) right 48% no-repeat; } /* line 96, ../sass/lightbox.sass */ .lb-dataContainer { margin: 0 auto; padding-top: 5px; *zoom: 1; width: 100%; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; } /* line 38, ../../../../.rvm/gems/ruby-1.9.3-p392/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */ .lb-dataContainer:after { content: ""; display: table; clear: both; } /* line 103, ../sass/lightbox.sass */ .lb-data { padding: 0 4px; color: #bbbbbb; } /* line 106, ../sass/lightbox.sass */ .lb-data .lb-details { width: 85%; float: left; text-align: left; line-height: 1.1em; } /* line 111, ../sass/lightbox.sass */ .lb-data .lb-caption { font-size: 13px; font-weight: bold; line-height: 1em; } /* line 115, ../sass/lightbox.sass */ .lb-data .lb-number { display: block; clear: left; padding-bottom: 1em; font-size: 12px; color: #999999; } /* line 121, ../sass/lightbox.sass */ .lb-data .lb-close { display: block; float: right; width: 30px; height: 30px; background: url(../img/close.png) top right no-repeat; text-align: right; outline: none; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70); opacity: 0.7; } /* line 130, ../sass/lightbox.sass */ .lb-data .lb-close:hover { cursor: pointer; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); opacity: 1; }
00-techstorm
trunk/assets/template/css/lightbox.css
CSS
gpl3
4,190
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - Help Item</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="help-item.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown active"> <a href="help-item.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="help-item.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="help-item.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="help-item.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="help-item.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>Help Item</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li><a href="help-center.html">Help Center</a></li> <li class="active">Help Item</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-4"> <!-- Search --> <form role="form"> <div class="well"> <div class="row"> <div class="col-sm-12"> <div class="input-group"> <input type="text" class="form-control" placeholder="Enter your question here..."> <span class="input-group-btn"> <button class="btn btn-red" type="button"><i class="fa fa-search"></i></button> </span> </div><!-- /input-group --> </div><!-- /.col-lg-6 --> </div><!-- /.row --> </div> </form> <!-- Categories --> <div class="panel-group" id="help-nav"> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="help-item.html#help-nav-one"> Administration </a> </div> <div id="help-nav-one" class="panel-collapse collapse in"> <div class="panel-body"> <ul> <li><a href="help-item.html#">Subcategory (17)</a></li> <li><a href="help-item.html#">Subcategory (8)</a></li> <li><a href="help-item.html#">Subcategory (10)</a></li> <li><a href="help-item.html#">Subcategory (24)</a></li> <li><a href="help-item.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="help-item.html#help-nav-two" class="collapsed"> Development </a> </div> <div id="help-nav-two" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="help-item.html#">Subcategory (17)</a></li> <li><a href="help-item.html#">Subcategory (8)</a></li> <li><a href="help-item.html#">Subcategory (10)</a></li> <li><a href="help-item.html#">Subcategory (24)</a></li> <li><a href="help-item.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="help-item.html#help-nav-three" class="collapsed"> Installation </a> </div> <div id="help-nav-three" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="help-item.html#">Subcategory (17)</a></li> <li><a href="help-item.html#">Subcategory (8)</a></li> <li><a href="help-item.html#">Subcategory (10)</a></li> <li><a href="help-item.html#">Subcategory (24)</a></li> <li><a href="help-item.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="help-item.html#help-nav-four" class="collapsed"> Security </a> </div> <div id="help-nav-four" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="help-item.html#">Subcategory (17)</a></li> <li><a href="help-item.html#">Subcategory (8)</a></li> <li><a href="help-item.html#">Subcategory (10)</a></li> <li><a href="help-item.html#">Subcategory (24)</a></li> <li><a href="help-item.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#help-nav" href="help-item.html#help-nav-five" class="collapsed"> User Management </a> </div> <div id="help-nav-five" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="help-item.html#">Subcategory (17)</a></li> <li><a href="help-item.html#">Subcategory (8)</a></li> <li><a href="help-item.html#">Subcategory (10)</a></li> <li><a href="help-item.html#">Subcategory (24)</a></li> <li><a href="help-item.html#">Subcategory (4)</a></li> </ul> </div> </div> </div> </div> </div> <div class="col-sm-6"> <h3 class="headline"><span>Do you provide support for this item?</span></h3> <p> Yes, do not hesitate to contact us if you have any questions or requests regarding this item. <br /><br /> Sed rutrum quis eros sit amet feugiat. Phasellus vestibulum libero et leo porta, eu scelerisque lacus aliquet. Vivamus euismod tincidunt velit sed malesuada. Pellentesque lacinia est ac lorem placerat tempus. In quis mauris at arcu bibendum fermentum eu quis velit. Pellentesque consequat molestie tortor, eget consectetur leo tristique ac. Quisque egestas arcu sed lectus vulputate, at faucibus quam malesuada. Donec fringilla turpis eros, id accumsan nibh egestas vel. Fusce a magna ut nisl pellentesque tincidunt. <br /><br /> Sed imperdiet varius elit, ut congue arcu lobortis id. Aliquam ultrices ligula eu neque rutrum tincidunt. Pellentesque non metus neque. Donec blandit metus eu venenatis fringilla. Nam ut dui lorem. Nulla euismod a neque eget pulvinar. Proin cursus tristique lectus at iaculis. Phasellus elementum, mi in feugiat pulvinar, dui justo fermentum justo, a dapibus mi ligula nec nunc. Etiam a purus porta, mollis nulla ut, tempus elit. Quisque consectetur bibendum neque, vel tincidunt urna ultricies at. Mauris purus mauris, laoreet dapibus convallis non, tincidunt in elit. Nullam vel ligula nibh. Praesent egestas ullamcorper malesuada. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque rhoncus venenatis nunc non posuere. </p> <!-- Pagination --> <ul class="pager pull-right"> <li><a href="help-item.html#">Previous</a></li> <li><a href="help-item.html#">Next</a></li> </ul> <div class="clearfix"></div> </div> <div class="col-sm-2"> <h3 class="headline"><span>Resources</span></h3> <ul class="list-style-none resources"> <li><a href="about-us.html">About Us</a></li> <li><a href="blog.html">Our Blog</a></li> <li><a href="contact-us.html">Contact Us</a></li> </ul> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="help-item.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="help-item.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="help-item.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/help-item.html
HTML
gpl3
17,709
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">--> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="ico/favicon.ico"> <title>Paperclip - About Us</title> <!-- Bootstrap core CSS --> <!--<link href="css/bootstrap.min.css" rel="stylesheet">--> <!-- Custom styles for this template --> <link href="css/style.css" rel="stylesheet"> <!-- Resources --> <link href="fonts/font-awesome-4.0.3/css/font-awesome.min.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Navigation --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="..."></a> </div> <div class="collapse navbar-collapse"> <button class="navbar-btn btn btn-red pull-right hidden-sm hidden-xs">Sign In</button> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="about-us.html#" class="dropdown-toggle" data-toggle="dropdown">Home <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="index.html">Home: Default</a></li> <li><a href="index-full.html">Home: Fullscreen</a></li> </ul> </li> <li class="dropdown active"> <a href="about-us.html#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="coming-soon.html">Coming Soon</a></li> <li><a href="contact-us.html">Contact Us</a></li> <li><a href="help-center.html">Help Center</a></li> <li><a href="help-item.html">Help Item</a></li> <li><a href="pricing-table.html">Pricing Table</a></li> <li><a href="responsive-video.html">Responsive Video</a></li> <li><a href="services.html">Services</a></li> <li><a href="sign-in.html">Sign In</a></li> <li><a href="sign-up.html">Sign Up</a></li> <li><a href="error-page.html">404 Error Page</a></li> </ul> </li> <li class="dropdown"> <a href="about-us.html#" class="dropdown-toggle" data-toggle="dropdown">Portfolio <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-item.html">Portfolio Item</a></li> </ul> </li> <li class="dropdown"> <a href="about-us.html#" class="dropdown-toggle" data-toggle="dropdown">Blog <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="blog.html">Blog</a></li> <li><a href="blog-post.html">Blog Post</a></li> </ul> </li> <li class="dropdown"> <a href="about-us.html#" class="dropdown-toggle" data-toggle="dropdown">Shop <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="shop.html">Shop</a></li> <li><a href="shop-item.html">Shop Item</a></li> <li><a href="shopping-cart.html">Shopping Cart</a></li> <li><a href="user-profile.html">User Profile</a></li> </ul> </li> <li class="hidden-sm"> <a href="ui-elements.html">UI Elements</a> </li> <!-- Navbar Search --> <li class="hidden-xs" id="navbar-search"> <a href="about-us.html#"> <i class="fa fa-search"></i> </a> <div class="hidden" id="navbar-search-box"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </li> </ul> <!-- Mobile Search --> <form class="navbar-form navbar-right visible-xs" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-red" type="button">Search!</button> </span> </div> </form> </div><!--/.nav-collapse --> </div> </div> <!-- / .navigation --> <!-- Wrapper --> <div class="wrapper"> <!-- Topic Header --> <div class="topic"> <div class="container"> <div class="row"> <div class="col-sm-4"> <h3>About Us</h3> </div> <div class="col-sm-8"> <ol class="breadcrumb pull-right hidden-xs"> <li><a href="index.html">Home</a></li> <li class="active">About Us</li> </ol> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-7"> <h3 class="headline first-child"><span>Welcome Message</span></h3> <p> Sed at porta tellus. Sed sit amet ipsum non dolor tincidunt vestibulum eget et urna. In et placerat eros. Curabitur tristique lacinia tortor ut ornare. Proin vehicula rhoncus fermentum. Integer scelerisque aliquam turpis. Quisque pellentesque, sem vel molestie posuere, orci sapien interdum mauris, eget condimentum purus arcu ut augue. <br /><br /> Nunc in neque nec arcu vulputate ullamcorper. Ut id orci ac arcu consectetur fringilla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis hendrerit enim id arcu lacinia, id commodo ante semper. Sed vel ante nec nisi vestibulum congue. Pellentesque non lacus in tortor rutrum tristique. </p> <hr> <a href="contact-us.html" class="btn btn-lg btn-red">Contact Us</a> <br /><br /> </div> <div class="col-sm-5"> <h3 class="headline first-child"><span>Video Intro</span></h3> <div class="video-container"> <iframe src="http://player.vimeo.com/video/67449472?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> </div> <!-- / .row --> <div class="row our-team-p"> <div class="col-sm-12"> <h3 class="headline"><span>Our Team</span></h3> <div class="row"> <div class="col-sm-2 col-xs-6"> <div class="team-member text-center"> <img class="img-responsive center-block" src="img/photo-1.jpg" alt="..."> <div class="info"> John Doe <p class="text-muted">Founder</p> </div> </div> </div> <div class="col-sm-2 col-xs-6"> <div class="team-member text-center"> <img class="img-responsive center-block" src="img/photo-2.jpg" alt="..."> <div class="info"> John Doe <p class="text-muted">Engineer</p> </div> </div> </div> <div class="col-sm-2 col-xs-6"> <div class="team-member text-center"> <img class="img-responsive center-block" src="img/photo-3.jpg" alt="..."> <div class="info"> John Doe <p class="text-muted">Engineer</p> </div> </div> </div> <div class="col-sm-2 col-xs-6"> <div class="team-member text-center"> <img class="img-responsive center-block" src="img/photo-1.jpg" alt="..."> <div class="info"> John Doe <p class="text-muted">Engineer</p> </div> </div> </div> <div class="col-sm-2 col-xs-6"> <div class="team-member text-center"> <img class="img-responsive center-block" src="img/photo-2.jpg" alt="..."> <div class="info"> John Doe <p class="text-muted">Sales</p> </div> </div> </div> <div class="col-sm-2 col-xs-6"> <div class="team-member text-center"> <img class="img-responsive center-block" src="img/photo-3.jpg" alt="..."> <div class="info"> John Doe <p class="text-muted">Admin Team</p> </div> </div> </div> </div> <!-- / .row --> </div> </div> <!-- / .row --> </div> <!-- / .container --> </div> <!-- / .wrapper --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <!-- Contact Us --> <div class="col-sm-4"> <h4><i class="fa fa-map-marker text-red"></i> Contact Us</h4> <p>Do not hesitate to contact us if you have any questions or feature requests:</p> <p> San Francisco, CA 94101<br /> 1987 Lincoln Street<br /> Phone: +0 000 000 00 00<br /> Fax: +0 000 000 00 00<br /> Email: <a href="about-us.html#">admin@mysite.com</a> </p> </div> <!-- Recent Tweets --> <div class="col-sm-4"> <h4><i class="fa fa-twitter-square text-red"></i> Recent Tweets</h4> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Ut tincidunt erat quis viverra consectetur. Suspendisse tempus vulputate leo. <a href="about-us.html#">1 day ago</a> </p> </div> <div class="tweet"> <i class="fa fa-twitter fa-2x"></i> <p> Mauris eget lacus ut ipsum dignissim malesuada quis nec ante. <a href="about-us.html#">2 days ago</a> </p> </div> </div> <!-- Newsletter --> <div class="col-sm-4"> <h4><i class="fa fa-envelope text-red"></i> Newsletter</h4> <p> Enter your e-mail below to subscribe to our free newsletter. <br> We promise not to bother you often! </p> <form class="form" role="form"> <div class="row"> <div class="col-sm-8"> <div class="input-group"> <label class="sr-only" for="subscribe-email">Email address</label> <input type="email" class="form-control" id="subscribe-email" placeholder="Enter your email"> <span class="input-group-btn"> <button type="submit" class="btn btn-default">OK</button> </span> </div> </div> </div> </form> </div> </div> </div> </footer> <!-- Copyright --> <div class="container"> <div class="row"> <div class="col-sm-12"> <div class="copyright"> Copyright 2014 - Paperclip Theme by <a href="https://twitter.com/YevSim">Yevgeny S.</a> | All Rights Reserved </div> </div> </div> <!-- / .row --> </div> <!-- / .container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/scrolltopcontrol.js"></script> <script src="js/custom.js"></script> </body> </html>
00-techstorm
trunk/assets/template/about-us.html
HTML
gpl3
13,850
/*------------------------------------------------------------------ Project: Paperclip Author: Yevgeny S. URL: https://twitter.com/YevSim Version: 1.0 Created: 11/03/2014 Last change: 01/04/2014 -------------------------------------------------------------------*/ /*! normalize.css v3.0.0 | MIT License | git.io/normalize */ html { font-family: sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; } body { margin: 0; } article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; } audio, canvas, progress, video { display: inline-block; vertical-align: baseline; } audio:not([controls]) { display: none; height: 0; } [hidden], template { display: none; } a { background: transparent; } a:active, a:hover { outline: 0; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } h1 { font-size: 2em; margin: 0.67em 0; } mark { background: #ff0; color: #000; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 1em 40px; } hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } pre { overflow: auto; } code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; } button { overflow: visible; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } button[disabled], html input[disabled] { cursor: default; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } input { line-height: normal; } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; } input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } legend { border: 0; padding: 0; } textarea { overflow: auto; } optgroup { font-weight: bold; } table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; } @media print { * { text-shadow: none !important; color: #000 !important; background: transparent !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } select { background: #fff !important; } .navbar { display: none; } .table td, .table th { background-color: #fff !important; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 62.5%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { font-family: 'Source Sans Pro', sans-serif; font-size: 14px; line-height: 1.42857143; color: #333333; background-color: #ffffff; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #e74c3c; text-decoration: none; } a:hover, a:focus { color: #e74c3c; text-decoration: underline; } a:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } figure { margin: 0; } img { vertical-align: middle; } .img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; max-width: 100%; height: auto; } .img-rounded { border-radius: 6px; } .img-thumbnail { padding: 4px; line-height: 1.42857143; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; display: inline-block; max-width: 100%; height: auto; } .img-circle { border-radius: 50%; } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eeeeee; } .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: 'Ubuntu', sans-serif; font-weight: 300; line-height: 1.1; color: inherit; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { font-weight: normal; line-height: 1; color: #999999; } h1, .h1, h2, .h2, h3, .h3 { margin-top: 20px; margin-bottom: 10px; } h1 small, .h1 small, h2 small, .h2 small, h3 small, .h3 small, h1 .small, .h1 .small, h2 .small, .h2 .small, h3 .small, .h3 .small { font-size: 65%; } h4, .h4, h5, .h5, h6, .h6 { margin-top: 10px; margin-bottom: 10px; } h4 small, .h4 small, h5 small, .h5 small, h6 small, .h6 small, h4 .small, .h4 .small, h5 .small, .h5 .small, h6 .small, .h6 .small { font-size: 75%; } h1, .h1 { font-size: 36px; } h2, .h2 { font-size: 30px; } h3, .h3 { font-size: 24px; } h4, .h4 { font-size: 18px; } h5, .h5 { font-size: 14px; } h6, .h6 { font-size: 12px; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 16px; font-weight: 200; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 21px; } } small, .small { font-size: 85%; } cite { font-style: normal; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } .text-justify { text-align: justify; } .text-muted { color: #999999; } .text-primary { color: #428bca; } a.text-primary:hover { color: #3071a9; } .text-success { color: #3c763d; } a.text-success:hover { color: #2b542c; } .text-info { color: #31708f; } a.text-info:hover { color: #245269; } .text-warning { color: #8a6d3b; } a.text-warning:hover { color: #66512c; } .text-danger { color: #a94442; } a.text-danger:hover { color: #843534; } .bg-primary { color: #fff; background-color: #428bca; } a.bg-primary:hover { background-color: #3071a9; } .bg-success { background-color: #dff0d8; } a.bg-success:hover { background-color: #c1e2b3; } .bg-info { background-color: #d9edf7; } a.bg-info:hover { background-color: #afd9ee; } .bg-warning { background-color: #fcf8e3; } a.bg-warning:hover { background-color: #f7ecb5; } .bg-danger { background-color: #f2dede; } a.bg-danger:hover { background-color: #e4b9b9; } .page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eeeeee; } ul, ol { margin-top: 0; margin-bottom: 10px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; margin-left: -5px; } .list-inline > li { display: inline-block; padding-left: 5px; padding-right: 5px; } dl { margin-top: 0; margin-bottom: 20px; } dt, dd { line-height: 1.42857143; } dt { font-weight: bold; } dd { margin-left: 0; } @media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; clear: left; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #999999; } .initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid #eeeeee; } blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child { margin-bottom: 0; } blockquote footer, blockquote small, blockquote .small { display: block; font-size: 80%; line-height: 1.42857143; color: #999999; } blockquote footer:before, blockquote small:before, blockquote .small:before { content: '\2014 \00A0'; } .blockquote-reverse, blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; text-align: right; } .blockquote-reverse footer:before, blockquote.pull-right footer:before, .blockquote-reverse small:before, blockquote.pull-right small:before, .blockquote-reverse .small:before, blockquote.pull-right .small:before { content: ''; } .blockquote-reverse footer:after, blockquote.pull-right footer:after, .blockquote-reverse small:after, blockquote.pull-right small:after, .blockquote-reverse .small:after, blockquote.pull-right .small:after { content: '\00A0 \2014'; } blockquote:before, blockquote:after { content: ""; } address { margin-bottom: 20px; font-style: normal; line-height: 1.42857143; } code, kbd, pre, samp { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; } code { padding: 2px 4px; font-size: 90%; color: #c7254e; background-color: #f9f2f4; white-space: nowrap; border-radius: 4px; } kbd { padding: 2px 4px; font-size: 90%; color: #ffffff; background-color: #333333; border-radius: 3px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143; word-break: break-all; word-wrap: break-word; color: #333333; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; } pre code { padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; background-color: transparent; border-radius: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } @media (min-width: 768px) { .container { width: 750px; } } @media (min-width: 992px) { .container { width: 970px; } } @media (min-width: 1200px) { .container { width: 1030px; } } .container-fluid { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } .row { margin-left: -15px; margin-right: -15px; } .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { float: left; } .col-xs-12 { width: 100%; } .col-xs-11 { width: 91.66666667%; } .col-xs-10 { width: 83.33333333%; } .col-xs-9 { width: 75%; } .col-xs-8 { width: 66.66666667%; } .col-xs-7 { width: 58.33333333%; } .col-xs-6 { width: 50%; } .col-xs-5 { width: 41.66666667%; } .col-xs-4 { width: 33.33333333%; } .col-xs-3 { width: 25%; } .col-xs-2 { width: 16.66666667%; } .col-xs-1 { width: 8.33333333%; } .col-xs-pull-12 { right: 100%; } .col-xs-pull-11 { right: 91.66666667%; } .col-xs-pull-10 { right: 83.33333333%; } .col-xs-pull-9 { right: 75%; } .col-xs-pull-8 { right: 66.66666667%; } .col-xs-pull-7 { right: 58.33333333%; } .col-xs-pull-6 { right: 50%; } .col-xs-pull-5 { right: 41.66666667%; } .col-xs-pull-4 { right: 33.33333333%; } .col-xs-pull-3 { right: 25%; } .col-xs-pull-2 { right: 16.66666667%; } .col-xs-pull-1 { right: 8.33333333%; } .col-xs-pull-0 { right: 0%; } .col-xs-push-12 { left: 100%; } .col-xs-push-11 { left: 91.66666667%; } .col-xs-push-10 { left: 83.33333333%; } .col-xs-push-9 { left: 75%; } .col-xs-push-8 { left: 66.66666667%; } .col-xs-push-7 { left: 58.33333333%; } .col-xs-push-6 { left: 50%; } .col-xs-push-5 { left: 41.66666667%; } .col-xs-push-4 { left: 33.33333333%; } .col-xs-push-3 { left: 25%; } .col-xs-push-2 { left: 16.66666667%; } .col-xs-push-1 { left: 8.33333333%; } .col-xs-push-0 { left: 0%; } .col-xs-offset-12 { margin-left: 100%; } .col-xs-offset-11 { margin-left: 91.66666667%; } .col-xs-offset-10 { margin-left: 83.33333333%; } .col-xs-offset-9 { margin-left: 75%; } .col-xs-offset-8 { margin-left: 66.66666667%; } .col-xs-offset-7 { margin-left: 58.33333333%; } .col-xs-offset-6 { margin-left: 50%; } .col-xs-offset-5 { margin-left: 41.66666667%; } .col-xs-offset-4 { margin-left: 33.33333333%; } .col-xs-offset-3 { margin-left: 25%; } .col-xs-offset-2 { margin-left: 16.66666667%; } .col-xs-offset-1 { margin-left: 8.33333333%; } .col-xs-offset-0 { margin-left: 0%; } @media (min-width: 768px) { .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; } .col-sm-12 { width: 100%; } .col-sm-11 { width: 91.66666667%; } .col-sm-10 { width: 83.33333333%; } .col-sm-9 { width: 75%; } .col-sm-8 { width: 66.66666667%; } .col-sm-7 { width: 58.33333333%; } .col-sm-6 { width: 50%; } .col-sm-5 { width: 41.66666667%; } .col-sm-4 { width: 33.33333333%; } .col-sm-3 { width: 25%; } .col-sm-2 { width: 16.66666667%; } .col-sm-1 { width: 8.33333333%; } .col-sm-pull-12 { right: 100%; } .col-sm-pull-11 { right: 91.66666667%; } .col-sm-pull-10 { right: 83.33333333%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-8 { right: 66.66666667%; } .col-sm-pull-7 { right: 58.33333333%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-5 { right: 41.66666667%; } .col-sm-pull-4 { right: 33.33333333%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-2 { right: 16.66666667%; } .col-sm-pull-1 { right: 8.33333333%; } .col-sm-pull-0 { right: 0%; } .col-sm-push-12 { left: 100%; } .col-sm-push-11 { left: 91.66666667%; } .col-sm-push-10 { left: 83.33333333%; } .col-sm-push-9 { left: 75%; } .col-sm-push-8 { left: 66.66666667%; } .col-sm-push-7 { left: 58.33333333%; } .col-sm-push-6 { left: 50%; } .col-sm-push-5 { left: 41.66666667%; } .col-sm-push-4 { left: 33.33333333%; } .col-sm-push-3 { left: 25%; } .col-sm-push-2 { left: 16.66666667%; } .col-sm-push-1 { left: 8.33333333%; } .col-sm-push-0 { left: 0%; } .col-sm-offset-12 { margin-left: 100%; } .col-sm-offset-11 { margin-left: 91.66666667%; } .col-sm-offset-10 { margin-left: 83.33333333%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-8 { margin-left: 66.66666667%; } .col-sm-offset-7 { margin-left: 58.33333333%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-5 { margin-left: 41.66666667%; } .col-sm-offset-4 { margin-left: 33.33333333%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-2 { margin-left: 16.66666667%; } .col-sm-offset-1 { margin-left: 8.33333333%; } .col-sm-offset-0 { margin-left: 0%; } } @media (min-width: 992px) { .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { float: left; } .col-md-12 { width: 100%; } .col-md-11 { width: 91.66666667%; } .col-md-10 { width: 83.33333333%; } .col-md-9 { width: 75%; } .col-md-8 { width: 66.66666667%; } .col-md-7 { width: 58.33333333%; } .col-md-6 { width: 50%; } .col-md-5 { width: 41.66666667%; } .col-md-4 { width: 33.33333333%; } .col-md-3 { width: 25%; } .col-md-2 { width: 16.66666667%; } .col-md-1 { width: 8.33333333%; } .col-md-pull-12 { right: 100%; } .col-md-pull-11 { right: 91.66666667%; } .col-md-pull-10 { right: 83.33333333%; } .col-md-pull-9 { right: 75%; } .col-md-pull-8 { right: 66.66666667%; } .col-md-pull-7 { right: 58.33333333%; } .col-md-pull-6 { right: 50%; } .col-md-pull-5 { right: 41.66666667%; } .col-md-pull-4 { right: 33.33333333%; } .col-md-pull-3 { right: 25%; } .col-md-pull-2 { right: 16.66666667%; } .col-md-pull-1 { right: 8.33333333%; } .col-md-pull-0 { right: 0%; } .col-md-push-12 { left: 100%; } .col-md-push-11 { left: 91.66666667%; } .col-md-push-10 { left: 83.33333333%; } .col-md-push-9 { left: 75%; } .col-md-push-8 { left: 66.66666667%; } .col-md-push-7 { left: 58.33333333%; } .col-md-push-6 { left: 50%; } .col-md-push-5 { left: 41.66666667%; } .col-md-push-4 { left: 33.33333333%; } .col-md-push-3 { left: 25%; } .col-md-push-2 { left: 16.66666667%; } .col-md-push-1 { left: 8.33333333%; } .col-md-push-0 { left: 0%; } .col-md-offset-12 { margin-left: 100%; } .col-md-offset-11 { margin-left: 91.66666667%; } .col-md-offset-10 { margin-left: 83.33333333%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-8 { margin-left: 66.66666667%; } .col-md-offset-7 { margin-left: 58.33333333%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-5 { margin-left: 41.66666667%; } .col-md-offset-4 { margin-left: 33.33333333%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-2 { margin-left: 16.66666667%; } .col-md-offset-1 { margin-left: 8.33333333%; } .col-md-offset-0 { margin-left: 0%; } } @media (min-width: 1200px) { .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } .col-lg-12 { width: 100%; } .col-lg-11 { width: 91.66666667%; } .col-lg-10 { width: 83.33333333%; } .col-lg-9 { width: 75%; } .col-lg-8 { width: 66.66666667%; } .col-lg-7 { width: 58.33333333%; } .col-lg-6 { width: 50%; } .col-lg-5 { width: 41.66666667%; } .col-lg-4 { width: 33.33333333%; } .col-lg-3 { width: 25%; } .col-lg-2 { width: 16.66666667%; } .col-lg-1 { width: 8.33333333%; } .col-lg-pull-12 { right: 100%; } .col-lg-pull-11 { right: 91.66666667%; } .col-lg-pull-10 { right: 83.33333333%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-8 { right: 66.66666667%; } .col-lg-pull-7 { right: 58.33333333%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-5 { right: 41.66666667%; } .col-lg-pull-4 { right: 33.33333333%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-2 { right: 16.66666667%; } .col-lg-pull-1 { right: 8.33333333%; } .col-lg-pull-0 { right: 0%; } .col-lg-push-12 { left: 100%; } .col-lg-push-11 { left: 91.66666667%; } .col-lg-push-10 { left: 83.33333333%; } .col-lg-push-9 { left: 75%; } .col-lg-push-8 { left: 66.66666667%; } .col-lg-push-7 { left: 58.33333333%; } .col-lg-push-6 { left: 50%; } .col-lg-push-5 { left: 41.66666667%; } .col-lg-push-4 { left: 33.33333333%; } .col-lg-push-3 { left: 25%; } .col-lg-push-2 { left: 16.66666667%; } .col-lg-push-1 { left: 8.33333333%; } .col-lg-push-0 { left: 0%; } .col-lg-offset-12 { margin-left: 100%; } .col-lg-offset-11 { margin-left: 91.66666667%; } .col-lg-offset-10 { margin-left: 83.33333333%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-8 { margin-left: 66.66666667%; } .col-lg-offset-7 { margin-left: 58.33333333%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-5 { margin-left: 41.66666667%; } .col-lg-offset-4 { margin-left: 33.33333333%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-2 { margin-left: 16.66666667%; } .col-lg-offset-1 { margin-left: 8.33333333%; } .col-lg-offset-0 { margin-left: 0%; } } table { max-width: 100%; background-color: transparent; } th { text-align: left; } .table { width: 100%; margin-bottom: 20px; } .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { padding: 8px; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #dddddd; } .table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #dddddd; } .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { border-top: 0; } .table > tbody + tbody { border-top: 2px solid #dddddd; } .table .table { background-color: #ffffff; } .table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td { padding: 5px; } .table-bordered { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; } .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th { background-color: #f9f9f9; } .table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { background-color: #f5f5f5; } table col[class*="col-"] { position: static; float: none; display: table-column; } table td[class*="col-"], table th[class*="col-"] { position: static; float: none; display: table-cell; } .table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { background-color: #f5f5f5; } .table-hover > tbody > tr > td.active:hover, .table-hover > tbody > tr > th.active:hover, .table-hover > tbody > tr.active:hover > td, .table-hover > tbody > tr.active:hover > th { background-color: #e8e8e8; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background-color: #dff0d8; } .table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr.success:hover > th { background-color: #d0e9c6; } .table > thead > tr > td.info, .table > tbody > tr > td.info, .table > tfoot > tr > td.info, .table > thead > tr > th.info, .table > tbody > tr > th.info, .table > tfoot > tr > th.info, .table > thead > tr.info > td, .table > tbody > tr.info > td, .table > tfoot > tr.info > td, .table > thead > tr.info > th, .table > tbody > tr.info > th, .table > tfoot > tr.info > th { background-color: #d9edf7; } .table-hover > tbody > tr > td.info:hover, .table-hover > tbody > tr > th.info:hover, .table-hover > tbody > tr.info:hover > td, .table-hover > tbody > tr.info:hover > th { background-color: #c4e3f3; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background-color: #fcf8e3; } .table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr.warning:hover > th { background-color: #faf2cc; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background-color: #f2dede; } .table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr.danger:hover > th { background-color: #ebcccc; } @media (max-width: 767px) { .table-responsive { width: 100%; margin-bottom: 15px; overflow-y: hidden; overflow-x: scroll; -ms-overflow-style: -ms-autohiding-scrollbar; border: 1px solid #dddddd; -webkit-overflow-scrolling: touch; } .table-responsive > .table { margin-bottom: 0; } .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td { white-space: nowrap; } .table-responsive > .table-bordered { border: 0; } .table-responsive > .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .table-responsive > .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tfoot > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; } } fieldset { padding: 0; margin: 0; border: 0; min-width: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } label { display: inline-block; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; /* IE8-9 */ line-height: normal; } input[type="file"] { display: block; } input[type="range"] { display: block; width: 100%; } select[multiple], select[size] { height: auto; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } output { display: block; padding-top: 7px; font-size: 14px; line-height: 1.42857143; color: #555555; } .form-control { display: block; width: 100%; height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; color: #555555; background-color: #ffffff; background-image: none; border: 1px solid #e4e4e4; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; } .form-control:focus { border-color: #d0d0d0; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(208, 208, 208, 0.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(208, 208, 208, 0.6); -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(208, 208, 208, 0.6) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(208, 208, 208, 0.6) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(208, 208, 208, 0.6) 0 10px rgba(0, 0, 0, 0.175); } .form-control::-moz-placeholder { color: #999999; opacity: 1; } .form-control:-ms-input-placeholder { color: #999999; } .form-control::-webkit-input-placeholder { color: #999999; } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { cursor: not-allowed; background-color: #eeeeee; opacity: 1; } textarea.form-control { height: auto; } input[type="search"] { -webkit-appearance: none; } input[type="date"] { line-height: 34px; } .form-group { margin-bottom: 15px; } .radio, .checkbox { display: block; min-height: 20px; margin-top: 10px; margin-bottom: 10px; padding-left: 20px; } .radio label, .checkbox label { display: inline; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { float: left; margin-left: -20px; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { display: inline-block; padding-left: 20px; margin-bottom: 0; vertical-align: middle; font-weight: normal; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } input[type="radio"][disabled], input[type="checkbox"][disabled], .radio[disabled], .radio-inline[disabled], .checkbox[disabled], .checkbox-inline[disabled], fieldset[disabled] input[type="radio"], fieldset[disabled] input[type="checkbox"], fieldset[disabled] .radio, fieldset[disabled] .radio-inline, fieldset[disabled] .checkbox, fieldset[disabled] .checkbox-inline { cursor: not-allowed; } .input-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-sm { height: 30px; line-height: 30px; } textarea.input-sm, select[multiple].input-sm { height: auto; } .input-lg { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } select.input-lg { height: 46px; line-height: 46px; } textarea.input-lg, select[multiple].input-lg { height: auto; } .has-feedback { position: relative; } .has-feedback .form-control { padding-right: 42.5px; } .has-feedback .form-control-feedback { position: absolute; top: 25px; right: 0; display: block; width: 34px; height: 34px; line-height: 34px; text-align: center; } .has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline { color: #3c763d; } .has-success .form-control { border-color: #3c763d; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); } .has-success .form-control:focus { border-color: #2b542c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168 0 10px rgba(0, 0, 0, 0.175); } .has-success .input-group-addon { color: #3c763d; border-color: #3c763d; background-color: #dff0d8; } .has-success .form-control-feedback { color: #3c763d; } .has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline { color: #8a6d3b; } .has-warning .form-control { border-color: #8a6d3b; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); } .has-warning .form-control:focus { border-color: #66512c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b 0 10px rgba(0, 0, 0, 0.175); } .has-warning .input-group-addon { color: #8a6d3b; border-color: #8a6d3b; background-color: #fcf8e3; } .has-warning .form-control-feedback { color: #8a6d3b; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline { color: #a94442; } .has-error .form-control { border-color: #a94442; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) 0 10px rgba(0, 0, 0, 0.175); } .has-error .form-control:focus { border-color: #843534; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483 0 10px rgba(0, 0, 0, 0.175); } .has-error .input-group-addon { color: #a94442; border-color: #a94442; background-color: #f2dede; } .has-error .form-control-feedback { color: #a94442; } .form-control-static { margin-bottom: 0; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; } @media (min-width: 768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; } .form-inline .input-group > .form-control { width: 100%; } .form-inline .control-label { margin-bottom: 0; vertical-align: middle; } .form-inline .radio, .form-inline .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; padding-left: 0; vertical-align: middle; } .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { float: none; margin-left: 0; } .form-inline .has-feedback .form-control-feedback { top: 0; } } .form-horizontal .control-label, .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { margin-top: 0; margin-bottom: 0; padding-top: 7px; } .form-horizontal .radio, .form-horizontal .checkbox { min-height: 27px; } .form-horizontal .form-group { margin-left: -15px; margin-right: -15px; } .form-horizontal .form-control-static { padding-top: 7px; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; } } .form-horizontal .has-feedback .form-control-feedback { top: 0; right: 15px; } .btn { display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; border-radius: 4px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .btn:focus, .btn:active:focus, .btn.active:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn:hover, .btn:focus { color: #333333; text-decoration: none; } .btn:active, .btn.active { outline: 0; background-image: none; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) 0 10px rgba(0, 0, 0, 0.175); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; pointer-events: none; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; -webkit-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); box-shadow: none 0 10px rgba(0, 0, 0, 0.175); } .btn-default { color: #333333; background-color: #ffffff; border-color: #cccccc; } .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { color: #333333; background-color: #ebebeb; border-color: #adadad; } .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { background-image: none; } .btn-default.disabled, .btn-default[disabled], fieldset[disabled] .btn-default, .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled:active, .btn-default[disabled]:active, fieldset[disabled] .btn-default:active, .btn-default.disabled.active, .btn-default[disabled].active, fieldset[disabled] .btn-default.active { background-color: #ffffff; border-color: #cccccc; } .btn-default .badge { color: #ffffff; background-color: #333333; } .btn-primary { color: #ffffff; background-color: #428bca; border-color: #357ebd; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { color: #ffffff; background-color: #3276b1; border-color: #285e8e; } .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background-image: none; } .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { background-color: #428bca; border-color: #357ebd; } .btn-primary .badge { color: #428bca; background-color: #ffffff; } .btn-success { color: #ffffff; background-color: #5cb85c; border-color: #4cae4c; } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { color: #ffffff; background-color: #47a447; border-color: #398439; } .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { background-image: none; } .btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success[disabled].active, fieldset[disabled] .btn-success.active { background-color: #5cb85c; border-color: #4cae4c; } .btn-success .badge { color: #5cb85c; background-color: #ffffff; } .btn-info { color: #ffffff; background-color: #5bc0de; border-color: #46b8da; } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { color: #ffffff; background-color: #39b3d7; border-color: #269abc; } .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { background-image: none; } .btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info[disabled].active, fieldset[disabled] .btn-info.active { background-color: #5bc0de; border-color: #46b8da; } .btn-info .badge { color: #5bc0de; background-color: #ffffff; } .btn-warning { color: #ffffff; background-color: #f0ad4e; border-color: #eea236; } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { color: #ffffff; background-color: #ed9c28; border-color: #d58512; } .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { background-image: none; } .btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning.active { background-color: #f0ad4e; border-color: #eea236; } .btn-warning .badge { color: #f0ad4e; background-color: #ffffff; } .btn-danger { color: #ffffff; background-color: #d9534f; border-color: #d43f3a; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { color: #ffffff; background-color: #d2322d; border-color: #ac2925; } .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { background-image: none; } .btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active { background-color: #d9534f; border-color: #d43f3a; } .btn-danger .badge { color: #d9534f; background-color: #ffffff; } .btn-link { color: #2babcf; font-weight: normal; cursor: pointer; border-radius: 0; } .btn-link, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; -webkit-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); box-shadow: none 0 10px rgba(0, 0, 0, 0.175); } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #2babcf; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #999999; text-decoration: none; } .btn-lg, .btn-group-lg > .btn { padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } .btn-sm, .btn-group-sm > .btn { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-xs, .btn-group-xs > .btn { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-block { display: block; width: 100%; padding-left: 0; padding-right: 0; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { display: none; } .collapse.in { display: block; } .collapsing { position: relative; height: 0; overflow: hidden; -webkit-transition: height 0.35s ease; transition: height 0.35s ease; } @font-face { font-family: 'Glyphicons Halflings'; src: url('../fonts/glyphicons-halflings-regular.eot'); src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .glyphicon-asterisk:before { content: "\2a"; } .glyphicon-plus:before { content: "\2b"; } .glyphicon-euro:before { content: "\20ac"; } .glyphicon-minus:before { content: "\2212"; } .glyphicon-cloud:before { content: "\2601"; } .glyphicon-envelope:before { content: "\2709"; } .glyphicon-pencil:before { content: "\270f"; } .glyphicon-glass:before { content: "\e001"; } .glyphicon-music:before { content: "\e002"; } .glyphicon-search:before { content: "\e003"; } .glyphicon-heart:before { content: "\e005"; } .glyphicon-star:before { content: "\e006"; } .glyphicon-star-empty:before { content: "\e007"; } .glyphicon-user:before { content: "\e008"; } .glyphicon-film:before { content: "\e009"; } .glyphicon-th-large:before { content: "\e010"; } .glyphicon-th:before { content: "\e011"; } .glyphicon-th-list:before { content: "\e012"; } .glyphicon-ok:before { content: "\e013"; } .glyphicon-remove:before { content: "\e014"; } .glyphicon-zoom-in:before { content: "\e015"; } .glyphicon-zoom-out:before { content: "\e016"; } .glyphicon-off:before { content: "\e017"; } .glyphicon-signal:before { content: "\e018"; } .glyphicon-cog:before { content: "\e019"; } .glyphicon-trash:before { content: "\e020"; } .glyphicon-home:before { content: "\e021"; } .glyphicon-file:before { content: "\e022"; } .glyphicon-time:before { content: "\e023"; } .glyphicon-road:before { content: "\e024"; } .glyphicon-download-alt:before { content: "\e025"; } .glyphicon-download:before { content: "\e026"; } .glyphicon-upload:before { content: "\e027"; } .glyphicon-inbox:before { content: "\e028"; } .glyphicon-play-circle:before { content: "\e029"; } .glyphicon-repeat:before { content: "\e030"; } .glyphicon-refresh:before { content: "\e031"; } .glyphicon-list-alt:before { content: "\e032"; } .glyphicon-lock:before { content: "\e033"; } .glyphicon-flag:before { content: "\e034"; } .glyphicon-headphones:before { content: "\e035"; } .glyphicon-volume-off:before { content: "\e036"; } .glyphicon-volume-down:before { content: "\e037"; } .glyphicon-volume-up:before { content: "\e038"; } .glyphicon-qrcode:before { content: "\e039"; } .glyphicon-barcode:before { content: "\e040"; } .glyphicon-tag:before { content: "\e041"; } .glyphicon-tags:before { content: "\e042"; } .glyphicon-book:before { content: "\e043"; } .glyphicon-bookmark:before { content: "\e044"; } .glyphicon-print:before { content: "\e045"; } .glyphicon-camera:before { content: "\e046"; } .glyphicon-font:before { content: "\e047"; } .glyphicon-bold:before { content: "\e048"; } .glyphicon-italic:before { content: "\e049"; } .glyphicon-text-height:before { content: "\e050"; } .glyphicon-text-width:before { content: "\e051"; } .glyphicon-align-left:before { content: "\e052"; } .glyphicon-align-center:before { content: "\e053"; } .glyphicon-align-right:before { content: "\e054"; } .glyphicon-align-justify:before { content: "\e055"; } .glyphicon-list:before { content: "\e056"; } .glyphicon-indent-left:before { content: "\e057"; } .glyphicon-indent-right:before { content: "\e058"; } .glyphicon-facetime-video:before { content: "\e059"; } .glyphicon-picture:before { content: "\e060"; } .glyphicon-map-marker:before { content: "\e062"; } .glyphicon-adjust:before { content: "\e063"; } .glyphicon-tint:before { content: "\e064"; } .glyphicon-edit:before { content: "\e065"; } .glyphicon-share:before { content: "\e066"; } .glyphicon-check:before { content: "\e067"; } .glyphicon-move:before { content: "\e068"; } .glyphicon-step-backward:before { content: "\e069"; } .glyphicon-fast-backward:before { content: "\e070"; } .glyphicon-backward:before { content: "\e071"; } .glyphicon-play:before { content: "\e072"; } .glyphicon-pause:before { content: "\e073"; } .glyphicon-stop:before { content: "\e074"; } .glyphicon-forward:before { content: "\e075"; } .glyphicon-fast-forward:before { content: "\e076"; } .glyphicon-step-forward:before { content: "\e077"; } .glyphicon-eject:before { content: "\e078"; } .glyphicon-chevron-left:before { content: "\e079"; } .glyphicon-chevron-right:before { content: "\e080"; } .glyphicon-plus-sign:before { content: "\e081"; } .glyphicon-minus-sign:before { content: "\e082"; } .glyphicon-remove-sign:before { content: "\e083"; } .glyphicon-ok-sign:before { content: "\e084"; } .glyphicon-question-sign:before { content: "\e085"; } .glyphicon-info-sign:before { content: "\e086"; } .glyphicon-screenshot:before { content: "\e087"; } .glyphicon-remove-circle:before { content: "\e088"; } .glyphicon-ok-circle:before { content: "\e089"; } .glyphicon-ban-circle:before { content: "\e090"; } .glyphicon-arrow-left:before { content: "\e091"; } .glyphicon-arrow-right:before { content: "\e092"; } .glyphicon-arrow-up:before { content: "\e093"; } .glyphicon-arrow-down:before { content: "\e094"; } .glyphicon-share-alt:before { content: "\e095"; } .glyphicon-resize-full:before { content: "\e096"; } .glyphicon-resize-small:before { content: "\e097"; } .glyphicon-exclamation-sign:before { content: "\e101"; } .glyphicon-gift:before { content: "\e102"; } .glyphicon-leaf:before { content: "\e103"; } .glyphicon-fire:before { content: "\e104"; } .glyphicon-eye-open:before { content: "\e105"; } .glyphicon-eye-close:before { content: "\e106"; } .glyphicon-warning-sign:before { content: "\e107"; } .glyphicon-plane:before { content: "\e108"; } .glyphicon-calendar:before { content: "\e109"; } .glyphicon-random:before { content: "\e110"; } .glyphicon-comment:before { content: "\e111"; } .glyphicon-magnet:before { content: "\e112"; } .glyphicon-chevron-up:before { content: "\e113"; } .glyphicon-chevron-down:before { content: "\e114"; } .glyphicon-retweet:before { content: "\e115"; } .glyphicon-shopping-cart:before { content: "\e116"; } .glyphicon-folder-close:before { content: "\e117"; } .glyphicon-folder-open:before { content: "\e118"; } .glyphicon-resize-vertical:before { content: "\e119"; } .glyphicon-resize-horizontal:before { content: "\e120"; } .glyphicon-hdd:before { content: "\e121"; } .glyphicon-bullhorn:before { content: "\e122"; } .glyphicon-bell:before { content: "\e123"; } .glyphicon-certificate:before { content: "\e124"; } .glyphicon-thumbs-up:before { content: "\e125"; } .glyphicon-thumbs-down:before { content: "\e126"; } .glyphicon-hand-right:before { content: "\e127"; } .glyphicon-hand-left:before { content: "\e128"; } .glyphicon-hand-up:before { content: "\e129"; } .glyphicon-hand-down:before { content: "\e130"; } .glyphicon-circle-arrow-right:before { content: "\e131"; } .glyphicon-circle-arrow-left:before { content: "\e132"; } .glyphicon-circle-arrow-up:before { content: "\e133"; } .glyphicon-circle-arrow-down:before { content: "\e134"; } .glyphicon-globe:before { content: "\e135"; } .glyphicon-wrench:before { content: "\e136"; } .glyphicon-tasks:before { content: "\e137"; } .glyphicon-filter:before { content: "\e138"; } .glyphicon-briefcase:before { content: "\e139"; } .glyphicon-fullscreen:before { content: "\e140"; } .glyphicon-dashboard:before { content: "\e141"; } .glyphicon-paperclip:before { content: "\e142"; } .glyphicon-heart-empty:before { content: "\e143"; } .glyphicon-link:before { content: "\e144"; } .glyphicon-phone:before { content: "\e145"; } .glyphicon-pushpin:before { content: "\e146"; } .glyphicon-usd:before { content: "\e148"; } .glyphicon-gbp:before { content: "\e149"; } .glyphicon-sort:before { content: "\e150"; } .glyphicon-sort-by-alphabet:before { content: "\e151"; } .glyphicon-sort-by-alphabet-alt:before { content: "\e152"; } .glyphicon-sort-by-order:before { content: "\e153"; } .glyphicon-sort-by-order-alt:before { content: "\e154"; } .glyphicon-sort-by-attributes:before { content: "\e155"; } .glyphicon-sort-by-attributes-alt:before { content: "\e156"; } .glyphicon-unchecked:before { content: "\e157"; } .glyphicon-expand:before { content: "\e158"; } .glyphicon-collapse-down:before { content: "\e159"; } .glyphicon-collapse-up:before { content: "\e160"; } .glyphicon-log-in:before { content: "\e161"; } .glyphicon-flash:before { content: "\e162"; } .glyphicon-log-out:before { content: "\e163"; } .glyphicon-new-window:before { content: "\e164"; } .glyphicon-record:before { content: "\e165"; } .glyphicon-save:before { content: "\e166"; } .glyphicon-open:before { content: "\e167"; } .glyphicon-saved:before { content: "\e168"; } .glyphicon-import:before { content: "\e169"; } .glyphicon-export:before { content: "\e170"; } .glyphicon-send:before { content: "\e171"; } .glyphicon-floppy-disk:before { content: "\e172"; } .glyphicon-floppy-saved:before { content: "\e173"; } .glyphicon-floppy-remove:before { content: "\e174"; } .glyphicon-floppy-save:before { content: "\e175"; } .glyphicon-floppy-open:before { content: "\e176"; } .glyphicon-credit-card:before { content: "\e177"; } .glyphicon-transfer:before { content: "\e178"; } .glyphicon-cutlery:before { content: "\e179"; } .glyphicon-header:before { content: "\e180"; } .glyphicon-compressed:before { content: "\e181"; } .glyphicon-earphone:before { content: "\e182"; } .glyphicon-phone-alt:before { content: "\e183"; } .glyphicon-tower:before { content: "\e184"; } .glyphicon-stats:before { content: "\e185"; } .glyphicon-sd-video:before { content: "\e186"; } .glyphicon-hd-video:before { content: "\e187"; } .glyphicon-subtitles:before { content: "\e188"; } .glyphicon-sound-stereo:before { content: "\e189"; } .glyphicon-sound-dolby:before { content: "\e190"; } .glyphicon-sound-5-1:before { content: "\e191"; } .glyphicon-sound-6-1:before { content: "\e192"; } .glyphicon-sound-7-1:before { content: "\e193"; } .glyphicon-copyright-mark:before { content: "\e194"; } .glyphicon-registration-mark:before { content: "\e195"; } .glyphicon-cloud-download:before { content: "\e197"; } .glyphicon-cloud-upload:before { content: "\e198"; } .glyphicon-tree-conifer:before { content: "\e199"; } .glyphicon-tree-deciduous:before { content: "\e200"; } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid; border-right: 4px solid transparent; border-left: 4px solid transparent; } .dropdown { position: relative; } .dropdown-toggle:focus { outline: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; font-size: 14px; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) 0 10px rgba(0, 0, 0, 0.175); background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.42857143; color: #333333; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { text-decoration: none; color: #333333; background-color: #f6f6f6; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #333333; text-decoration: none; outline: 0; background-color: #ffffff; } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #999999; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); cursor: not-allowed; } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-menu-right { left: auto; right: 0; } .dropdown-menu-left { left: 0; right: auto; } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.42857143; color: #999999; } .dropdown-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px solid; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } @media (min-width: 768px) { .navbar-right .dropdown-menu { left: auto; right: 0; } .navbar-right .dropdown-menu-left { left: 0; right: auto; } } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; float: left; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { z-index: 2; } .btn-group > .btn:focus, .btn-group-vertical > .btn:focus { outline: none; } .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { margin-left: -1px; } .btn-toolbar { margin-left: -5px; } .btn-toolbar .btn-group, .btn-toolbar .input-group { float: left; } .btn-toolbar > .btn, .btn-toolbar > .btn-group, .btn-toolbar > .input-group { margin-left: 5px; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-bottom-right-radius: 0; border-top-right-radius: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child > .btn:last-child, .btn-group > .btn-group:first-child > .dropdown-toggle { border-bottom-right-radius: 0; border-top-right-radius: 0; } .btn-group > .btn-group:last-child > .btn:first-child { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { padding-left: 8px; padding-right: 8px; } .btn-group > .btn-lg + .dropdown-toggle { padding-left: 12px; padding-right: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) 0 10px rgba(0, 0, 0, 0.175); } .btn-group.open .dropdown-toggle.btn-link { -webkit-box-shadow: none; box-shadow: none; -webkit-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); box-shadow: none 0 10px rgba(0, 0, 0, 0.175); } .btn .caret { margin-left: 0; } .btn-lg .caret { border-width: 5px 5px 0; border-bottom-width: 0; } .dropup .btn-lg .caret { border-width: 0 5px 5px; } .btn-group-vertical > .btn, .btn-group-vertical > .btn-group, .btn-group-vertical > .btn-group > .btn { display: block; float: none; width: 100%; max-width: 100%; } .btn-group-vertical > .btn-group > .btn { float: none; } .btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical > .btn:first-child:not(:last-child) { border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn:last-child:not(:first-child) { border-bottom-left-radius: 4px; border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-justified { display: table; width: 100%; table-layout: fixed; border-collapse: separate; } .btn-group-justified > .btn, .btn-group-justified > .btn-group { float: none; display: table-cell; width: 1%; } .btn-group-justified > .btn-group .btn { width: 100%; } [data-toggle="buttons"] > .btn > input[type="radio"], [data-toggle="buttons"] > .btn > input[type="checkbox"] { display: none; } .input-group { position: relative; display: table; border-collapse: separate; } .input-group[class*="col-"] { float: none; padding-left: 0; padding-right: 0; } .input-group .form-control { position: relative; z-index: 2; float: left; width: 100%; margin-bottom: 0; } .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { height: 46px; line-height: 46px; } textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn, select[multiple].input-group-lg > .form-control, select[multiple].input-group-lg > .input-group-addon, select[multiple].input-group-lg > .input-group-btn > .btn { height: auto; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { height: 30px; line-height: 30px; } textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn, select[multiple].input-group-sm > .form-control, select[multiple].input-group-sm > .input-group-addon, select[multiple].input-group-sm > .input-group-btn > .btn { height: auto; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 6px 12px; font-size: 14px; font-weight: normal; line-height: 1; color: #555555; text-align: center; background-color: #eeeeee; border: 1px solid #e4e4e4; border-radius: 4px; } .input-group-addon.input-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; } .input-group-addon.input-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { border-bottom-right-radius: 0; border-top-right-radius: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { border-bottom-left-radius: 0; border-top-left-radius: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; font-size: 0; white-space: nowrap; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -1px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:focus, .input-group-btn > .btn:active { z-index: 2; } .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group { margin-right: -1px; } .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group { margin-left: -1px; } .nav { margin-bottom: 0; padding-left: 0; list-style: none; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eeeeee; } .nav > li.disabled > a { color: #999999; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #999999; text-decoration: none; background-color: transparent; cursor: not-allowed; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background-color: #eeeeee; border-color: #e74c3c; } .nav .nav-divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .nav > li > a > img { max-width: none; } .nav-tabs { border-bottom: 1px solid #dddddd; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 1.42857143; border: 1px solid transparent; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #dddddd; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #555555; background-color: #ffffff; border: 1px solid #dddddd; border-bottom-color: transparent; cursor: default; } .nav-tabs.nav-justified { width: 100%; border-bottom: 0; } .nav-tabs.nav-justified > li { float: none; } .nav-tabs.nav-justified > li > a { text-align: center; margin-bottom: 5px; } .nav-tabs.nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-tabs.nav-justified > li { display: table-cell; width: 1%; } .nav-tabs.nav-justified > li > a { margin-bottom: 0; } } .nav-tabs.nav-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border: 1px solid #dddddd; } @media (min-width: 768px) { .nav-tabs.nav-justified > li > a { border-bottom: 1px solid #dddddd; border-radius: 4px 4px 0 0; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border-bottom-color: #ffffff; } } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 4px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #ffffff; background-color: #428bca; } .nav-stacked > li { float: none; } .nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .nav-justified { width: 100%; } .nav-justified > li { float: none; } .nav-justified > li > a { text-align: center; margin-bottom: 5px; } .nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-justified > li { display: table-cell; width: 1%; } .nav-justified > li > a { margin-bottom: 0; } } .nav-tabs-justified { border-bottom: 0; } .nav-tabs-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border: 1px solid #dddddd; } @media (min-width: 768px) { .nav-tabs-justified > li > a { border-bottom: 1px solid #dddddd; border-radius: 4px 4px 0 0; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border-bottom-color: #ffffff; } } .tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar { position: relative; min-height: 65px; margin-bottom: 20px; border: 1px solid transparent; } @media (min-width: 768px) { .navbar { border-radius: 4px; } } @media (min-width: 768px) { .navbar-header { float: left; } } .navbar-collapse { max-height: 340px; overflow-x: visible; padding-right: 15px; padding-left: 15px; border-top: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); -webkit-overflow-scrolling: touch; } .navbar-collapse.in { overflow-y: auto; } @media (min-width: 768px) { .navbar-collapse { width: auto; border-top: 0; box-shadow: none; } .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; } .navbar-collapse.in { overflow-y: visible; } .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { padding-left: 0; padding-right: 0; } } .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: -15px; margin-left: -15px; } @media (min-width: 768px) { .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: 0; margin-left: 0; } } .navbar-static-top { z-index: 1000; border-width: 0 0 1px; } @media (min-width: 768px) { .navbar-static-top { border-radius: 0; } } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; } @media (min-width: 768px) { .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } } .navbar-fixed-top { top: 0; border-width: 0 0 1px; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; border-width: 1px 0 0; } .navbar-brand { float: left; padding: 22.5px 15px; font-size: 18px; line-height: 20px; height: 65px; } .navbar-brand:hover, .navbar-brand:focus { text-decoration: none; } @media (min-width: 768px) { .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { margin-left: -15px; } } .navbar-toggle { position: relative; float: right; margin-right: 15px; padding: 9px 10px; margin-top: 15.5px; margin-bottom: 15.5px; background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 4px; } .navbar-toggle:focus { outline: none; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } @media (min-width: 768px) { .navbar-toggle { display: none; } } .navbar-nav { margin: 11.25px -15px; } .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; } @media (max-width: 767px) { .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; box-shadow: none; } .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; } .navbar-nav .open .dropdown-menu > li > a { line-height: 20px; } .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; } } @media (min-width: 768px) { .navbar-nav { float: left; margin: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { padding-top: 22.5px; padding-bottom: 22.5px; } .navbar-nav.navbar-right:last-child { margin-right: -15px; } } @media (min-width: 768px) { .navbar-left { float: left !important; } .navbar-right { float: right !important; } } .navbar-form { margin-left: -15px; margin-right: -15px; padding: 10px 15px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1) 0 10px rgba(0, 0, 0, 0.175); margin-top: 15.5px; margin-bottom: 15.5px; } @media (min-width: 768px) { .navbar-form .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .navbar-form .form-control { display: inline-block; width: auto; vertical-align: middle; } .navbar-form .input-group > .form-control { width: 100%; } .navbar-form .control-label { margin-bottom: 0; vertical-align: middle; } .navbar-form .radio, .navbar-form .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; padding-left: 0; vertical-align: middle; } .navbar-form .radio input[type="radio"], .navbar-form .checkbox input[type="checkbox"] { float: none; margin-left: 0; } .navbar-form .has-feedback .form-control-feedback { top: 0; } } @media (max-width: 767px) { .navbar-form .form-group { margin-bottom: 5px; } } @media (min-width: 768px) { .navbar-form { width: auto; border: 0; margin-left: 0; margin-right: 0; padding-top: 0; padding-bottom: 0; -webkit-box-shadow: none; box-shadow: none; -webkit-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: none 0 10px rgba(0, 0, 0, 0.175); box-shadow: none 0 10px rgba(0, 0, 0, 0.175); } .navbar-form.navbar-right:last-child { margin-right: -15px; } } .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .navbar-btn { margin-top: 15.5px; margin-bottom: 15.5px; } .navbar-btn.btn-sm { margin-top: 17.5px; margin-bottom: 17.5px; } .navbar-btn.btn-xs { margin-top: 21.5px; margin-bottom: 21.5px; } .navbar-text { margin-top: 22.5px; margin-bottom: 22.5px; } @media (min-width: 768px) { .navbar-text { float: left; margin-left: 15px; margin-right: 15px; } .navbar-text.navbar-right:last-child { margin-right: 0; } } .navbar-default { background-color: #ffffff; border-color: #e4e4e4; } .navbar-default .navbar-brand { color: #999999; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-text { color: #777777; } .navbar-default .navbar-nav > li > a { color: #999999; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-default .navbar-toggle { border-color: #dddddd; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #ffffff; } .navbar-default .navbar-toggle .icon-bar { background-color: #888888; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #e4e4e4; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { background-color: transparent; color: #333333; } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #999999; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #cccccc; background-color: transparent; } } .navbar-default .navbar-link { color: #999999; } .navbar-default .navbar-link:hover { color: #333333; } .navbar-inverse { background-color: #222222; border-color: #080808; } .navbar-inverse .navbar-brand { color: #999999; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-text { color: #999999; } .navbar-inverse .navbar-nav > li > a { color: #999999; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #444444; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #333333; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #333333; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #ffffff; } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { border-color: #101010; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { background-color: #080808; color: #ffffff; } @media (max-width: 767px) { .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { border-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu .divider { background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #999999; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #444444; background-color: transparent; } } .navbar-inverse .navbar-link { color: #999999; } .navbar-inverse .navbar-link:hover { color: #ffffff; } .breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: #f5f5f5; border-radius: 4px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { content: "/\00a0"; padding: 0 5px; color: #cccccc; } .breadcrumb > .active { color: #999999; } .pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { position: relative; float: left; padding: 6px 12px; line-height: 1.42857143; text-decoration: none; color: #e74c3c; background-color: #ffffff; border: 1px solid #dddddd; margin-left: -1px; } .pagination > li:first-child > a, .pagination > li:first-child > span { margin-left: 0; border-bottom-left-radius: 4px; border-top-left-radius: 4px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-bottom-right-radius: 4px; border-top-right-radius: 4px; } .pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus { color: #e74c3c; background-color: #f6f6f6; border-color: #dddddd; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { z-index: 2; color: #ffffff; background-color: #428bca; border-color: #e74c3c; cursor: default; } .pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { color: #999999; background-color: #ffffff; border-color: #dddddd; cursor: not-allowed; } .pagination-lg > li > a, .pagination-lg > li > span { padding: 10px 16px; font-size: 18px; } .pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span { border-bottom-left-radius: 6px; border-top-left-radius: 6px; } .pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span { border-bottom-right-radius: 6px; border-top-right-radius: 6px; } .pagination-sm > li > a, .pagination-sm > li > span { padding: 5px 10px; font-size: 12px; } .pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span { border-bottom-left-radius: 3px; border-top-left-radius: 3px; } .pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span { border-bottom-right-radius: 3px; border-top-right-radius: 3px; } .pager { padding-left: 0; margin: 20px 0; list-style: none; text-align: center; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #f6f6f6; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #999999; background-color: #ffffff; cursor: not-allowed; } .label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; } .label[href]:hover, .label[href]:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .label:empty { display: none; } .btn .label { position: relative; top: -1px; } .label-default { background-color: #999999; } .label-default[href]:hover, .label-default[href]:focus { background-color: #808080; } .label-primary { background-color: #428bca; } .label-primary[href]:hover, .label-primary[href]:focus { background-color: #3071a9; } .label-success { background-color: #5cb85c; } .label-success[href]:hover, .label-success[href]:focus { background-color: #449d44; } .label-info { background-color: #5bc0de; } .label-info[href]:hover, .label-info[href]:focus { background-color: #31b0d5; } .label-warning { background-color: #f0ad4e; } .label-warning[href]:hover, .label-warning[href]:focus { background-color: #ec971f; } .label-danger { background-color: #d9534f; } .label-danger[href]:hover, .label-danger[href]:focus { background-color: #c9302c; } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: bold; color: #ffffff; line-height: 1; vertical-align: baseline; white-space: nowrap; text-align: center; background-color: #999999; border-radius: 10px; } .badge:empty { display: none; } .btn .badge { position: relative; top: -1px; } .btn-xs .badge { top: 0; padding: 1px 5px; } a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } a.list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #e74c3c; background-color: #ffffff; } .nav-pills > li > a > .badge { margin-left: 3px; } .jumbotron { padding: 30px; margin-bottom: 30px; color: inherit; background-color: #eeeeee; } .jumbotron h1, .jumbotron .h1 { color: inherit; } .jumbotron p { margin-bottom: 15px; font-size: 21px; font-weight: 200; } .container .jumbotron { border-radius: 6px; } .jumbotron .container { max-width: 100%; } @media screen and (min-width: 768px) { .jumbotron { padding-top: 48px; padding-bottom: 48px; } .container .jumbotron { padding-left: 60px; padding-right: 60px; } .jumbotron h1, .jumbotron .h1 { font-size: 63px; } } .thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .thumbnail > img, .thumbnail a > img { margin-left: auto; margin-right: auto; } a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: #e74c3c; } .thumbnail .caption { padding: 9px; color: #333333; } .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable { padding-right: 35px; } .alert-dismissable .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { background-color: #dff0d8; border-color: #d6e9c6; color: #3c763d; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #2b542c; } .alert-info { background-color: #d9edf7; border-color: #bce8f1; color: #31708f; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #245269; } .alert-warning { background-color: #fcf8e3; border-color: #faebcc; color: #8a6d3b; } .alert-warning hr { border-top-color: #f7e1b5; } .alert-warning .alert-link { color: #66512c; } .alert-danger { background-color: #f2dede; border-color: #ebccd1; color: #a94442; } .alert-danger hr { border-top-color: #e4b9c0; } .alert-danger .alert-link { color: #843534; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { overflow: hidden; height: 20px; margin-bottom: 20px; background-color: #f5f5f5; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) 0 10px rgba(0, 0, 0, 0.175); } .progress-bar { float: left; width: 0%; height: 100%; font-size: 12px; line-height: 20px; color: #ffffff; text-align: center; background-color: #428bca; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15) 0 10px rgba(0, 0, 0, 0.175); -webkit-transition: width 0.6s ease; transition: width 0.6s ease; } .progress-striped .progress-bar { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 40px 40px; } .progress.active .progress-bar { -webkit-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-bar-success { background-color: #5cb85c; } .progress-striped .progress-bar-success { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-info { background-color: #5bc0de; } .progress-striped .progress-bar-info { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-warning { background-color: #f0ad4e; } .progress-striped .progress-bar-warning { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-danger { background-color: #d9534f; } .progress-striped .progress-bar-danger { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .media, .media-body { overflow: hidden; zoom: 1; } .media, .media .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media-object { display: block; } .media-heading { margin: 0 0 5px; } .media > .pull-left { margin-right: 10px; } .media > .pull-right { margin-left: 10px; } .media-list { padding-left: 0; list-style: none; } .list-group { margin-bottom: 20px; padding-left: 0; } .list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: #ffffff; border: 1px solid #dddddd; } .list-group-item:first-child { border-top-right-radius: 4px; border-top-left-radius: 4px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .list-group-item > .badge { float: right; } .list-group-item > .badge + .badge { margin-right: 5px; } a.list-group-item { color: #555555; } a.list-group-item .list-group-item-heading { color: #333333; } a.list-group-item:hover, a.list-group-item:focus { text-decoration: none; background-color: #f5f5f5; } a.list-group-item.active, a.list-group-item.active:hover, a.list-group-item.active:focus { z-index: 2; color: #ffffff; background-color: #428bca; border-color: #428bca; } a.list-group-item.active .list-group-item-heading, a.list-group-item.active:hover .list-group-item-heading, a.list-group-item.active:focus .list-group-item-heading { color: inherit; } a.list-group-item.active .list-group-item-text, a.list-group-item.active:hover .list-group-item-text, a.list-group-item.active:focus .list-group-item-text { color: #e1edf7; } .list-group-item-success { color: #3c763d; background-color: #dff0d8; } a.list-group-item-success { color: #3c763d; } a.list-group-item-success .list-group-item-heading { color: inherit; } a.list-group-item-success:hover, a.list-group-item-success:focus { color: #3c763d; background-color: #d0e9c6; } a.list-group-item-success.active, a.list-group-item-success.active:hover, a.list-group-item-success.active:focus { color: #fff; background-color: #3c763d; border-color: #3c763d; } .list-group-item-info { color: #31708f; background-color: #d9edf7; } a.list-group-item-info { color: #31708f; } a.list-group-item-info .list-group-item-heading { color: inherit; } a.list-group-item-info:hover, a.list-group-item-info:focus { color: #31708f; background-color: #c4e3f3; } a.list-group-item-info.active, a.list-group-item-info.active:hover, a.list-group-item-info.active:focus { color: #fff; background-color: #31708f; border-color: #31708f; } .list-group-item-warning { color: #8a6d3b; background-color: #fcf8e3; } a.list-group-item-warning { color: #8a6d3b; } a.list-group-item-warning .list-group-item-heading { color: inherit; } a.list-group-item-warning:hover, a.list-group-item-warning:focus { color: #8a6d3b; background-color: #faf2cc; } a.list-group-item-warning.active, a.list-group-item-warning.active:hover, a.list-group-item-warning.active:focus { color: #fff; background-color: #8a6d3b; border-color: #8a6d3b; } .list-group-item-danger { color: #a94442; background-color: #f2dede; } a.list-group-item-danger { color: #a94442; } a.list-group-item-danger .list-group-item-heading { color: inherit; } a.list-group-item-danger:hover, a.list-group-item-danger:focus { color: #a94442; background-color: #ebcccc; } a.list-group-item-danger.active, a.list-group-item-danger.active:hover, a.list-group-item-danger.active:focus { color: #fff; background-color: #a94442; border-color: #a94442; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } .panel { margin-bottom: 20px; background-color: #ffffff; border: 1px solid transparent; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) 0 10px rgba(0, 0, 0, 0.175); } .panel-body { padding: 15px; } .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel-heading > .dropdown .dropdown-toggle { color: inherit; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit; } .panel-title > a { color: inherit; } .panel-footer { padding: 10px 15px; background-color: #f6f6f6; border-top: 1px solid #e9e9e9; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .list-group { margin-bottom: 0; } .panel > .list-group .list-group-item { border-width: 1px 0; border-radius: 0; } .panel > .list-group:first-child .list-group-item:first-child { border-top: 0; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel > .list-group:last-child .list-group-item:last-child { border-bottom: 0; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; } .panel > .table, .panel > .table-responsive > .table { margin-bottom: 0; } .panel > .table:first-child, .panel > .table-responsive:first-child > .table:first-child { border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { border-top-left-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { border-top-right-radius: 3px; } .panel > .table:last-child, .panel > .table-responsive:last-child > .table:last-child { border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { border-bottom-right-radius: 3px; } .panel > .panel-body + .table, .panel > .panel-body + .table-responsive { border-top: 1px solid #dddddd; } .panel > .table > tbody:first-child > tr:first-child th, .panel > .table > tbody:first-child > tr:first-child td { border-top: 0; } .panel > .table-bordered, .panel > .table-responsive > .table-bordered { border: 0; } .panel > .table-bordered > thead > tr > th:first-child, .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, .panel > .table-bordered > tbody > tr > th:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, .panel > .table-bordered > tfoot > tr > th:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, .panel > .table-bordered > thead > tr > td:first-child, .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, .panel > .table-bordered > tbody > tr > td:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, .panel > .table-bordered > tfoot > tr > td:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .panel > .table-bordered > thead > tr > th:last-child, .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, .panel > .table-bordered > tbody > tr > th:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, .panel > .table-bordered > tfoot > tr > th:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, .panel > .table-bordered > thead > tr > td:last-child, .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, .panel > .table-bordered > tbody > tr > td:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, .panel > .table-bordered > tfoot > tr > td:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .panel > .table-bordered > thead > tr:first-child > td, .panel > .table-responsive > .table-bordered > thead > tr:first-child > td, .panel > .table-bordered > tbody > tr:first-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, .panel > .table-bordered > thead > tr:first-child > th, .panel > .table-responsive > .table-bordered > thead > tr:first-child > th, .panel > .table-bordered > tbody > tr:first-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { border-bottom: 0; } .panel > .table-bordered > tbody > tr:last-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, .panel > .table-bordered > tfoot > tr:last-child > td, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, .panel > .table-bordered > tbody > tr:last-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, .panel > .table-bordered > tfoot > tr:last-child > th, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { border-bottom: 0; } .panel > .table-responsive { border: 0; margin-bottom: 0; } .panel-group { margin-bottom: 20px; } .panel-group .panel { margin-bottom: 0; border-radius: 4px; overflow: hidden; } .panel-group .panel + .panel { margin-top: 5px; } .panel-group .panel-heading { border-bottom: 0; } .panel-group .panel-heading + .panel-collapse .panel-body { border-top: 1px solid #e9e9e9; } .panel-group .panel-footer { border-top: 0; } .panel-group .panel-footer + .panel-collapse .panel-body { border-bottom: 1px solid #e9e9e9; } .panel-default { border-color: #e9e9e9; } .panel-default > .panel-heading { color: #333333; background-color: #f6f6f6; border-color: #e9e9e9; } .panel-default > .panel-heading + .panel-collapse .panel-body { border-top-color: #e9e9e9; } .panel-default > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #e9e9e9; } .panel-primary { border-color: #428bca; } .panel-primary > .panel-heading { color: #ffffff; background-color: #428bca; border-color: #428bca; } .panel-primary > .panel-heading + .panel-collapse .panel-body { border-top-color: #428bca; } .panel-primary > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #428bca; } .panel-success { border-color: #d6e9c6; } .panel-success > .panel-heading { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; } .panel-success > .panel-heading + .panel-collapse .panel-body { border-top-color: #d6e9c6; } .panel-success > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #d6e9c6; } .panel-info { border-color: #bce8f1; } .panel-info > .panel-heading { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; } .panel-info > .panel-heading + .panel-collapse .panel-body { border-top-color: #bce8f1; } .panel-info > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #bce8f1; } .panel-warning { border-color: #faebcc; } .panel-warning > .panel-heading { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; } .panel-warning > .panel-heading + .panel-collapse .panel-body { border-top-color: #faebcc; } .panel-warning > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #faebcc; } .panel-danger { border-color: #ebccd1; } .panel-danger > .panel-heading { color: #a94442; background-color: #f2dede; border-color: #ebccd1; } .panel-danger > .panel-heading + .panel-collapse .panel-body { border-top-color: #ebccd1; } .panel-danger > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #ebccd1; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f6f6f6; border: 1px solid #e9e9e9; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05) 0 10px rgba(0, 0, 0, 0.175); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05) 0 10px rgba(0, 0, 0, 0.175); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-lg { padding: 24px; border-radius: 6px; } .well-sm { padding: 9px; border-radius: 3px; } .close { float: right; font-size: 21px; font-weight: bold; line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.5; filter: alpha(opacity=50); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .modal-open { overflow: hidden; } .modal { display: none; overflow: auto; overflow-y: scroll; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; -webkit-overflow-scrolling: touch; outline: 0; } .modal.fade .modal-dialog { -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); transform: translate(0, -25%); -webkit-transition: -webkit-transform 0.3s ease-out; -moz-transition: -moz-transform 0.3s ease-out; -o-transition: -o-transform 0.3s ease-out; transition: transform 0.3s ease-out; } .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); transform: translate(0, 0); } .modal-dialog { position: relative; width: auto; margin: 10px; } .modal-content { position: relative; background-color: #ffffff; border: 1px solid #999999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5) 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5) 0 10px rgba(0, 0, 0, 0.175); background-clip: padding-box; outline: none; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000000; } .modal-backdrop.fade { opacity: 0; filter: alpha(opacity=0); } .modal-backdrop.in { opacity: 0.5; filter: alpha(opacity=50); } .modal-header { padding: 15px; border-bottom: 1px solid #e5e5e5; min-height: 16.42857143px; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.42857143; } .modal-body { position: relative; padding: 20px; } .modal-footer { margin-top: 15px; padding: 19px 20px 20px; text-align: right; border-top: 1px solid #e5e5e5; } .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } @media (min-width: 768px) { .modal-dialog { width: 600px; margin: 30px auto; } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) 0 10px rgba(0, 0, 0, 0.175); } .modal-sm { width: 300px; } } @media (min-width: 992px) { .modal-lg { width: 900px; } } .tooltip { position: absolute; z-index: 1030; display: block; visibility: visible; font-size: 12px; line-height: 1.4; opacity: 0; filter: alpha(opacity=0); } .tooltip.in { opacity: 0.9; filter: alpha(opacity=90); } .tooltip.top { margin-top: -3px; padding: 5px 0; } .tooltip.right { margin-left: 3px; padding: 0 5px; } .tooltip.bottom { margin-top: 3px; padding: 5px 0; } .tooltip.left { margin-left: -3px; padding: 0 5px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #ffffff; text-align: center; text-decoration: none; background-color: #2a2a2a; border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-top-color: #2a2a2a; } .tooltip.top-left .tooltip-arrow { bottom: 0; left: 5px; border-width: 5px 5px 0; border-top-color: #2a2a2a; } .tooltip.top-right .tooltip-arrow { bottom: 0; right: 5px; border-width: 5px 5px 0; border-top-color: #2a2a2a; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: #2a2a2a; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: #2a2a2a; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-bottom-color: #2a2a2a; } .tooltip.bottom-left .tooltip-arrow { top: 0; left: 5px; border-width: 0 5px 5px; border-bottom-color: #2a2a2a; } .tooltip.bottom-right .tooltip-arrow { top: 0; right: 5px; border-width: 0 5px 5px; border-bottom-color: #2a2a2a; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; max-width: 276px; padding: 1px; text-align: left; background-color: #ffffff; background-clip: padding-box; border: 1px solid #cccccc; border: 1px solid #e74c3c; border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) 0 10px rgba(0, 0, 0, 0.175); white-space: normal; } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { margin: 0; padding: 8px 14px; font-size: 14px; font-weight: normal; line-height: 18px; background-color: #ffffff; border-bottom: 1px solid #f2f2f2; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover > .arrow, .popover > .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover > .arrow { border-width: 11px; } .popover > .arrow:after { border-width: 10px; content: ""; } .popover.top > .arrow { left: 50%; margin-left: -11px; border-bottom-width: 0; border-top-color: #999999; border-top-color: #e74c3c; bottom: -11px; } .popover.top > .arrow:after { content: " "; bottom: 1px; margin-left: -10px; border-bottom-width: 0; border-top-color: #e74c3c; } .popover.right > .arrow { top: 50%; left: -11px; margin-top: -11px; border-left-width: 0; border-right-color: #999999; border-right-color: #e74c3c; } .popover.right > .arrow:after { content: " "; left: 1px; bottom: -10px; border-left-width: 0; border-right-color: #e74c3c; } .popover.bottom > .arrow { left: 50%; margin-left: -11px; border-top-width: 0; border-bottom-color: #999999; border-bottom-color: #e74c3c; top: -11px; } .popover.bottom > .arrow:after { content: " "; top: 1px; margin-left: -10px; border-top-width: 0; border-bottom-color: #e74c3c; } .popover.left > .arrow { top: 50%; right: -11px; margin-top: -11px; border-right-width: 0; border-left-color: #999999; border-left-color: #e74c3c; } .popover.left > .arrow:after { content: " "; right: 1px; border-right-width: 0; border-left-color: #e74c3c; bottom: -10px; } .carousel { position: relative; } .carousel-inner { position: relative; overflow: hidden; width: 100%; } .carousel-inner > .item { display: none; position: relative; -webkit-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { line-height: 1; } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; left: 0; bottom: 0; width: 15%; opacity: 0.5; filter: alpha(opacity=50); font-size: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-control.left { background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.5) 0%), color-stop(rgba(0, 0, 0, 0.0001) 100%)); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } .carousel-control.right { left: auto; right: 0; background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.0001) 0%), color-stop(rgba(0, 0, 0, 0.5) 100%)); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } .carousel-control:hover, .carousel-control:focus { outline: none; color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-control .icon-prev, .carousel-control .icon-next, .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right { position: absolute; top: 50%; z-index: 5; display: inline-block; } .carousel-control .icon-prev, .carousel-control .glyphicon-chevron-left { left: 50%; } .carousel-control .icon-next, .carousel-control .glyphicon-chevron-right { right: 50%; } .carousel-control .icon-prev, .carousel-control .icon-next { width: 20px; height: 20px; margin-top: -10px; margin-left: -10px; font-family: serif; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 60%; margin-left: -30%; padding-left: 0; list-style: none; text-align: center; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; border: 1px solid #ffffff; border-radius: 10px; cursor: pointer; background-color: #000 \9; background-color: rgba(0, 0, 0, 0); } .carousel-indicators .active { margin: 0; width: 12px; height: 12px; background-color: #ffffff; } .carousel-caption { position: absolute; left: 15%; right: 15%; bottom: 20px; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right, .carousel-control .icon-prev, .carousel-control .icon-next { width: 30px; height: 30px; margin-top: -15px; margin-left: -15px; font-size: 30px; } .carousel-caption { left: 20%; right: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 20px; } } .clearfix:before, .clearfix:after, .container:before, .container:after, .container-fluid:before, .container-fluid:after, .row:before, .row:after, .form-horizontal .form-group:before, .form-horizontal .form-group:after, .btn-toolbar:before, .btn-toolbar:after, .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after, .nav:before, .nav:after, .navbar:before, .navbar:after, .navbar-header:before, .navbar-header:after, .navbar-collapse:before, .navbar-collapse:after, .pager:before, .pager:after, .panel-body:before, .panel-body:after, .modal-footer:before, .modal-footer:after { content: " "; display: table; } .clearfix:after, .container:after, .container-fluid:after, .row:after, .form-horizontal .form-group:after, .btn-toolbar:after, .btn-group-vertical > .btn-group:after, .nav:after, .navbar:after, .navbar-header:after, .navbar-collapse:after, .pager:after, .panel-body:after, .modal-footer:after { clear: both; } .center-block { display: block; margin-left: auto; margin-right: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .hidden { display: none !important; visibility: hidden !important; } .affix { position: fixed; } @-ms-viewport { width: device-width; } .visible-xs, .visible-sm, .visible-md, .visible-lg { display: none !important; } @media (max-width: 767px) { .visible-xs { display: block !important; } table.visible-xs { display: table; } tr.visible-xs { display: table-row !important; } th.visible-xs, td.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } table.visible-sm { display: table; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } table.visible-md { display: table; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-lg { display: block !important; } table.visible-lg { display: table; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } } @media (max-width: 767px) { .hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg { display: none !important; } } .visible-print { display: none !important; } @media print { .visible-print { display: block !important; } table.visible-print { display: table; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } } @media print { .hidden-print { display: none !important; } } /*------------------------------------------------------------------ Project: Paperclip Author: Yevgeny S. URL: https://twitter.com/YevSim Version: 1.0 Created: 11/03/2014 Last change: 01/04/2014 -------------------------------------------------------------------*/ /* ===== Helper ===== */ .delay-1 { -webkit-animation-delay: 300ms; -moz-animation-delay: none; animation-delay: 300ms; } .delay-2 { -webkit-animation-delay: 600ms; -moz-animation-delay: none; animation-delay: 600ms; } .delay-3 { -webkit-animation-delay: 900ms; -moz-animation-delay: none; animation-delay: 900ms; } .delay-4 { -webkit-animation-delay: 1200ms; -moz-animation-delay: none; animation-delay: 1200ms; } .delay-5 { -webkit-animation-delay: 1500ms; -moz-animation-delay: none; animation-delay: 1500ms; } .delay-6 { -webkit-animation-delay: 1800ms; -moz-animation-delay: none; animation-delay: 1800ms; } .delay-7 { -webkit-animation-delay: 2100ms; -moz-animation-delay: none; animation-delay: 2100ms; } .delay-8 { -webkit-animation-delay: 2400ms; -moz-animation-delay: none; animation-delay: 2400ms; } .box-shadow-none { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .first-child { margin-top: 0; } .second-child { margin-top: 0; } @media (max-width: 767px) { /* Adjusting for mobile */ .second-child { margin-top: 20px; } } .list-style-none { list-style: none; padding-left: 0; } .margin-bottom-20 { margin-bottom: 20px; } hr.arrow-down { margin-top: 40px; margin-bottom: 40px; position: relative; border-top: 1px solid #e9e9e9; border-bottom: 15px solid #f6f6f6; } hr.arrow-down:after { content: url(../img/arrow.png); position: absolute; left: 50%; margin-left: -10px; top: -5px; } /*** Browser ***/ .browser { position: relative; border: 1px solid #b8b8b8; border-radius: 0 0 2px 2px; background: white; -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 0 10px rgba(0, 0, 0, 0.175); } .browser:before { content: ""; position: absolute; top: -29px; height: 28px; left: -1px; right: -1px; border: 1px solid #b8b8b8; border-bottom: 0; border-radius: 2px 2px 0 0; background-image: -webkit-linear-gradient(top, #ededed 0%, #d1d1d1 100%); background-image: -moz-linear-gradient(top, #ededed 0%, #d1d1d1 100%); background-image: -o-linear-gradient(top, #ededed 0%, #d1d1d1 100%); background-image: linear-gradient(top, #ededed 0%, #d1d1d1 100%); text-align: center; line-height: 28px; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.175); box-shadow: 0 0 5px rgba(0, 0, 0, 0.175); } /*** Responsive iFrames ***/ .video-container { position: relative; padding-bottom: 56.2%; margin-bottom: 10px; height: 0; overflow: hidden; } .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .google-maps { position: relative; padding-bottom: 90%; margin-bottom: 10px; height: 0; overflow: hidden; } .google-maps iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } /* ===== Colors ===== */ .text-red { color: #ed3e49; } .text-blue { color: #2babcf; } .bg-red { background: #ed3e49; } .bg-blue { background: #2babcf; } /* ===== Scaffolding ===== */ /* ===== Typography ====== */ /* ===== Tables ===== */ .table > thead > tr > td.yellow, .table > tbody > tr > td.yellow, .table > tfoot > tr > td.yellow, .table > thead > tr > th.yellow, .table > tbody > tr > th.yellow, .table > tfoot > tr > th.yellow, .table > thead > tr.yellow > td, .table > tbody > tr.yellow > td, .table > tfoot > tr.yellow > td, .table > thead > tr.yellow > th, .table > tbody > tr.yellow > th, .table > tfoot > tr.yellow > th { background-color: #fbfbcb; } .table-hover > tbody > tr > td.yellow:hover, .table-hover > tbody > tr > th.yellow:hover, .table-hover > tbody > tr.yellow:hover > td, .table-hover > tbody > tr.yellow:hover > th { background-color: #f8f79b; } /* ===== Buttons ===== */ .btn-red, .btn-red:hover, .btn-blue, .btn-blue:hover { color: #fff !important; } .btn-lg, .btn-group-lg > .btn { font-size: 14px; border-radius: 4px; } /*** Button Red ***/ .btn-red { background: #ed3e49; background-image: -webkit-linear-gradient(top, #f05f68 0%, #ed3e49 100%); background-image: -moz-linear-gradient(top, #f05f68 0%, #ed3e49 100%); background-image: -o-linear-gradient(top, #f05f68 0%, #ed3e49 100%); background-image: linear-gradient(top, #f05f68 0%, #ed3e49 100%); border-color: #e31522; } .btn-red:hover, .btn-red:focus, .btn-red:active { background: #ed3e49; background-image: none; border-color: #cc131f; } /*** Button Blue ***/ .btn-blue { background-color: #2babcf; background-image: -webkit-linear-gradient(top, #45b8d8 0%, #2babcf 100%); background-image: -moz-linear-gradient(top, #45b8d8 0%, #2babcf 100%); background-image: -o-linear-gradient(top, #45b8d8 0%, #2babcf 100%); background-image: linear-gradient(top, #45b8d8 0%, #2babcf 100%); border-color: #2288a5; } .btn-blue:hover, .btn-blue:focus, .btn-blue:active { background-image: none; border-color: #1e7790; } /* ===== Forms ===== */ .form-control { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .form-control:focus { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } /* ===== Dropdowns ===== */ .dropdown-menu { padding: 0; -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.175); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.175); } @media (min-width: 768px) { .navbar-nav > li > .dropdown-menu { margin-top: 3px; } .navbar-nav > li > .dropdown-menu:before { content: ""; position: absolute; top: -3px; height: 0; left: 0; width: 100%; border-top: 3px solid #e74c3c; } .dropdown-menu > li > a { padding: 7px 30px 7px 10px; border-bottom: 1px solid #eee; -webkit-transition: padding 300ms; -moz-transition: padding 300ms; transition: padding 300ms; } .dropdown-menu > li:last-child > a { border-bottom: 0; } .dropdown-menu > li > a:hover { padding: 7px 20px 7px 20px; } } .dropdown-menu > li > a:before { content: "\f105"; font-family: FontAwesome; margin-right: 5px; opacity: 0; } .dropdown-menu > li > a:hover:before { opacity: 1; } /* ===== Container Sizes ===== */ /* ===== Navbar ===== */ .navbar-default { -moz-box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.175); box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.175); } /*** Navbar Brand ***/ .navbar-brand { font-family: 'Ubuntu', sans-serif; font-weight: 400; font-size: 22px; } .navbar-brand > img { height: 28px; width: auto; } /*** Navbar Links ***/ .navbar-default .navbar-nav > li > a { text-transform: uppercase; } @media (min-width: 768px) { .navbar-default .navbar-nav > li > a:before { content: ""; position: absolute; top: -3px; height: 0; left: 0; width: 100%; border-top: 3px solid #ed3e49; -webkit-transition: top 100ms; -moz-transition: top 100ms; transition: top 100ms; } .navbar-default .navbar-nav > li > a:hover:before, .navbar-default .navbar-nav > li > a:focus:before { top: 0; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { padding-top: 19.5px; border-top: 3px solid #ed3e49; } .navbar-default .navbar-nav > .active > a:before, .navbar-default .navbar-nav > .active > a:hover:before, .navbar-default .navbar-nav > .active > a:focus:before { top: -3px; } } /*** Navbar Toggle ***/ .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { border-color: #bbb; } .navbar-default .navbar-toggle:hover .icon-bar, .navbar-default .navbar-toggle:focus .icon-bar { background-color: #aaa; } /*** Navbar Search ***/ .navbar-nav > li #navbar-search-box { position: absolute; right: 0; bottom: -69px; width: 250px; padding: 15px; background: white; border: 1px solid #ddd; border-top: 3px solid #e74c3c; border-radius: 0 0 4px 4px; -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.175); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.175); } .navbar-nav > #navbar-search > a > i.fa-times { margin: 0 1px; } /* ===== Navs ===== */ /*** Tabs ***/ .nav-tabs { border-bottom: 3px solid #e74c3c; margin-bottom: 15px; } .nav-tabs > li { margin-bottom: 0; } .nav-tabs > li > a { border: 1px solid transparent; border-bottom: 0; } .nav-tabs > li > a:hover { border-color: #f6f6f6; background: #f6f6f6; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { background: #e74c3c; background-image: -webkit-linear-gradient(top, #3db5d7 0%, #e74c3c 100%); background-image: -moz-linear-gradient(top, #3db5d7 0%, #e74c3c 100%); background-image: -o-linear-gradient(top, #3db5d7 0%, #e74c3c 100%); background-image: linear-gradient(top, #3db5d7 0%, #e74c3c 100%); color: white; border: 1px solid transparent; border-bottom: 0; } /*** Tabs Justified ***/ .nav-tabs.nav-justified { border-bottom: 0; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { background: #e74c3c; background-image: -webkit-linear-gradient(top, #3db5d7 0%, #e74c3c 100%); background-image: -moz-linear-gradient(top, #3db5d7 0%, #e74c3c 100%); background-image: -o-linear-gradient(top, #3db5d7 0%, #e74c3c 100%); background-image: linear-gradient(top, #3db5d7 0%, #e74c3c 100%); color: white; border: 0; } @media (min-width: 768px) { .nav-tabs.nav-justified { border-bottom: 3px solid #e74c3c; } .nav-tabs.nav-justified > li > a { border-bottom: 0; } } /*** Pills ***/ .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { background-image: -webkit-linear-gradient(top, #45b8d8 0%, #e74c3c 100%); background-image: -moz-linear-gradient(top, #45b8d8 0%, #e74c3c 100%); background-image: -o-linear-gradient(top, #45b8d8 0%, #e74c3c 100%); background-image: linear-gradient(top, #45b8d8 0%, #e74c3c 100%); } /* ===== Pagination ===== */ .pagination > li > a, .pagination > li > span { margin: 0 1px; border-radius: 4px; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { background-color: #e74c3c; background-image: -webkit-linear-gradient(top, #45b8d8 0%, #e74c3c 100%); background-image: -moz-linear-gradient(top, #45b8d8 0%, #e74c3c 100%); background-image: -o-linear-gradient(top, #45b8d8 0%, #e74c3c 100%); background-image: linear-gradient(top, #45b8d8 0%, #e74c3c 100%); } /* ===== Tooltips ===== */ .tooltip-inner { padding: 7px; border-radius: 2px; } /* ===== Popovers ===== */ .popover { padding: 0; border-width: 3px; border-radius: 4px; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .popover-title { border-bottom: 1px solid #e9e9e9; border-radius: 4px 4px 0 0; font-family: 'Source Sans Pro', sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; font-weight: 600; } /* ===== Panels ===== */ .panel-heading { text-transform: uppercase; } /*** Panel Red ***/ .panel-red { border-color: #ed3e49; } .panel-red > .panel-heading { color: #fff; background-color: #ef555f; border-color: #ef555f; } .panel-red > .panel-heading + .panel-collapse .panel-body { border-top-color: #ef555f; } .panel-red > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #ef555f; } .panel-red > .panel-footer { background-color: #ef555f; border-top: 1px solid #ef555f; color: white; } /*** Panel Blue ***/ .panel-blue { border-color: #2babcf; } .panel-blue > .panel-heading { color: #fff; background-color: #3db5d7; border-color: #3db5d7; } .panel-blue > .panel-heading + .panel-collapse .panel-body { border-top-color: #3db5d7; } .panel-blue > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #3db5d7; } .panel-blue > .panel-footer { background-color: #3db5d7; border-top: 1px solid #3db5d7; color: white; } /*** Accordion ***/ .panel-group .panel-heading { position: relative; padding: 0; } .panel-group .panel-heading > a { position: relative; display: block; padding: 10px 15px; color: inherit; text-decoration: none; text-transform: uppercase; } .panel-group .panel-heading > a:after { position: absolute; right: 10px; height: 20px; width: 20px; content: "\f107"; background: #e4e4e4; border-radius: 20px; text-align: center; line-height: 20px; font-family: FontAwesome; color: white; } .panel-group .panel-heading > .collapsed:after { content: "\f105" !important; } /* ===== Wells ===== */ .well { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } /* ===== Carousel ===== */ /*** Slideshow controls ***/ a.carousel-arrow { height: 50px; width: 50px; border-radius: 50px; line-height: 50px; text-align: center; position: absolute; display: block; top: 50%; margin-top: -25px; background: transparent; color: transparent; font-size: 32px; font-weight: 300; cursor: pointer; -webkit-transition: background 300ms, color 300ms; transition: background 300ms, color 300ms; } .carousel:hover a.carousel-arrow { background: rgba(0, 0, 0, 0.5); color: #FFF; } .carousel a.carousel-arrow:hover { background: rgba(0, 0, 0, 0.7); } a.carousel-arrow:hover, a.carousel-arrow:active { text-decoration: none; } a.carousel-arrow-prev { left: 10px; right: auto; padding-right: 5px; } a.carousel-arrow-next { right: 10px; left: auto; padding-left: 5px; } /* ===== Info Boards ==== */ .info-board { margin: 20px 0; padding: 15px 30px 15px 15px; border-left: 5px solid #e9e9e9; } .info-board h4 { margin-top: 0; } .info-board p:last-child { margin-bottom: 0; } /* 1. Info board red */ .info-board-red { background-color: #fef9f9; border-color: #ef555f; } /* 2. Info board blue */ .info-board-blue { background-color: #eef9fc; border-color: #2babcf; } /* ===== Topic Header ===== */ .topic { margin-top: -30px; margin-bottom: 40px; border-bottom: 1px solid #eee; background: #f6f6f6; } .topic h3 { display: inline-block; margin: 0; padding: 23px 0; font-size: 16px; } .topic .breadcrumb { margin-bottom: 0; padding: 21px 0; background: transparent; } /* ===== Headline ===== */ .headline { display: block; position: relative; margin-bottom: 20px; } .headline > span { display: inline-block; position: relative; background: white; padding-right: 15px; } .headline:after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; border: 0; border-top: 1px solid #e9e9e9; z-index: -1; } /* ===== Back to Top link ===== */ .backtotop { background: #d0d0d0; padding: 10px 15px; font-size: 18px; color: #FFF; border-radius: 3px; -webkit-transition: background 300ms; -moz-transition: background 300ms; transition: background 300ms; } .backtotop:hover { background: #c3c3c3; } /* ===== Rating ===== */ .rating { display: inline-block; } .rating li { margin: 0; padding: 0; font-size: 16px; color: #F7C41F; } /* Social Links */ .social { margin-bottom: 15px; } .social > ul, .social > ul > li { margin: 0 0 10px; padding: 0; } .social li > a { display: inline-block; height: 34px; width: 34px; border-radius: 34px; line-height: 34px; text-align: center; background: #f6f6f6; border: 1px solid #e9e9e9; color: #555555; transition: background 300ms, color 300ms; -webkit-transition: background 300ms, color 300ms; } .social li:hover > a { color: #fff; border-color: transparent; } /*** Social Large ***/ .social-lg li > a { height: 45px; width: 45px; border-radius: 45px; line-height: 45px; text-align: center; } /*** Social Small ***/ .social-sm li > a { height: 30px; width: 30px; border-radius: 30px; line-height: 30px; text-align: center; } .social li > a.rss:hover { background: #ff9900; } .social li > a.facebook:hover { background: #3B5998; } .social li > a.twitter:hover { background: #1dcaff; } .social li > a.plus:hover { background: #dd4b39; } .social li > a.vk:hover { background: #3f628a; } .social li > a.pinterest:hover { background: #c92026; } .social li > a.vimeo:hover { background: #446d82; } .social li > a.github:hover { background: #657e8c; } .social li > a.linkedin:hover { background: #0c7bb3; } .social li > a.dropbox:hover { background: #4fa3e3; } .social li > a.youtube:hover { background: #ed413e; } /* ===== Sidebar ===== */ .bs-sidebar { margin-bottom: 50px; } .bs-sidebar.affix { position: static; } @media (min-width: 992px) { .bs-sidebar .nav > .active > ul { display: block; } .bs-sidebar.affix, .bs-sidebar.affix-bottom { width: 213px; } .bs-sidebar.affix { position: fixed; top: 110px; } .bs-sidebar.affix-bottom { position: absolute; } } @media (min-width: 1200px) { .bs-sidebar.affix-bottom, .bs-sidebar.affix { width: 220px; } } /* ===== General ===== */ html, body { height: 100%; } /* ===== Wrapper ===== */ .wrapper { min-height: 100%; height: auto !important; /* for older versions of IE */ height: 100%; padding-top: 95px; /* navbar height + margin */ margin-bottom: -379px; /* footer height + margin */ padding-bottom: 379px; /* footer height + margin */ } /* ===== Homepage Slider ===== */ .home-slider { margin-top: -30px; } .home-slider .carousel-inner > .item { padding: 80px 0 0; height: 490px; overflow: hidden; background-color: #f6f6f6; background-repeat: no-repeat; background-position: center center; background-size: cover !important; } #item-1 { background-image: url(../img/image-2.png); background-position: bottom center; } #item-2 { background-image: url(../img/image-3.png); } #item-3 { background-image: url(../img/image-4.png); } /*** First Slider ***/ .home-slider h3 { color: #ed3e49; } .home-slider p { margin: 35px 0; line-height: 1.5; } .home-slider ul { list-style-type: none; padding: 0; } /*** Second Slider ***/ .home-slider #item-2 ul { margin-top: 20px; } .home-slider #item-2 ul > li { text-align: right; } .home-slider #item-2 ul > li > span { display: inline-block; margin-bottom: 3px; padding: 3px 15px; background: rgba(237, 62, 73, 0.9); color: white; -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.175); -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.175); box-shadow: 0 0 10px rgba(0, 0, 0, 0.175); } .home-slider #item-2 ul.string > li > span { background: rgba(43, 171, 207, 0.9); } /*** Third Slider ***/ .home-slider #item-3 ul { margin: 30px 0; } .home-slider #item-3 ul > li { font-size: 18px; padding: 5px 0; } .home-slider #item-3 ul > li > i { color: #e74c3c; } .home-slider #item-3 img { max-width: 300px; margin: 0 auto; } @media (max-width: 992px) { /* Adjusting for small devices */ .home-slider .carousel-inner > .item { padding-top: 50px; } } @media (max-width: 767px) { /* Adjusting for mobile */ .home-slider .carousel-inner > .item { padding-top: 50px; text-align: center; } .home-slider #item-2 ul > li { text-align: left; } .home-slider #item-2 ul > li > span { font-size: 22px; margin-bottom: 7px; } .home-slider #item-3 ul { text-align: left; margin-left: 50px; } } /* ===== Homepage Fullscreen ===== */ .fullscreen { min-height: 100%; height: auto !important; /* for older versions of IE */ height: 100%; padding-top: 95px; /* navbar height + margin */ margin-bottom: -93px; /* footer height + margin */ padding-bottom: 123px; /* footer height + margin */ background: #f6f6f6 url(../img/image-5.jpg) no-repeat center center; background-size: cover; color: white; text-shadow: 1px 1px 2px rgba(100, 100, 100, 0.5); } .fullscreen h1 { margin-top: 70px; } .fullscreen hr { padding-bottom: 3px; border-top: 1px solid white; border-bottom: 1px solid white; } .fullscreen h3 { font-size: 22px; } .fullscreen .btn-default { background: transparent; border: 2px solid white; color: white; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; margin-top: 30px; -webkit-transition: background 300ms, color 300ms; -moz-transition: background 300ms, color 300ms; transition: background 300ms, color 300ms; } .fullscreen .btn-default:hover { background: white; color: #333333; text-shadow: none; } @media (max-width: 992px) { /* Adjusting for small devices */ .fullscreen h1 { margin-top: 30px; } } @media (max-width: 767px) { /* Adjusting for mobile */ .fullscreen { background-image: url(../img/image-alt-5.jpg); } } /* ===== Home Services ===== */ .home-services { margin-bottom: 50px; background: #ed3e49; color: white; } .home-services ul { list-style-type: none; margin: 0; padding: 0; } .home-services li { float: left; width: 24%; padding: 20px 3px; border-right: 1px solid #dc2d38; text-align: center; cursor: pointer; overflow: hidden; white-space: nowrap; /* to avoid cell breaking during expanding on hover */ -webkit-transition: width 300ms; -moz-transition: width 300ms; transition: width 300ms; } .home-services li:first-child { border-left: 1px solid #dc2d38; } .home-services ul:hover li { width: 20%; } .home-services ul:hover > li:hover { width: 36%; } .home-services li i { font-size: 22px; } .home-services li p { margin: 10px 0 0; text-transform: uppercase; } .home-services li span { display: none; } .home-services li:hover span { display: inline-block; } .home-services .lead { margin: 0; line-height: 93px; } @media (max-width: 992px) { /* Adjusting for small devices */ .home-services ul { text-align: center; } } @media (max-width: 767px) { /* Adjusting for mobile */ .home-services li { display: block; float: none; width: 100%; border-right: 0; border-bottom: 1px solid #dc2d38; } .home-services li:first-child { border-left: 0; } .home-services ul:hover li { width: 100%; } .home-services ul:hover > li:hover { width: 100%; } } /* ===== Browser Showcase ===== */ .browser-showcase { margin-top: 40px; } /* ===== Main Services ===== */ .main-services { border-top: 1px solid #ddd; padding: 50px 0; } /* ===== Responsive Showcase ===== */ .responsive-showcase { padding: 50px 0; background: #f6f6f6; background-image: -webkit-linear-gradient(top, #f6f6f6 0%, #ffffff 150px); background-image: -moz-linear-gradient(top, #f6f6f6 0%, #ffffff 150px); background-image: -o-linear-gradient(top, #f6f6f6 0%, #ffffff 150px); background-image: linear-gradient(top, #f6f6f6 0%, #ffffff 150px); border-top: 1px solid #ddd; } @media (min-width: 768px) { .responsive-showcase { height: 480px; padding: 70px 0; overflow: hidden; } } .responsive-showcase .lead { margin: 20px 0 25px; font-size: 16px; } .responsive-showcase ul { margin-top: 20px; } .responsive-showcase ul > li > i { display: block; padding: 5px; font-size: 28px; cursor: pointer; } .responsive-showcase img { margin: 0 auto; } .responsive-showcase img#imac { max-width: 80%; } .responsive-showcase img#iphone { max-width: 60%; } .text-blue.inactive { color: #d0d0d0; } @media (min-width: 768px) and (max-width: 992px) { /* Small devices */ .responsive-showcase { height: 400px; } .responsive-showcase h2 { margin-top: 0; } } /* ===== Portfolio ===== */ .portfolio-item { margin-bottom: 10px; } .portfolio-item > .portfolio-thumbnail { position: relative; overflow: hidden; } .portfolio-item > .portfolio-thumbnail img { border-radius: 4px; } .portfolio-item > .portfolio-thumbnail > .mask { position: absolute; left: 0; width: 100%; top: 0; height: 100%; background: #e74c3c; background: rgba(43, 171, 207, 0.5); color: white; opacity: 0; -webkit-transition: opacity 300ms; -moz-transition: opacity 300ms; transition: opacity 300ms; } .portfolio-item > .portfolio-thumbnail:hover > .mask { opacity: 1; } .portfolio-item > .portfolio-thumbnail > .mask a { color: white; margin: 0 3px; } .portfolio-item > .portfolio-thumbnail > .mask a:hover { text-decoration: none; } .portfolio-item > .portfolio-thumbnail > .mask > p { position: absolute; top: 50%; margin-top: -14px; left: 50%; margin-left: -33px; } .portfolio-item > .portfolio-description { padding: 0 5px; } /* ===== Feedback ===== */ .feedbacks { margin: 0 0 0; padding: 20px 0 50px; background: #f6f6f6 url(../img/image-1.png) no-repeat center center; background-size: cover; border: 1px solid #ccc; } .feedback { margin: 40px 0 10px; } .feedback > i { float: left; margin-right: 15px; } .feedback > div { position: relative; overflow: hidden; padding-left: 20px; /* for arrow */ padding-right: 6px; /* for shadow */ } .feedback > div > p { font-size: 12pt; padding: 10px 20px; background: white; border: white; border-radius: 0 4px 4px; -webkit-box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.175); box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.175); } .feedback > div > p:before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 0; border-top: 20px solid white; border-left: 30px solid transparent; } .nickname { float:left; } .clear { clear: both; } .netherlands { background-position: 0 -2041px; background-image: url(../img/sprite-flag.png?v=6444d95b53d85d5550fa124964970415&amp;m=2); display: inline-block; width: 18px; height: 13px; } .pakistan { background-position: 0 -2184px; background-image: url(../img/sprite-flag.png?v=6444d95b53d85d5550fa124964970415&amp;m=2); display: inline-block; width: 18px; height: 13px; } .israel { background-position: 0 -1404px; background-image: url(../img/sprite-flag.png?v=6444d95b53d85d5550fa124964970415&amp;m=2); display: inline-block; width: 18px; height: 13px; } .france { background-position: 0 -975px; background-image: url(../img/sprite-flag.png?v=6444d95b53d85d5550fa124964970415&amp;m=2); display: inline-block; width: 18px; height: 13px; } .united-states { background-position: 0 -3055px; background-image: url(../img/sprite-flag.png?v=6444d95b53d85d5550fa124964970415&amp;m=2); display: inline-block; width: 18px; height: 13px; } /* ===== Tooltip ===== */ .tooltip{ position:absolute; z-index:1020; display:block; visibility:visible; padding:5px; font-size:11px; opacity:0; filter:alpha(opacity=0) } .tooltip.in{ opacity:.8; filter:alpha(opacity=80) } .tooltip.top{ margin-top:-2px } .tooltip.right{ margin-left:2px } .tooltip.bottom{ margin-top:2px } .tooltip.left{ margin-left:-2px } .tooltip.top .tooltip-arrow{ bottom:0; left:50%; margin-left:-5px; border-left:5px solid transparent; border-right:5px solid transparent; border-top:5px solid #000 } .tooltip.left .tooltip-arrow{ top:50%; right:0; margin-top:-5px; border-top:5px solid transparent; border-bottom:5px solid transparent; border-left:5px solid #000 } .tooltip.bottom .tooltip-arrow{ top:0; left:50%; margin-left:-5px; border-left:5px solid transparent; border-right:5px solid transparent; border-bottom:5px solid #000 } .tooltip.right .tooltip-arrow{ top:50%; left:0; margin-top:-5px; border-top:5px solid transparent; border-bottom:5px solid transparent; border-right:5px solid #000 } .tooltip-inner{ max-width:200px; padding:3px 8px; color:#fff; text-align:center; text-decoration:none; background-color:#000; -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px } .tooltip-arrow{ position:absolute; width:0; height:0 } /* ===== Recent Blogs ===== */ .blog { margin-top: 30px; } .blog > img { height: 70px; width: 70px; float: left; margin-right: 20px; border-radius: 70px; } @media (max-width: 767px) { .blog > img { display: none; } } .blog-desc { overflow: hidden; } .blog-desc h3 { font-weight: 500; font-size: 20px; line-height: 1.5; margin-top: 0; } .blog-desc p { line-height: 1.7; } .blog-desc img { border-radius: 3px; margin: 20px 0; } /* ===== Our Team ===== */ .team-member { margin-bottom: 10px; } .team-member > img { margin-bottom: 5px; border-radius: 4px 4px 0 0; } .team-member > .info { padding: 5px; background: #f6f6f6; border-radius: 0 0 5px 5px; -webkit-transition: background 300ms; -moz-transition: background 300ms; transition: background 300ms; } .team-member:hover > .info { background: #e9e9e9; } .team-member > .info > p { margin-bottom: 0; } @media (max-width: 767px) { /* Adjusting for mobile */ .team-member > img { border-radius: 4px 4px; } .team-member > .info { background: white; } .team-member:hover > .info { background: white; } } /* ===== Help Center ===== */ .panel-body > ul { list-style-type: none; padding: 0; margin: 0; } .panel-body > ul > li { border-bottom: 1px solid #e9e9e9; } .panel-body > ul > li:last-child { border-bottom: 0; } .panel-body > ul > li > a { display: block; padding: 7px 0; font-weight: 600; font-size: 12px; color: #999999; text-transform: uppercase; text-decoration: none; } .panel-body > ul > li > a:hover { color: #333333; } .help-questions { padding-left: 0; margin-left: 20px; } .help-questions > li { padding: 5px 0; } .help-questions > li > a { color: #333333; } .resources > li { padding: 5px 0; } /* ===== Pricing Table ===== */ .pricing-option { margin-top: 30px; border: 15px solid #f6f6f6; text-align: center; } .pricing-inner { border: 1px solid #e9e9e9; -webkit-transition: box-shadow 300ms; -moz-transition: box-shadow 300ms; transition: box-shadow 300ms; } .pricing-inner:hover { -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); } .pricing-header { padding: 10px; } .pricing-header h5 { text-transform: uppercase; font-weight: 600; } .pricing-number { padding: 10px; background: #f8f79b; font-size: 22px; } .pricing-number > span { font-size: 18px; } .pricing-body { padding: 10px; } .pricing-body ul { background: white; } .pricing-body ul > li { padding: 7px 0; border-bottom: 1px solid #e9e9e9; text-transform: uppercase; font-size: 12px; font-weight: 600; color: #999; } .pricing-body ul > li:last-child { border-bottom: 0; } /*** Bonus ***/ #bonus .pricing-number { position: relative; border-bottom: 1px dashed #bbb; } #bonus .pricing-number > .fa-scissors { position: absolute; bottom: -10px; left: 0; font-size: 18px; cursor: pointer; -webkit-transition: left 2s; -moz-transition: left 2s; transition: left 2s; } #bonus .pricing-body { position: relative; } #bonus .pricing-body p { position: absolute; top: 0; left: 0; height: 100%; width: 100%; padding: 10px; z-index: -1; } /* ===== Services ===== */ .services { margin: 30px 0; } .service-item > i { height: 30px; width: 30px; border-radius: 30px; line-height: 30px; text-align: center; display: block; margin-right: 15px; background: #ed3e49; color: white; float: left; -webkit-transition: all 300ms; -moz-transition: all 300ms; transition: all 300ms; } .service-desc { overflow: hidden; } .service-desc > h4 { margin-top: 0; font-weight: 500; } /* ===== Sign In & Sign Up ===== */ .sign-form { border: 15px solid #f6f6f6; } .sign-inner { padding: 30px; border: 1px solid #e9e9e9; } .sign-form .popover { min-width: 200px; } /* ===== Portfolio ===== */ #isotope-container .portfolio-item { margin-bottom: 20px; } /* ===== Portfolio Item ===== */ .portfolio-slideshow { position: relative; border-radius: 3px; overflow: hidden; margin-bottom: 20px; } /* ===== Shop ===== */ .shop-product { margin: 10px 0 20px; text-align: center; } .shop-product img { max-height: 100px; margin: 0 auto; } .shop-product h5 { font-family: 'Source Sans Pro', sans-serif; font-weight: 600; } .shop-product.featured:before { position: absolute; top: 0; left: 15px; content: "\f0a3"; font-family: FontAwesome; font-size: 30px; color: #ed3e49; } .shop-product.featured:after { position: absolute; top: 13px; left: 19px; content: "New"; font-weight: 400; font-size: 10px; color: white; } .shop-product.featured .price .old { color: red; text-decoration: line-through; } .shop-product.featured .price .new { font-weight: bold; } /*** Shop Item ***/ .shop-item .product-img { margin-bottom: 20px; } .shop-item .product-img img { max-height: 70px; opacity: 0.5; margin: 0 auto; } .shop-item .product-img img:hover { opacity: 1; } .shop-item .product-img img.main { max-height: 100%; margin-bottom: 20px; opacity: 1; } .shop-item .product-img .row { padding: 0 12px; } .shop-item .product-img .col-xs-4 { padding-left: 2px; padding-right: 2px; } .rating { display: inline-block; margin-left: 0px; } .rating li { margin: 0; padding: 0; color: #F7C41F; font-size: 14px; } .shop-item .reviews { font-size: 12px; margin-left: 10px; } .shop-item .price-block { display: inline-block; margin-bottom: 15px; padding: 10px; background: #eee; border-radius: 3px; } .shop-item .price-block .form-control { display: inline-block; width: 60px; } .shop-item .price-block .price { margin-right: 10px; vertical-align: middle; font-size: 20px; font-weight: 600; } /*** Shopping Cart ***/ .shopping-cart table > thead > tr > th { border-bottom-width: 1px; } .shopping-cart table > tbody > tr > td { vertical-align: middle; } .shopping-cart table img { float: left; max-width: 100px; margin: 0 10px 10px 0; border-radius: 3px; } .shopping-cart table .item { overflow: hidden; } @media (max-width: 767px) { .shopping-cart table img { float: none; max-width: 100%; margin: 0 0 10px 0; } .shopping-cart table .item { overflow: visible; } } .shopping-cart .form-control { width: 60px; } .shopping-cart .checkout { list-style-type: none; margin: 0; padding: 0; } .shopping-cart .checkout > li { margin: 10px 0; } /* ===== User Profile ====== */ .user-avatar { position: relative; background: #fff; padding: 10px; margin-bottom: 30px; border: 1px solid #eee; border-radius: 3px; } .user-avatar > img { margin-bottom: 10px; border-radius: 3px; } .user-avatar:before, .user-avatar:after { z-index: -1; position: absolute; content: ""; bottom: 15px; left: 10px; width: 50%; top: 80%; max-width: 300px; background: #777; -webkit-box-shadow: 0 15px 10px #777; -moz-box-shadow: 0 15px 10px #777; box-shadow: 0 15px 10px #777; -webkit-transform: rotate(-3deg); -moz-transform: rotate(-3deg); -o-transform: rotate(-3deg); -ms-transform: rotate(-3deg); transform: rotate(-3deg); } .user-avatar:after { -webkit-transform: rotate(3deg); -moz-transform: rotate(3deg); -o-transform: rotate(3deg); -ms-transform: rotate(3deg); transform: rotate(3deg); right: 10px; left: auto; } .user-social { margin-top: 15px; } .user-cart > h4 { margin-bottom: 20px; } .user-info { list-style-type: none; padding-left: 0; margin-top: 20px; } .user-info > li { padding: 3px 0; } /* ===== 404 Not Found ===== */ .not-found { height: 38px; background: #f6f6f6; margin-bottom: 5px; } .not-found > span { display: inline-block; padding-right: 10px; background: white; text-transform: uppercase; font-size: 30px; font-weight: 600; letter-spacing: 1px; } .error-page p { margin-bottom: 30px; } .error-page > .text-muted { text-transform: uppercase; } .error-page > a { font-weight: 600; font-size: 16px; } .error-page .divider { margin: 0 10px; color: #999; } /* ===== Coming Soon ===== */ .coming-soon { background: url(../img/coming-soon.jpg) no-repeat center center; background-size: cover; padding: 100px 0; color: #fff; } .coming-soon h1 { font-size: 54px; text-shadow: 1px 1px 2px #505050; } .coming-soon .lead { margin: 40px 0 50px; font-weight: 400; text-shadow: 1px 1px 2px #505050; } .coming-soon form .form-control { height: 45px; width: 300px; padding: 12px 24px; border-radius: 45px 0 0 45px; font-size: 18px; -webkit-box-shadow: none; box-shadow: none; } .coming-soon form button { height: 45px; border-radius: 0 45px 45px 0; margin-left: -4px; } @media (max-width: 767px) { .coming-soon { padding: 30px 0; } .coming-soon form .form-control { border-radius: 45px; width: 100%; } .coming-soon form button { display: block; width: 100%; border-radius: 45px; } } .is-countdown { margin-top: 50px; text-shadow: 1px 1px 2px #505050; } .countdown-row { display: block; text-align: center; } .countdown-section { display: inline-block; margin: 0 2px; height: 70px; width: 70px; border-radius: 70px; line-height: 70px; text-align: center; border: 1px solid white; font-size: 24px; } .countdown-period { display: block; font-size: 16px; } /* ===== UI Elements ===== */ .tooltip-test button, .popover-test button { margin-bottom: 10px; } /*** Pagination ***/ .pagination-example ul { margin: 10px 0; } /*** Carousel ***/ .carousel-example { border-radius: 4px; overflow: hidden; } /* ===== Comments ===== */ .comments { margin: 20px 0; } .cmt { margin-bottom: 15px; } .cmt > img { height: 50px; width: 50px; border-radius: 50px; line-height: 50px; text-align: center; float: left; margin: 0 10px 0 0; } .cmt > .cmt-block { overflow: hidden; } .cmt > .cmt-block .profile-link { color: #333333; font-weight: 700; } .cmt > .cmt-block .time { margin-left: 10px; font-size: 13px; } .cmt > .cmt-block textarea { border-radius: 0; } .cmt > .cmt-block > .cmt-body { margin-top: 5px; } .rating { -moz-user-select: -moz-none; -o-user-select: none; -khtml-user-select: none; -webkit-user-select: none; user-select: none; } .rating > i { cursor: pointer; display: inline-block; padding: 3px; color: #555555; } .rating .up { color: green; } .rating .up:before { content: "+"; } .rating .down { color: #ed3e49; } .rating .down:before { content: "-"; } /* ===== Footer & Copyright ===== */ footer { margin-top: 50px; padding: 50px 0; background: #e9e9e9; } footer h4 { margin-bottom: 20px; text-transform: uppercase; font-weight: 400; } @media (max-width: 767px) { /* Adjusting for mobile */ footer { padding-top: 20px; } footer h4 { margin-top: 20px; } } footer .form-control { border-color: #ccc; } .copyright { padding: 20px 0; } .tweet > i { float: left; margin-right: 15px; color: #e74c3c; } .tweet > p { overflow: hidden; } .tweet > p > a { display: block; } #logo:after { content: " TechStorm"; color: #e31522; } #logo { padding: 0; line-height: 61px; } #logo img { height: 65px; } .error { color: red; } .carousel-inner .item img { width: 100%; }
00-techstorm
trunk/assets/css/style.css
CSS
gpl3
175,765
/* line 7, ../sass/lightbox.sass */ body:after { content: url(../img/close.png) url(../img/loading.gif) url(../img/prev.png) url(../img/next.png); display: none; } /* line 11, ../sass/lightbox.sass */ .lightboxOverlay { position: absolute; top: 0; left: 0; z-index: 9999; background-color: black; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80); opacity: 0.8; display: none; } /* line 20, ../sass/lightbox.sass */ .lightbox { position: absolute; left: 0; width: 100%; z-index: 10000; text-align: center; line-height: 0; font-weight: normal; } /* line 28, ../sass/lightbox.sass */ .lightbox .lb-image { display: block; height: auto; -webkit-border-radius: 3px; -moz-border-radius: 3px; -ms-border-radius: 3px; -o-border-radius: 3px; border-radius: 3px; } /* line 32, ../sass/lightbox.sass */ .lightbox a img { border: none; } /* line 35, ../sass/lightbox.sass */ .lb-outerContainer { position: relative; background-color: white; *zoom: 1; width: 250px; height: 250px; margin: 0 auto; -webkit-border-radius: 4px; -moz-border-radius: 4px; -ms-border-radius: 4px; -o-border-radius: 4px; border-radius: 4px; } /* line 38, ../../../../.rvm/gems/ruby-1.9.3-p392/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */ .lb-outerContainer:after { content: ""; display: table; clear: both; } /* line 44, ../sass/lightbox.sass */ .lb-container { padding: 4px; } /* line 47, ../sass/lightbox.sass */ .lb-loader { position: absolute; top: 43%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; } /* line 56, ../sass/lightbox.sass */ .lb-cancel { display: block; width: 32px; height: 32px; margin: 0 auto; background: url(../img/loading.gif) no-repeat; } /* line 63, ../sass/lightbox.sass */ .lb-nav { position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; } /* line 71, ../sass/lightbox.sass */ .lb-container > .nav { left: 0; } /* line 74, ../sass/lightbox.sass */ .lb-nav a { outline: none; } /* line 77, ../sass/lightbox.sass */ .lb-prev, .lb-next { width: 49%; height: 100%; cursor: pointer; /* Trick IE into showing hover */ display: block; } /* line 84, ../sass/lightbox.sass */ .lb-prev { left: 0; float: left; } /* line 87, ../sass/lightbox.sass */ .lb-prev:hover { background: url(../img/prev.png) left 48% no-repeat; } /* line 90, ../sass/lightbox.sass */ .lb-next { right: 0; float: right; } /* line 93, ../sass/lightbox.sass */ .lb-next:hover { background: url(../img/next.png) right 48% no-repeat; } /* line 96, ../sass/lightbox.sass */ .lb-dataContainer { margin: 0 auto; padding-top: 5px; *zoom: 1; width: 100%; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; } /* line 38, ../../../../.rvm/gems/ruby-1.9.3-p392/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */ .lb-dataContainer:after { content: ""; display: table; clear: both; } /* line 103, ../sass/lightbox.sass */ .lb-data { padding: 0 4px; color: #bbbbbb; } /* line 106, ../sass/lightbox.sass */ .lb-data .lb-details { width: 85%; float: left; text-align: left; line-height: 1.1em; } /* line 111, ../sass/lightbox.sass */ .lb-data .lb-caption { font-size: 13px; font-weight: bold; line-height: 1em; } /* line 115, ../sass/lightbox.sass */ .lb-data .lb-number { display: block; clear: left; padding-bottom: 1em; font-size: 12px; color: #999999; } /* line 121, ../sass/lightbox.sass */ .lb-data .lb-close { display: block; float: right; width: 30px; height: 30px; background: url(../img/close.png) top right no-repeat; text-align: right; outline: none; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70); opacity: 0.7; } /* line 130, ../sass/lightbox.sass */ .lb-data .lb-close:hover { cursor: pointer; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); opacity: 1; }
00-techstorm
trunk/assets/css/lightbox.css
CSS
gpl3
4,190
; CLW file contains information for the MFC ClassWizard [General Info] Version=1 LastClass=CMainFrame LastTemplate=CDialog NewFileInclude1=#include "stdafx.h" NewFileInclude2=#include "_I_.h" LastPage=0 ClassCount=5 Class1=C_I_App Class2=C_I_Doc Class3=C_I_View Class4=CMainFrame ResourceCount=3 Resource1=CG_IDR_POPUP_MAIN_FRAME Class5=CAboutDlg Resource2=IDR_MAINFRAME Resource3=IDD_ABOUTBOX [CLS:C_I_App] Type=0 HeaderFile=_I_.h ImplementationFile=_I_.cpp Filter=N LastObject=C_I_App [CLS:C_I_Doc] Type=0 HeaderFile=_I_Doc.h ImplementationFile=_I_Doc.cpp Filter=N BaseClass=CDocument VirtualFilter=DC LastObject=C_I_Doc [CLS:C_I_View] Type=0 HeaderFile=_I_View.h ImplementationFile=_I_View.cpp Filter=C LastObject=C_I_View BaseClass=CView VirtualFilter=VWC [CLS:CMainFrame] Type=0 HeaderFile=MainFrm.h ImplementationFile=MainFrm.cpp Filter=T LastObject=CMainFrame BaseClass=CFrameWnd VirtualFilter=fWC [CLS:CAboutDlg] Type=0 HeaderFile=_I_.cpp ImplementationFile=_I_.cpp Filter=D LastObject=CAboutDlg [DLG:IDD_ABOUTBOX] Type=1 Class=CAboutDlg ControlCount=4 Control1=IDC_STATIC,static,1342177283 Control2=IDC_STATIC,static,1342308480 Control3=IDC_STATIC,static,1342308352 Control4=IDOK,button,1342373889 [MNU:IDR_MAINFRAME] Type=1 Class=CMainFrame Command1=ID_FILE_NEW Command2=ID_FILE_OPEN Command3=ID_FILE_SAVE Command4=ID_FILE_SAVE_AS Command5=ID_FILE_PRINT Command6=ID_FILE_PRINT_PREVIEW Command7=ID_FILE_PRINT_SETUP Command8=ID_FILE_MRU_FILE1 Command9=ID_APP_EXIT Command10=ID_EDIT_UNDO Command11=ID_EDIT_CUT Command12=ID_EDIT_COPY Command13=ID_EDIT_PASTE Command14=ID_VIEW_TOOLBAR Command15=ID_VIEW_STATUS_BAR Command16=ID_APP_ABOUT Command17=ID_ADDCOINS Command18=ID_SUBCOINS CommandCount=18 [ACL:IDR_MAINFRAME] Type=1 Class=CMainFrame Command1=ID_ADDCOINS Command2=ID_SUBCOINS Command3=ID_EDIT_COPY Command4=ID_FILE_NEW Command5=ID_FILE_OPEN Command6=ID_FILE_PRINT Command7=ID_FILE_SAVE Command8=ID_EDIT_PASTE Command9=ID_EDIT_UNDO Command10=ID_EDIT_CUT Command11=ID_NEXT_PANE Command12=ID_PREV_PANE Command13=ID_EDIT_COPY Command14=ID_EDIT_PASTE Command15=ID_EDIT_CUT Command16=ID_EDIT_UNDO CommandCount=16 [TB:IDR_MAINFRAME] Type=1 Class=? Command1=ID_FILE_NEW Command2=ID_FILE_OPEN Command3=ID_FILE_SAVE Command4=ID_EDIT_CUT Command5=ID_EDIT_COPY Command6=ID_EDIT_PASTE Command7=ID_FILE_PRINT Command8=ID_APP_ABOUT Command9=ID_ADDCOINS Command10=ID_SUBCOINS CommandCount=10 [MNU:CG_IDR_POPUP_MAIN_FRAME] Type=1 Class=? Command1=ID_EDIT_CUT Command2=ID_EDIT_COPY Command3=ID_EDIT_PASTE CommandCount=3
1001-collection-codelet
画硬币/_I_.clw
Clarion
gpl3
2,675
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__32F97A70_5FD3_4D11_8059_FAF8A93A0EAC__INCLUDED_) #define AFX_STDAFX_H__32F97A70_5FD3_4D11_8059_FAF8A93A0EAC__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include <afxwin.h> // MFC core and standard components #include <afxext.h> // MFC extensions #include <afxdisp.h> // MFC Automation classes #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls #ifndef _AFX_NO_AFXCMN_SUPPORT #include <afxcmn.h> // MFC support for Windows Common Controls #endif // _AFX_NO_AFXCMN_SUPPORT //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__32F97A70_5FD3_4D11_8059_FAF8A93A0EAC__INCLUDED_)
1001-collection-codelet
画硬币/StdAfx.h
C
gpl3
1,054
// _I_.h : main header file for the _I_ application // #if !defined(AFX__I__H__5161CB99_70DA_47CD_AED4_CDECAAA8D92B__INCLUDED_) #define AFX__I__H__5161CB99_70DA_47CD_AED4_CDECAAA8D92B__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // C_I_App: // See _I_.cpp for the implementation of this class // class C_I_App : public CWinApp { public: C_I_App(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(C_I_App) public: virtual BOOL InitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(C_I_App) afx_msg void OnAppAbout(); // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX__I__H__5161CB99_70DA_47CD_AED4_CDECAAA8D92B__INCLUDED_)
1001-collection-codelet
画硬币/_I_.h
C++
gpl3
1,323
// MainFrm.h : interface of the CMainFrame class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MAINFRM_H__E63E34E0_F1D1_4B0B_9A9F_F995B64D0005__INCLUDED_) #define AFX_MAINFRM_H__E63E34E0_F1D1_4B0B_9A9F_F995B64D0005__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CMainFrame : public CFrameWnd { protected: // create from serialization only CMainFrame(); DECLARE_DYNCREATE(CMainFrame) // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMainFrame) virtual BOOL PreCreateWindow(CREATESTRUCT& cs); //}}AFX_VIRTUAL // Implementation public: virtual ~CMainFrame(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // control bar embedded members CToolBar m_wndToolBar; public: void LoadNewIcon(UINT nIconID); CTime m_tnow; CTime m_tstart; CStatusBar m_wndStatusBar; // Generated message map functions protected: afx_msg void OnContextMenu(CWnd*, CPoint point); //{{AFX_MSG(CMainFrame) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnTimer(UINT nIDEvent); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MAINFRM_H__E63E34E0_F1D1_4B0B_9A9F_F995B64D0005__INCLUDED_)
1001-collection-codelet
画硬币/MainFrm.h
C++
gpl3
1,607
// _I_Doc.h : interface of the C_I_Doc class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX__I_DOC_H__26FAAC3C_F2B1_44CF_9407_3E1633F04A29__INCLUDED_) #define AFX__I_DOC_H__26FAAC3C_F2B1_44CF_9407_3E1633F04A29__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class C_I_Doc : public CDocument { protected: // create from serialization only C_I_Doc(); DECLARE_DYNCREATE(C_I_Doc) // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(C_I_Doc) public: virtual BOOL OnNewDocument(); virtual void Serialize(CArchive& ar); virtual void DeleteContents(); //}}AFX_VIRTUAL // Implementation public: int m_ncoins; virtual ~C_I_Doc(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(C_I_Doc) afx_msg void OnAddcoins(); afx_msg void OnSubcoins(); afx_msg void OnUpdateSubcoins(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX__I_DOC_H__26FAAC3C_F2B1_44CF_9407_3E1633F04A29__INCLUDED_)
1001-collection-codelet
画硬币/_I_Doc.h
C++
gpl3
1,456
// stdafx.cpp : source file that includes just the standard includes // _I_.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h"
1001-collection-codelet
画硬币/StdAfx.cpp
C++
gpl3
205
//{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by _I_.rc // #define IDD_ABOUTBOX 100 #define CG_IDR_POPUP_MAIN_FRAME 102 #define IDR_MAINFRAME 128 #define IDR__I_TYPE 129 #define IDI_ICON1 130 #define IDI_ICON2 131 #define IDI_ICON3 132 #define IDI_ICON4 133 #define ID_ADDCOINS 32771 #define ID_SUBCOINS 32772 #define ID_INDICATOR_COIN 61446 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_3D_CONTROLS 1 #define _APS_NEXT_RESOURCE_VALUE 134 #define _APS_NEXT_COMMAND_VALUE 32775 #define _APS_NEXT_CONTROL_VALUE 1000 #define _APS_NEXT_SYMED_VALUE 103 #endif #endif
1001-collection-codelet
画硬币/Resource.h
C
gpl3
956
// _I_View.h : interface of the C_I_View class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX__I_VIEW_H__75D881CE_AE01_44F7_8ABF_062050986ABD__INCLUDED_) #define AFX__I_VIEW_H__75D881CE_AE01_44F7_8ABF_062050986ABD__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "MainFrm.h" class C_I_View : public CView { protected: // create from serialization only C_I_View(); DECLARE_DYNCREATE(C_I_View) // Attributes public: C_I_Doc* GetDocument(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(C_I_View) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation public: virtual ~C_I_View(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(C_I_View) afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in _I_View.cpp inline C_I_Doc* C_I_View::GetDocument() { return (C_I_Doc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX__I_VIEW_H__75D881CE_AE01_44F7_8ABF_062050986ABD__INCLUDED_)
1001-collection-codelet
画硬币/_I_View.h
C++
gpl3
1,832
// _I_.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "_I_.h" #include "MainFrm.h" #include "_I_Doc.h" #include "_I_View.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // C_I_App BEGIN_MESSAGE_MAP(C_I_App, CWinApp) //{{AFX_MSG_MAP(C_I_App) ON_COMMAND(ID_APP_ABOUT, OnAppAbout) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAP // Standard file based document commands ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew) ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen) // Standard print setup command ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // C_I_App construction C_I_App::C_I_App() { // TODO: add construction code here, // Place all significant initialization in InitInstance } ///////////////////////////////////////////////////////////////////////////// // The one and only C_I_App object C_I_App theApp; ///////////////////////////////////////////////////////////////////////////// // C_I_App initialization BOOL C_I_App::InitInstance() { AfxEnableControlContainer(); // Standard initialization // If you are not using these features and wish to reduce the size // of your final executable, you should remove from the following // the specific initialization routines you do not need. #ifdef _AFXDLL Enable3dControls(); // Call this when using MFC in a shared DLL #else Enable3dControlsStatic(); // Call this when linking to MFC statically #endif // Change the registry key under which our settings are stored. // TODO: You should modify this string to be something appropriate // such as the name of your company or organization. SetRegistryKey(_T("Local AppWizard-Generated Applications")); LoadStdProfileSettings(); // Load standard INI file options (including MRU) // Register the application's document templates. Document templates // serve as the connection between documents, frame windows and views. CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(C_I_Doc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(C_I_View)); AddDocTemplate(pDocTemplate); // Parse command line for standard shell commands, DDE, file open CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); // Dispatch commands specified on the command line if (!ProcessShellCommand(cmdInfo)) return FALSE; // The one and only window has been initialized, so show and update it. m_pMainWnd->ShowWindow(SW_SHOW); m_pMainWnd->UpdateWindow(); return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About class CAboutDlg : public CDialog { public: CAboutDlg(); // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: //{{AFX_MSG(CAboutDlg) // No message handlers //}}AFX_MSG DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() // App command to run the dialog void C_I_App::OnAppAbout() { CAboutDlg aboutDlg; aboutDlg.DoModal(); } ///////////////////////////////////////////////////////////////////////////// // C_I_App message handlers
1001-collection-codelet
画硬币/_I_.cpp
C++
gpl3
4,155
#include "simcls_define.h" #ifdef __cplusplus extern "C" { #endif CLASS { //declare the constructor function is point DECLARE_CONSTRUCTOR(CDemoA); //declare the destructor fucntion is point DECLARE_DESTRUCTOR(CDemoA); DECLARE_FUNC_0P(int, fun_a); DECLARE_FUNC_2P(int, fun_b, char *, int); //member variable storage struct point, user should never change it void *interface; } CLASS_END(CDemoA); REGISTER_CLASS_H(CDemoA); #ifdef __cplusplus } #endif
1001-collection-codelet
C模拟简单类/class_demoA.h
C
gpl3
501
#ifndef _SIMULATE_CLASS_H #define _SIMULATE_CLASS_H #ifdef __cplusplus extern "C" { #endif #include <stdlib.h> #include <string.h> #define CLASS typedef struct #define CLASS_END(type) type //Declare a simple simulate constructor function for class #define DECLARE_CONSTRUCTOR(type) \ struct type * (* type##_constructor)(void* pthis) //Declare a simple simulate destructor function for class #define DECLARE_DESTRUCTOR(type) \ void (* type##_destructor)(void * pthis) #define CLASS_FUNC_NAME(name,pcnt) name##_func##pcnt##p #define DECLARE_FUNC_0P(ret_type, name) \ ret_type (* name##_func)(void * pthis) #define DECLARE_FUNC_1P(ret_type, name, p1) \ ret_type (* name##_func)(void * pthis, p1) #define DECLARE_FUNC_2P(ret_type, name, p1, p2) \ ret_type (* name##_func)(void * pthis, p1, p2) #define DECLARE_FUNC_3P(ret_type, name, p1, p2, p3) \ ret_type (* name##_func)(void * pthis, p1, p2, p3) //the simulate construct fuction achieve, add the achieve code //between DEFINE_CONSTRUCTOR_BEGIN and DEFINE_CONSTRUCTOR_END #define DEFINE_CONSTRUCTOR_BEGIN(type) \ static type * type##_constructor(void * pthis) #define DEFINE_CONSTRUCTOR_END //the simulate destructor fuction achieve, add the achieve code //between DEFINE_DESTRUCTOR_BEGIN and DEFINE_DESTRUCTOR_END #define DEFINE_DESTRUCTOR_BEGIN(type) \ static void type##_destructor(void * pthis) #define DEFINE_DESTRUCTOR_END //construct fuction #define CONSTRUCTOR_FUNC(type) type##_constructor //destruct fuction #define DESTRUCTOR_FUNC(type) type##_destructor #if 0// gcc //Register the function to the simulate class #define REGISTER_FUNC_BEGIN(type, constructor_fun, destructor_fun) \ type __this_Module_##type = { \ .type##_constructor = constructor_fun, \ .type##_destructor = destructor_fun, #define REGISTER_FUNC(module_fun, fun) \ .module_fun = fun, #else #define REGISTER_FUNC_BEGIN(type, constructor_fun, destructor_fun) \ type __this_Module_##type = { \ constructor_fun, \ destructor_fun, #define REGISTER_FUNC(module_fun, fun) \ fun, #endif #define REGISTER_FUNC_END(type) \ }; //Register the simulate class, declare the simulate new function //and simulate delete function, this macro use in h file #define REGISTER_CLASS_H(type) \ type * simulate_new_##type();\ void simulate_delete_##type(type *pdelete); \ void load_##type##_module(type * pClass); \ void unload_##type##_module(type * pClass) //Register the simulate class, define the simulate new function //and simulate delete function, this macro use in c file #define REGISTER_CLASS_C(type) \ type * simulate_new_##type() { \ type * pclass = (type *)malloc(sizeof(type)); \ if (NULL == pclass) { \ return NULL; \ } \ memcpy(pclass, &__this_Module_##type, sizeof(type)); \ \ return pclass->type##_constructor(pclass); \ } \ \ void simulate_delete_##type(type *pdelete) { \ if (NULL == pdelete) \ return; \ \ pdelete->type##_destructor(pdelete); \ free(pdelete); \ } \ \ void load_##type##_module(type * pClass) { \ if (NULL == pClass) \ return; \ memcpy(pClass, &__this_Module_##type, sizeof(type)); \ pClass->type##_constructor(pClass); \ } \ \ void unload_##type##_module(type * pClass) { \ if (NULL == pClass) \ return; \ pClass->type##_destructor(pClass);\ } //simulate new #define NEW_CLASS(type) \ simulate_new_##type() //simulate delete #define DEL_CLASS(type, DelPoint) \ simulate_delete_##type(DelPoint) //define simulate class code #define CLASS_DEFINE(type, name) \ type name; \ load_##type##_module(&name) //pairing of CLASS_DEFINE #define CLASS_UNDEFINE(type, v) \ unload_##type##_module(&v) #define CLASS_FUNC_0P(type, cls_ptr, name) \ (type *)(cls_ptr)->name##_func(cls_ptr) #define CLASS_FUNC_1P(type, cls_ptr, name, p1) \ (type *)(cls_ptr)->name##_func(cls_ptr, p1) #define CLASS_FUNC_2P(type, cls_ptr, name, p1, p2) \ (type *)(cls_ptr)->name##_func(cls_ptr, p1, p2) #define CLASS_FUNC_3P(type, cls_ptr, name, p1, p2, p3) \ (type *)(cls_ptr)->name##_func(cls_ptr, p1, p2, p3) #ifdef __cplusplus } #endif #endif
1001-collection-codelet
C模拟简单类/simcls_define.h
C
gpl3
4,234
#include "types.h" #include "class_demoA.h" typedef struct { uint32_t m_a; uint32_t m_b; } IDemoA; DEFINE_CONSTRUCTOR_BEGIN(CDemoA) { CDemoA *this = (CDemoA *)pthis; IDemoA *handle = NULL; handle = (IDemoA *)malloc(sizeof(IDemoA)); if (NULL == handle) { printf("constructor error! out of memory!\n"); return NULL; } printf("Constructor A\n"); memset(handle, 0, sizeof(IDemoA)); this->interface = (void *)handle; return this; } DEFINE_CONSTRUCTOR_END DEFINE_DESTRUCTOR_BEGIN(CDemoA) { CDemoA *this = (CDemoA *)pthis; IDemoA *handle = (IDemoA *)this->interface; printf("Destructor A\n"); free(handle); } DEFINE_DESTRUCTOR_END static int fun_a_implement(void *pthis) { CDemoA *this = (CDemoA *)pthis; IDemoA *handle = (IDemoA *)this->interface; handle->m_a++; handle->m_b++; printf("Funa A\n"); return handle->m_a; } static int fun_b_implement(void *pthis, char *a, int b) { CDemoA *this = (CDemoA *)pthis; IDemoA *handle = (IDemoA *)this->interface; handle->m_b = b; printf("Funb(%s,%d) A\n", a, b); return handle->m_b; } REGISTER_FUNC_BEGIN(CDemoA, CONSTRUCTOR_FUNC(CDemoA), DESTRUCTOR_FUNC(CDemoA)) REGISTER_FUNC(fun_a, fun_a_implement) REGISTER_FUNC(fun_b, fun_b_implement) REGISTER_FUNC_END(CDemoA) REGISTER_CLASS_C(CDemoA)
1001-collection-codelet
C模拟简单类/class_demoA.c
C
gpl3
1,378
#include "types.h" #include "class_demoA.h" #include "class_demoB.h" // interface typedef struct { uint32_t m_a; uint32_t m_b; CDemoA *m_ClsA1; CDemoA *m_ClsA2; } IDemoB; DEFINE_CONSTRUCTOR_BEGIN(CDemoB) { CDemoB *this = (CDemoB *)pthis; IDemoB *handle = NULL; handle = (IDemoB *)malloc(sizeof(IDemoB)); if ( NULL == handle ) { printf("constructor error! out of memory!\n"); return NULL; } printf("Construct B\n"); memset(handle, 0, sizeof(IDemoB)); this->interface = (void *)handle; handle->m_ClsA1 = NEW_CLASS(CDemoA); if (NULL == handle->m_ClsA1) { printf("constructor child cls1 error!\n"); return NULL; } handle->m_ClsA2 = NEW_CLASS(CDemoA); if (NULL == handle->m_ClsA2) { printf("constructor child cls2 error!\n"); return NULL; } return this; } DEFINE_CONSTRUCTOR_END DEFINE_DESTRUCTOR_BEGIN(CDemoB) { CDemoB *this = (CDemoB *)pthis; IDemoB *handle = (IDemoB *)this->interface; if (NULL != handle->m_ClsA2) { DEL_CLASS(CDemoA, handle->m_ClsA2); handle->m_ClsA2 = NULL; } if (NULL != handle->m_ClsA1) { DEL_CLASS(CDemoA, handle->m_ClsA1); handle->m_ClsA1 = NULL; } printf("Destruct B\n"); free(handle); } DEFINE_DESTRUCTOR_END static int funa_implement(void *pthis) { CDemoB *this = (CDemoB *)pthis; IDemoB *handle = (IDemoB *)this->interface; handle->m_a = CLASS_FUNC_0P(CDemoA, handle->m_ClsA1, fun_a); handle->m_b = CLASS_FUNC_0P(CDemoA, handle->m_ClsA2, fun_a); printf("Funa B\n"); return handle->m_b; } static int funb_implement(void *pthis, char* a, int b) { CDemoB *this = (CDemoB *)pthis; IDemoB *handle = (IDemoB *)this->interface; handle->m_a = b + CLASS_FUNC_2P(CDemoA, handle->m_ClsA1, fun_b, a, handle->m_a); handle->m_b = b + CLASS_FUNC_2P(CDemoA, handle->m_ClsA2, fun_b, a, handle->m_b); printf("Funb(%s,%d) B\n", a, b); return handle->m_b; } REGISTER_FUNC_BEGIN(CDemoB, CONSTRUCTOR_FUNC(CDemoB), DESTRUCTOR_FUNC(CDemoB)) REGISTER_FUNC(fun_a, funa_implement) REGISTER_FUNC(fun_b, funb_implement) REGISTER_FUNC_END(CDemoB) REGISTER_CLASS_C(CDemoB)
1001-collection-codelet
C模拟简单类/class_demoB.c
C
gpl3
2,200
#ifndef __MY_ERRORS_H__ #define __MY_ERRORS_H__ #define ENOERROR (0) #define ELIBPROC (1) #define EPARAM (2) #define EDRAIN (3) typedef enum { FILTER_NULL, FILTER_RESAMPLE, FILTER_AUTOMUTE, FILTER_LAST, }T_eFILTER_TYPE; #endif
1001-collection-codelet
C模拟简单类/include/errors.h
C
gpl3
272
#ifndef _ANYKA_BITOPS_H #define _ANYKA_BITOPS_H #include "compiler.h" #define BITS_PER_LONG 32 #define BIT(nr) (1UL << (nr)) #if 0 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) #define BITS_PER_BYTE 8 /** * test_bit - Determine whether a bit is set * @nr: bit number to test * @addr: Address to start counting from */ static __inline__ int test_bit(int nr, const volatile unsigned long *addr) { return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); } static __inline__ void set_bit(int nr, volatile unsigned long *addr) { unsigned long mask = BIT_MASK(nr); unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); *p |= mask; } static __inline__ void clear_bit(int nr, volatile unsigned long *addr) { unsigned long mask = BIT_MASK(nr); unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); *p &= ~mask; } #else #define test_bit(nr, addr) (1UL & (((unsigned long *)addr)[0] >> (nr & (31)))) #define set_bit(nr, addr) (((unsigned long *)addr)[0] |= BIT(nr & (31))) #define clear_bit(nr, addr) (((unsigned long *)addr)[0] &= (~ (BIT(nr & (31))))) #endif #endif
1001-collection-codelet
C模拟简单类/include/bitops.h
C
gpl3
1,197
/* This file is generally used by user-level software, so you need to * be a little careful about namespace pollution etc. Also, we cannot * assume GCC is being used. */ #ifndef __ELVON_POSIX_TYPES_H #define __ELVON_POSIX_TYPES_H typedef unsigned long __kernel_size_t; typedef long __kernel_ssize_t; typedef long __kernel_time_t; typedef long __kernel_clock_t; typedef long __kernel_off_t; #endif
1001-collection-codelet
C模拟简单类/include/posix_types.h
C
gpl3
498
#ifndef __ELVON_COMPILER_H #define __ELVON_COMPILER_H #if 0//def __CHECKER__ #else # define __user # define __force #endif #define __inline__ __inline #endif
1001-collection-codelet
C模拟简单类/include/compiler.h
C
gpl3
179
#ifndef _ASM_GENERIC_TYPES_H #define _ASM_GENERIC_TYPES_H /* * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the * header files exported to user space */ typedef signed char __s8; typedef unsigned char __u8; typedef signed short __s16; typedef unsigned short __u16; typedef signed int __s32; typedef unsigned int __u32; typedef signed long __s64; typedef unsigned long __u64; //---------------------------- typedef signed char s8; typedef unsigned char u8; typedef signed short s16; typedef unsigned short u16; typedef signed int s32; typedef unsigned int u32; typedef signed long s64; typedef unsigned long u64; #define S8_C(x) x #define U8_C(x) x ## U #define S16_C(x) x #define U16_C(x) x ## U #define S32_C(x) x #define U32_C(x) x ## U #define S64_C(x) x ## L #define U64_C(x) x ## UL #endif
1001-collection-codelet
C模拟简单类/include/asm_types.h
C
gpl3
878
#ifndef _ELVON_TYPES_H #define _ELVON_TYPES_H #include "asm_types.h" #include "posix_types.h" /* * The following typedefs are also protected by individual ifdefs for * historical reasons: */ #if 0//ndef _SIZE_T #define _SIZE_T typedef __kernel_size_t size_t; #endif #ifndef _SSIZE_T #define _SSIZE_T typedef __kernel_ssize_t ssize_t; #endif #ifndef _STRUCT_TIMESPEC #define _STRUCT_TIMESPEC struct timespec { __kernel_time_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ }; #endif #define __bitwise__ #if 0//def __CHECK_ENDIAN__ #define __bitwise __bitwise__ #else #define __bitwise #endif /* bsd */ typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; /* sysv */ typedef unsigned char unchar; typedef unsigned short ushort; typedef unsigned int uint; typedef unsigned long ulong; #ifndef __BIT_TYPES_DEFINED__ #define __BIT_TYPES_DEFINED__ //typedef __u8 u_int8_t; typedef __s8 int8_t; //typedef __u16 u_int16_t; typedef __s16 int16_t; //typedef __u32 u_int32_t; typedef __s32 int32_t; #endif /* !(__BIT_TYPES_DEFINED__) */ typedef __u8 uint8_t; typedef __u16 uint16_t; typedef __u32 uint32_t; #define TRUE 1 #define FALSE 0 //#define boolean uint8_t typedef uint8_t boolean; typedef unsigned __bitwise__ gfp_t; #ifndef NULL #define NULL 0 #endif typedef u32 phys_addr_t; typedef u32 dma_addr_t; typedef phys_addr_t resource_size_t; typedef struct { volatile int counter; } atomic_t; #endif
1001-collection-codelet
C模拟简单类/include/types.h
C
gpl3
1,625
#include "simcls_define.h" #ifdef __cplusplus extern "C" { #endif CLASS { //declare the constructor function is point DECLARE_CONSTRUCTOR(CDemoB); //declare the destructor fucntion is point DECLARE_DESTRUCTOR(CDemoB); //member function and method DECLARE_FUNC_0P(int, fun_a); DECLARE_FUNC_2P(int, fun_b, char *, int); //member variable storage struct point, user should never change it void *interface; } CLASS_END(CDemoB); REGISTER_CLASS_H(CDemoB); #ifdef __cplusplus } #endif
1001-collection-codelet
C模拟简单类/class_demoB.h
C
gpl3
535
<html> <applet code=WXDraw.class width=400 height=400 name = ff align = right vspace = 100 hspace = 300 </applet> </html>
1001-collection-codelet
appletjava画图/hello.html
HTML
gpl3
158
; CLW file contains information for the MFC ClassWizard [General Info] Version=1 LastClass=CSCDlg LastTemplate=CDialog NewFileInclude1=#include "stdafx.h" NewFileInclude2=#include "SC.h" ClassCount=3 Class1=CSCApp Class2=CSCDlg Class3=CAboutDlg ResourceCount=3 Resource1=IDD_ABOUTBOX Resource2=IDR_MAINFRAME Resource3=IDD_SC_DIALOG [CLS:CSCApp] Type=0 HeaderFile=SC.h ImplementationFile=SC.cpp Filter=N [CLS:CSCDlg] Type=0 HeaderFile=SCDlg.h ImplementationFile=SCDlg.cpp Filter=D BaseClass=CDialog VirtualFilter=dWC LastObject=IDC_Bin [CLS:CAboutDlg] Type=0 HeaderFile=SCDlg.h ImplementationFile=SCDlg.cpp Filter=D [DLG:IDD_ABOUTBOX] Type=1 Class=CAboutDlg ControlCount=4 Control1=IDC_STATIC,static,1342177283 Control2=IDC_STATIC,static,1342308480 Control3=IDC_STATIC,static,1342308352 Control4=IDOK,button,1342373889 [DLG:IDD_SC_DIALOG] Type=1 Class=CSCDlg ControlCount=55 Control1=IDC_EDIT_PUTOUT,edit,1350641792 Control2=IDC_NUMBER1,button,1342242817 Control3=IDC_NUMBER2,button,1342242817 Control4=IDC_NUMBER3,button,1342242817 Control5=IDC_NUMBER4,button,1342242817 Control6=IDC_NUMBER5,button,1342242817 Control7=IDC_NUMBER6,button,1342242817 Control8=IDC_NUMBER7,button,1342242817 Control9=IDC_NUMBER8,button,1342242817 Control10=IDC_NUMBER9,button,1342242817 Control11=IDC_NUMBER0,button,1342242817 Control12=IDC_NUMBER_pi,button,1342242817 Control13=IDC_NUMBER_PlusMinus,button,1342242817 Control14=IDC_NUMBER_Point,button,1342242817 Control15=IDC_NUMBER_Divide,button,1342242817 Control16=IDC_NUMBER_Multiply,button,1342242817 Control17=IDC_NUMBER_Subtract,button,1342242817 Control18=IDC_NUMBER_Add,button,1342242817 Control19=IDC_NUMBER_Mod,button,1342242817 Control20=IDC_NUMBER_Or,button,1342242817 Control21=IDC_NUMBER_Lsh,button,1342242817 Control22=IDC_NUMBER_Equal,button,1342242817 Control23=IDC_NUMBER_And,button,1342242817 Control24=IDC_NUMBER_Xor,button,1342242817 Control25=IDC_NUMBER_Not,button,1342242817 Control26=IDC_NUMBER_Int,button,1342242817 Control27=IDC_NUMBER_Derivative,button,1342242817 Control28=IDC_NUMBER_X2,button,1342242817 Control29=IDC_NUMBER_Tan,button,1342242817 Control30=IDC_NUMBER_Cos,button,1342242817 Control31=IDC_NUMBER_X3,button,1342242817 Control32=IDC_NUMBER_ni,button,1342242817 Control33=IDC_NUMBER_Sin,button,1342242817 Control34=IDC_NUMBER_Xy,button,1342242817 Control35=IDC_NUMBER_Lg,button,1342242817 Control36=IDC_NUMBER_Ln,button,1342242817 Control37=IDC_NUMBER_BackSpace,button,1342242817 Control38=IDC_NUMBER_CE,button,1342242817 Control39=IDC_NUMBER_Clear,button,1342242817 Control40=IDC_NUMBER_MC,button,1342242817 Control41=IDC_NUMBER_MR,button,1342242817 Control42=IDC_NUMBER_MS,button,1342242817 Control43=IDC_NUMBER_M_Add,button,1342242817 Control44=IDC_STATIC_M,static,1342181889 Control45=IDC_NUMBER_Log,button,1342242817 Control46=IDC_Decimal,button,1342308361 Control47=IDC_Octal,button,1342177289 Control48=IDC_Bin,button,1342177289 Control49=IDC_Angle,button,1342308361 Control50=IDC_Radian,button,1342177289 Control51=IDC_Inv,button,1342242819 Control52=IDC_Hyp,button,1342242819 Control53=IDC_STATIC,button,1342177287 Control54=IDC_STATIC,button,1342177287 Control55=IDC_STATIC,button,1342177287
1001-collection-codelet
科学计算器/最终修订版/科学计算器/SC.clw
Clarion
gpl3
3,293
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__38872E0A_C979_49D1_A835_F081E305B0B8__INCLUDED_) #define AFX_STDAFX_H__38872E0A_C979_49D1_A835_F081E305B0B8__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include <afxwin.h> // MFC core and standard components #include <afxext.h> // MFC extensions #include <afxdisp.h> // MFC Automation classes #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls #ifndef _AFX_NO_AFXCMN_SUPPORT #include <afxcmn.h> // MFC support for Windows Common Controls #endif // _AFX_NO_AFXCMN_SUPPORT //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__38872E0A_C979_49D1_A835_F081E305B0B8__INCLUDED_)
1001-collection-codelet
科学计算器/最终修订版/科学计算器/StdAfx.h
C
gpl3
1,054
// SC.h : main header file for the SC application // #if !defined(AFX_SC_H__31046A8F_CDB6_43A4_A4E7_77300BF8E218__INCLUDED_) #define AFX_SC_H__31046A8F_CDB6_43A4_A4E7_77300BF8E218__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CSCApp: // See SC.cpp for the implementation of this class // class CSCApp : public CWinApp { public: CSCApp(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CSCApp) public: virtual BOOL InitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CSCApp) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_SC_H__31046A8F_CDB6_43A4_A4E7_77300BF8E218__INCLUDED_)
1001-collection-codelet
科学计算器/最终修订版/科学计算器/SC.h
C++
gpl3
1,280
//{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by SC.rc // #define IDM_ABOUTBOX 0x0010 #define IDD_ABOUTBOX 100 #define IDS_ABOUTBOX 101 #define IDD_SC_DIALOG 102 #define IDR_MAINFRAME 128 #define IDC_EDIT_PUTOUT 1000 #define IDC_NUMBER1 1001 #define IDC_NUMBER2 1002 #define IDC_NUMBER3 1003 #define IDC_NUMBER4 1004 #define IDC_NUMBER5 1005 #define IDC_NUMBER6 1006 #define IDC_NUMBER7 1007 #define IDC_NUMBER8 1008 #define IDC_NUMBER9 1009 #define IDC_NUMBER0 1010 #define IDC_NUMBER_pi 1017 #define IDC_NUMBER_PlusMinus 1018 #define IDC_NUMBER_Point 1019 #define IDC_NUMBER_Divide 1020 #define IDC_NUMBER_Multiply 1021 #define IDC_NUMBER_Subtract 1022 #define IDC_NUMBER_Add 1023 #define IDC_NUMBER_Mod 1024 #define IDC_NUMBER_Or 1025 #define IDC_NUMBER_Lsh 1026 #define IDC_NUMBER_And 1027 #define IDC_NUMBER_Xor 1028 #define IDC_NUMBER_Not 1029 #define IDC_NUMBER_Int 1030 #define IDC_NUMBER_Equal 1031 #define IDC_NUMBER_Derivative 1032 #define IDC_NUMBER_X2 1033 #define IDC_NUMBER_X3 1034 #define IDC_NUMBER_Xy 1035 #define IDC_NUMBER_ni 1036 #define IDC_NUMBER_Tan 1037 #define IDC_NUMBER_Cos 1038 #define IDC_NUMBER_Sin 1039 #define IDC_NUMBER_Lg 1040 #define IDC_NUMBER_Log 1041 #define IDC_NUMBER_Ln 1042 #define IDC_NUMBER_BackSpace 1043 #define IDC_NUMBER_CE 1044 #define IDC_NUMBER_Clear 1045 #define IDC_NUMBER_MC 1046 #define IDC_NUMBER_MR 1047 #define IDC_NUMBER_MS 1048 #define IDC_NUMBER_M_Add 1049 #define IDC_STATIC_M 1050 #define IDC_Decimal 1056 #define IDC_Octal 1057 #define IDC_Bin 1058 #define IDC_Angle 1059 #define IDC_Radian 1060 #define IDC_Inv 1061 #define IDC_Hyp 1062 #define IDC_Angle2 1063 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 136 #define _APS_NEXT_COMMAND_VALUE 32771 #define _APS_NEXT_CONTROL_VALUE 1063 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif
1001-collection-codelet
科学计算器/最终修订版/科学计算器/resource.h
C
gpl3
3,072
// stdafx.cpp : source file that includes just the standard includes // SC.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h"
1001-collection-codelet
科学计算器/最终修订版/科学计算器/StdAfx.cpp
C++
gpl3
204
#include "stdio.h" #include "string.h" #include "types.h" #include "errors.h" #include "list.h" #include "stream.h" //MEM_DEBUG_SUPPORT #define STRM_MALLOC_NODBG(strmhdl, size) (((struct stream*)(strmhdl))->mem_ops.malloc(size)) #define STRM_FREE_NODBG(strmhdl, ptr) (((struct stream*)(strmhdl))->mem_ops.free(ptr)) #define STRM_PRINT printf #define STRM_DEBUG printf #define DBG_LIB "\t\t\t<lib>" #if 0//MEM_DEBUG_SUPPORT #define STRM_MALLOC_DBG(strmhdl, size) (((struct stream*)(strmhdl))->mem_ops.malloc_dbg(size, __FILE__, __LINE__)) #define STRM_FREE_DBG(strmhdl, ptr) (((struct stream*)(strmhdl))->mem_ops.free_dbg(ptr, __FILE__, __LINE__)) #else #define STRM_MALLOC_DBG(strmhdl, size) STRM_MALLOC_NODBG(strmhdl, size) #define STRM_FREE_DBG(strmhdl, ptr) STRM_FREE_NODBG(strmhdl, ptr) #endif #if 0//MEM_DEBUG_SUPPORT #define STRM_MALLOC(strmhdl, size) STRM_MALLOC_DBG(strmhdl, size) #define STRM_FREE(strmhdl, ptr) STRM_FREE_DBG(strmhdl, ptr) #else #define STRM_MALLOC(strmhdl, size) STRM_MALLOC_NODBG(strmhdl, size) #define STRM_FREE(strmhdl, ptr) STRM_FREE_NODBG(strmhdl, ptr) #endif struct stream_node { struct list_head list; /**< list list */ uint16_t idx; uint16_t size; void * ptr; }; struct stream { struct list_head header; /**< list header */ struct malloc_ops mem_ops; struct stream_node *node_pool; struct stream_node *(*new_node)(struct stream *strm); void (*delete_node)(struct stream *strm, struct stream_node *node); uint16_t max_num; uint16_t num; uint16_t idx; uint16_t type; }; static struct stream_node *new_node_static(struct stream *strm) { int i =0; if (strm) STRM_PRINT("\t\t"DBG_LIB"snew %d\n", strm->num); for (; i<strm->max_num; i++) { if (list_is_del(&strm->node_pool[i].list)) { return &strm->node_pool[i]; } } //return (struct stream_node*)malloc(sizeof(struct stream)); return NULL; } static void free_node_static(struct stream *strm, struct stream_node *node) { if (node) STRM_PRINT("\t\t"DBG_LIB"sfree %d\n", node->idx); //free(node); } static struct stream_node *new_node_dynamic(struct stream *strm) { //if (strm) //STRM_PRINT("\t\t"DBG_LIB"dnew %d\n", strm->num); return (struct stream_node*)malloc(sizeof(struct stream)); } static void free_node_dynamic(struct stream *strm, struct stream_node *node) { //if (node) //STRM_PRINT("\t\t"DBG_LIB"dfree %d\n", node->idx); free(node); } void* stream_open(uint16_t type, struct stream_param *param) { struct stream *strm; if (NULL == param) { return NULL; } if ((NULL == param->mem_ops.malloc) || (NULL == param->mem_ops.free)) { return NULL; } strm = (struct stream *)param->mem_ops.malloc(sizeof(struct stream)); if (NULL == strm) { return NULL; } memset(strm, 0, sizeof(struct stream)); memcpy(&strm->mem_ops, &param->mem_ops, sizeof(struct malloc_ops)); INIT_LIST_HEAD(&strm->header); strm->max_num = param->max_num; strm->type = type; STRM_PRINT(DBG_LIB "strm: hdl=%x, type=%x, num=%d/%d\n", strm, strm->type, strm->num, strm->max_num); if (STRM_TYPE_DYNAMIC & strm->type) { strm->new_node = new_node_dynamic; strm->delete_node = free_node_dynamic; } else { uint32_t sz; if (0 == strm->max_num) { STRM_PRINT(DBG_LIB"Param Err@max_num\n"); goto INIT_STRM_ERROR; } sz = strm->max_num * sizeof(struct stream_node); strm->node_pool = (struct stream_node *)STRM_MALLOC(strm, sz); if (NULL == strm->node_pool) { goto INIT_STRM_ERROR; } STRM_PRINT(DBG_LIB"create pool\n"); memset(strm->node_pool, 0, sz); strm->new_node = new_node_static; strm->delete_node = free_node_static; } return (void*)strm; INIT_STRM_ERROR: param->mem_ops.free(strm); return NULL; } int stream_close(void *hdl) { struct stream *strm = (struct stream *)hdl; struct stream_node *node = NULL; while (!list_empty(&strm->header)) {/* Delete. */ node = list_first_entry(&strm->header, struct stream_node , list); list_del(&node->list); /* Free node */ //STRM_PRINT("Remove id %d\n", node->idx); //free(node->user_data); strm->num--; strm->delete_node(strm, node); } if ((!(STRM_TYPE_DYNAMIC & strm->type)) && (strm->node_pool)) { STRM_PRINT(DBG_LIB"delete pool\n"); STRM_FREE(strm, strm->node_pool); } STRM_FREE(strm, strm); return ENOERROR; } uint32_t stream_get(void *hdl, void *data, uint32_t size, uint32_t mode) { struct stream *strm = (struct stream *)hdl; struct stream_node *node = NULL; uint16_t sz = 0; if (list_empty(&strm->header)) { STRM_DEBUG(DBG_LIB"empty\n"); return 0; } // del as queue mode, del tail if (STRM_MODE_FIFO & mode) { node = list_first_entry(&strm->header, struct stream_node, list); } else //del as stack mode, del head { node = list_last_entry(&strm->header, struct stream_node, list); } if (node) { STRM_DEBUG(DBG_LIB"get %d\n", node->idx); if (strm->type & STRM_TYPE_USRPTR) { sz = node->size; *(uint32_t*)data = (uint32_t)node->ptr; } else { sz = (uint16_t)size; sz = min(node->size, sz); memcpy(data, node->ptr, sz); STRM_FREE(strm, node->ptr); } list_del(&node->list); strm->delete_node(strm, node); strm->num--; } return sz; } uint32_t stream_put(void *hdl, void *data, uint32_t size, uint32_t mode) { struct stream *strm = (struct stream *)hdl; struct stream_node *node; uint16_t sz = 0; if ((strm->max_num > 0) && (strm->num >= strm->max_num)) { STRM_DEBUG(DBG_LIB"full %d/%d\n", strm->num, strm->max_num); return 0; } if (NULL == (node = strm->new_node(strm))) { STRM_DEBUG(DBG_LIB"new err\n"); return 0; } node->idx = strm->idx++; if (strm->type & STRM_TYPE_USRPTR) { sz = (uint16_t)size; node->ptr = data; node->size = sz; } else { if (NULL == (node->ptr = STRM_MALLOC(strm, size))) { strm->delete_node(strm, node); return 0; } sz = (uint16_t)size; memcpy(node->ptr, data, sz); node->size = sz ; } // add as queue mode, add to tail //if (STRM_MODE_FIFO & mode) { list_add_tail(&node->list, &strm->header); } //else // add as stack mode, add to head //{ // list_add(&node->list, &strm->header); //} STRM_DEBUG(DBG_LIB"put %d\n", node->idx); strm->num++; return sz; }
1001-collection-codelet
linux列表移植/linux_list_to_win32/stream.c
C
gpl3
6,516
#ifndef _MY_STTREAM_H_ #define _MY_STTREAM_H_ #ifdef __cplusplus extern "C" { #endif struct malloc_ops { void *(*malloc)(uint32_t size); void *(*free)(void *ptr); void *(*malloc_dbg)(uint32_t size, uint16_t *file, uint32_t line); void *(*free_dbg)(void *ptr, uint16_t *file, uint32_t line); }; #define min(a, b) ((a)<(b)?(a):(b)) struct stream_param { struct malloc_ops mem_ops; uint16_t max_num; }; #define STRM_TYPE_VALUE (1<<0) #define STRM_TYPE_USRPTR (1<<1) #define STRM_TYPE_DYNAMIC (1<<2) #define STRM_MODE_FIFO (1<<3) void* stream_open(uint16_t type, struct stream_param *param); int stream_close(void *hdl); uint32_t stream_get(void *hdl, void *data, uint32_t size, uint32_t mode); uint32_t stream_put(void *hdl, void *data, uint32_t size, uint32_t mode); #ifdef __cplusplus } #endif #endif
1001-collection-codelet
linux列表移植/linux_list_to_win32/stream.h
C
gpl3
887
#include "stdio.h" #include "stdlib.h" #include "string.h" #include "types.h" #include "stream.h" int stream_test(); int main() { stream_test(); return 0; } int stream_test() { struct stream_param param = {0}; void *out_hdl; void *in_hdl; void *hdl; uint32_t ret, len,tmp; char buf[34]; char *str; int opt; param.max_num = 9; param.mem_ops.malloc = malloc; param.mem_ops.free = free; in_hdl = stream_open(STRM_TYPE_VALUE, &param); if (!in_hdl) { stream_close(out_hdl); return 0; } param.max_num = 0; out_hdl = stream_open(STRM_TYPE_VALUE | STRM_TYPE_DYNAMIC, &param); if (!out_hdl) return 0; tmp = 0; while (tmp++<143) { srand(100000+tmp); opt = rand()%4; switch (opt) { case 0: case 2: str = "input"; hdl = in_hdl; break; case 1: case 3: #if 0 str = "output"; hdl = out_hdl; #else str = "input"; hdl = in_hdl; #endif break; default: printf("..skip %d:%d\n", tmp, opt); continue; break; } if ((0 == opt) || (3 == opt)) { sprintf(buf, "%s_%d", str, tmp); len = strlen(buf); ret = stream_put(hdl, buf, len, STRM_MODE_FIFO);//STRM_MODE_FIFO if (ret) printf("put %s Ok:%d/%d\n", buf, ret, len); else printf("put %s Fail:%d/%d \n", buf, ret, len); } else if ((1 == opt) || (4 == opt)) { len = 34; ret = stream_get(hdl, buf, len, STRM_MODE_FIFO);//STRM_MODE_FIFO if (ret) printf("get %s Ok:%d/%d\n", buf, ret, len); else printf("get %s Fail:%d/%d \n", str, ret, len); } } stream_close(out_hdl); stream_close(in_hdl); return 0; }
1001-collection-codelet
linux列表移植/linux_list_to_win32/test.c
C
gpl3
1,671
#ifndef _LIST_H_ #define _LIST_H_ #if defined(_LINUX_GCC_) #define INLINE inline #else #define INLINE __inline #endif #ifdef __cplusplus extern "C" { #endif /* * Simple doubly linked list implementation. * * Some of the internal functions ("__xxx") are useful when * manipulating whole lists rather than single entries, as * sometimes we already know the next/prev entries and we can * generate better code by using them directly rather than * using the generic single-entry routines. */ struct list_head { struct list_head *next, *prev; }; #define LIST_HEAD_INIT(name) { &(name), &(name) } #define LIST_HEAD(name) \ struct list_head name = LIST_HEAD_INIT(name) static INLINE void INIT_LIST_HEAD(struct list_head *list) { list->next = list; list->prev = list; } /* * Insert a new entry between two known consecutive entries. * * This is only for internal list manipulation where we know * the prev/next entries already! */ static INLINE void __list_add(struct list_head *new, struct list_head *prev, struct list_head *next) { next->prev = new; new->next = next; new->prev = prev; prev->next = new; } /** * list_add - add a new entry * @new: new entry to be added * @head: list head to add it after * * Insert a new entry after the specified head. * This is good for implementing stacks. */ static INLINE void list_add(struct list_head *new, struct list_head *head) { __list_add(new, head, head->next); } /** * list_add_tail - add a new entry * @new: new entry to be added * @head: list head to add it before * * Insert a new entry before the specified head. * This is useful for implementing queues. */ static INLINE void list_add_tail(struct list_head *new, struct list_head *head) { __list_add(new, head->prev, head); } /* * Delete a list entry by making the prev/next entries * point to each other. * * This is only for internal list manipulation where we know * the prev/next entries already! */ static INLINE void __list_del(struct list_head * prev, struct list_head * next) { next->prev = prev; prev->next = next; } /** * list_del - deletes entry from list. * @entry: the element to delete from the list. * Note: list_empty() on entry does not return true after this, the entry is * in an undefined state. */ static INLINE void list_del(struct list_head *entry) { __list_del(entry->prev, entry->next); entry->next = NULL; entry->prev = NULL; } static INLINE int list_is_del(struct list_head *entry) { return (entry->next == NULL) && (entry->prev == entry->next); } /** * list_replace - replace old entry by new one * @old : the element to be replaced * @new : the new element to insert * * If @old was empty, it will be overwritten. */ static INLINE void list_replace(struct list_head *old, struct list_head *new) { new->next = old->next; new->next->prev = new; new->prev = old->prev; new->prev->next = new; } static INLINE void list_replace_init(struct list_head *old, struct list_head *new) { list_replace(old, new); INIT_LIST_HEAD(old); } /** * list_del_init - deletes entry from list and reinitialize it. * @entry: the element to delete from the list. */ static INLINE void list_del_init(struct list_head *entry) { __list_del(entry->prev, entry->next); INIT_LIST_HEAD(entry); } /** * list_move - delete from one list and add as another's head * @list: the entry to move * @head: the head that will precede our entry */ static INLINE void list_move(struct list_head *list, struct list_head *head) { __list_del(list->prev, list->next); list_add(list, head); } /** * list_move_tail - delete from one list and add as another's tail * @list: the entry to move * @head: the head that will follow our entry */ static INLINE void list_move_tail(struct list_head *list, struct list_head *head) { __list_del(list->prev, list->next); list_add_tail(list, head); } /** * list_is_last - tests whether @list is the last entry in list @head * @list: the entry to test * @head: the head of the list */ static INLINE int list_is_last(const struct list_head *list, const struct list_head *head) { return list->next == head; } /** * list_empty - tests whether a list is empty * @head: the list to test. */ static INLINE int list_empty(const struct list_head *head) { return head->next == head; } /** * list_empty_careful - tests whether a list is empty and not being modified * @head: the list to test * * Description: * tests whether a list is empty _and_ checks that no other CPU might be * in the process of modifying either member (next or prev) * * NOTE: using list_empty_careful() without synchronization * can only be safe if the only activity that can happen * to the list entry is list_del_init(). Eg. it cannot be used * if another CPU could re-list_add() it. */ static INLINE int list_empty_careful(const struct list_head *head) { struct list_head *next = head->next; return (next == head) && (next == head->prev); } /** * list_is_singular - tests whether a list has just one entry. * @head: the list to test. */ static INLINE int list_is_singular(const struct list_head *head) { return !list_empty(head) && (head->next == head->prev); } static INLINE void __list_cut_position(struct list_head *list, struct list_head *head, struct list_head *entry) { struct list_head *new_first = entry->next; list->next = head->next; list->next->prev = list; list->prev = entry; entry->next = list; head->next = new_first; new_first->prev = head; } /** * list_cut_position - cut a list into two * @list: a new list to add all removed entries * @head: a list with entries * @entry: an entry within head, could be the head itself * and if so we won't cut the list * * This helper moves the initial part of @head, up to and * including @entry, from @head to @list. You should * pass on @entry an element you know is on @head. @list * should be an empty list or a list you do not care about * losing its data. * */ static INLINE void list_cut_position(struct list_head *list, struct list_head *head, struct list_head *entry) { if (list_empty(head)) return; if (list_is_singular(head) && (head->next != entry && head != entry)) return; if (entry == head) INIT_LIST_HEAD(list); else __list_cut_position(list, head, entry); } static INLINE void __list_splice(const struct list_head *list, struct list_head *prev, struct list_head *next) { struct list_head *first = list->next; struct list_head *last = list->prev; first->prev = prev; prev->next = first; last->next = next; next->prev = last; } /** * list_splice - join two lists, this is designed for stacks * @list: the new list to add. * @head: the place to add it in the first list. */ static INLINE void list_splice(const struct list_head *list, struct list_head *head) { if (!list_empty(list)) __list_splice(list, head, head->next); } /** * list_splice_tail - join two lists, each list being a queue * @list: the new list to add. * @head: the place to add it in the first list. */ static INLINE void list_splice_tail(struct list_head *list, struct list_head *head) { if (!list_empty(list)) __list_splice(list, head->prev, head); } /** * list_splice_init - join two lists and reinitialise the emptied list. * @list: the new list to add. * @head: the place to add it in the first list. * * The list at @list is reinitialised */ static INLINE void list_splice_init(struct list_head *list, struct list_head *head) { if (!list_empty(list)) { __list_splice(list, head, head->next); INIT_LIST_HEAD(list); } } /** * list_splice_tail_init - join two lists and reinitialise the emptied list * @list: the new list to add. * @head: the place to add it in the first list. * * Each of the lists is a queue. * The list at @list is reinitialised */ static INLINE void list_splice_tail_init(struct list_head *list, struct list_head *head) { if (!list_empty(list)) { __list_splice(list, head->prev, head); INIT_LIST_HEAD(list); } } /** * container_of - cast a member of a structure out to the containing structure * @ptr: the pointer to the member. * @type: the type of the container struct this is embedded in. * @member: the name of the member within the struct. * */ #ifdef _LINUX_GCC_ #define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) #else #define offsetof(TYPE, MEMBER) ((unsigned int) &((TYPE *)0)->MEMBER) #define container_of(ptr, type, member) ((type *)( (char *)( ptr ) - offsetof(type,member))) #endif /** * list_entry - get the struct for this entry * @ptr: the &struct list_head pointer. * @type: the type of the struct this is embedded in. * @member: the name of the list_struct within the struct. */ #define list_entry(ptr, type, member) \ container_of(ptr, type, member) /** * list_first_entry - get the first element from a list * @ptr: the list head to take the element from. * @type: the type of the struct this is embedded in. * @member: the name of the list_struct within the struct. * * Note, that list is expected to be not empty. */ #define list_first_entry(ptr, type, member) \ list_entry((ptr)->next, type, member) /** * list_last_entry - get the last element from a list * @head: the list head to take the element from. * @type: the type of the struct this is embedded in. * @member: the name of the list_struct within the struct. * * Note, that list is expected to be not empty. */ #define list_last_entry(head, type, member) \ list_entry((head)->prev, type, member) /** * list_for_each - iterate over a list * @pos: the &struct list_head to use as a loop cursor. * @head: the head for your list. */ #define list_for_each(pos, head) \ for (pos = (head)->next; pos != (head); \ pos = pos->next) /** * __list_for_each - iterate over a list * @pos: the &struct list_head to use as a loop cursor. * @head: the head for your list. * * This variant differs from list_for_each() in that it's the * simplest possible list iteration code, no prefetching is done. * Use this for code that knows the list to be very short (empty * or 1 entry) most of the time. */ #define __list_for_each(pos, head) \ for (pos = (head)->next; pos != (head); pos = pos->next) /** * list_for_each_prev - iterate over a list backwards * @pos: the &struct list_head to use as a loop cursor. * @head: the head for your list. */ #define list_for_each_prev(pos, head) \ for (pos = (head)->prev; pos != (head); \ pos = pos->prev) /** * list_for_each_safe - iterate over a list safe against removal of list entry * @pos: the &struct list_head to use as a loop cursor. * @n: another &struct list_head to use as temporary storage * @head: the head for your list. */ #define list_for_each_safe(pos, n, head) \ for (pos = (head)->next, n = pos->next; pos != (head); \ pos = n, n = pos->next) /** * list_for_each_prev_safe - iterate over a list backwards safe against removal of list entry * @pos: the &struct list_head to use as a loop cursor. * @n: another &struct list_head to use as temporary storage * @head: the head for your list. */ #define list_for_each_prev_safe(pos, n, head) \ for (pos = (head)->prev, n = pos->prev; \ pos != (head); \ pos = n, n = pos->prev) /** * list_for_each_entry - iterate over list of given type * @pos: the type * to use as a loop cursor. * @head: the head for your list. * @member: the name of the list_struct within the struct. */ #define list_for_each_entry(pos, head, member) \ for (pos = list_entry((head)->next, typeof(*pos), member); \ &pos->member != (head); \ pos = list_entry(pos->member.next, typeof(*pos), member)) /** * list_for_each_entry_reverse - iterate backwards over list of given type. * @pos: the type * to use as a loop cursor. * @head: the head for your list. * @member: the name of the list_struct within the struct. */ #define list_for_each_entry_reverse(pos, head, member) \ for (pos = list_entry((head)->prev, typeof(*pos), member); \ &pos->member != (head); \ pos = list_entry(pos->member.prev, typeof(*pos), member)) /** * list_prepare_entry - prepare a pos entry for use in list_for_each_entry_continue() * @pos: the type * to use as a start point * @head: the head of the list * @member: the name of the list_struct within the struct. * * Prepares a pos entry for use as a start point in list_for_each_entry_continue(). */ #define list_prepare_entry(pos, head, member) \ ((pos) ? : list_entry(head, typeof(*pos), member)) /** * list_for_each_entry_continue - continue iteration over list of given type * @pos: the type * to use as a loop cursor. * @head: the head for your list. * @member: the name of the list_struct within the struct. * * Continue to iterate over list of given type, continuing after * the current position. */ #define list_for_each_entry_continue(pos, head, member) \ for (pos = list_entry(pos->member.next, typeof(*pos), member); \ &pos->member != (head); \ pos = list_entry(pos->member.next, typeof(*pos), member)) /** * list_for_each_entry_continue_reverse - iterate backwards from the given point * @pos: the type * to use as a loop cursor. * @head: the head for your list. * @member: the name of the list_struct within the struct. * * Start to iterate over list of given type backwards, continuing after * the current position. */ #define list_for_each_entry_continue_reverse(pos, head, member) \ for (pos = list_entry(pos->member.prev, typeof(*pos), member); \ &pos->member != (head); \ pos = list_entry(pos->member.prev, typeof(*pos), member)) /** * list_for_each_entry_from - iterate over list of given type from the current point * @pos: the type * to use as a loop cursor. * @head: the head for your list. * @member: the name of the list_struct within the struct. * * Iterate over list of given type, continuing from current position. */ #define list_for_each_entry_from(pos, head, member) \ for (; &pos->member != (head); \ pos = list_entry(pos->member.next, typeof(*pos), member)) /** * list_for_each_entry_safe - iterate over list of given type safe against removal of list entry * @pos: the type * to use as a loop cursor. * @n: another type * to use as temporary storage * @head: the head for your list. * @member: the name of the list_struct within the struct. */ #define list_for_each_entry_safe(pos, n, head, member) \ for (pos = list_entry((head)->next, typeof(*pos), member), \ n = list_entry(pos->member.next, typeof(*pos), member); \ &pos->member != (head); \ pos = n, n = list_entry(n->member.next, typeof(*n), member)) /** * list_for_each_entry_safe_continue * @pos: the type * to use as a loop cursor. * @n: another type * to use as temporary storage * @head: the head for your list. * @member: the name of the list_struct within the struct. * * Iterate over list of given type, continuing after current point, * safe against removal of list entry. */ #define list_for_each_entry_safe_continue(pos, n, head, member) \ for (pos = list_entry(pos->member.next, typeof(*pos), member), \ n = list_entry(pos->member.next, typeof(*pos), member); \ &pos->member != (head); \ pos = n, n = list_entry(n->member.next, typeof(*n), member)) /** * list_for_each_entry_safe_from * @pos: the type * to use as a loop cursor. * @n: another type * to use as temporary storage * @head: the head for your list. * @member: the name of the list_struct within the struct. * * Iterate over list of given type from current point, safe against * removal of list entry. */ #define list_for_each_entry_safe_from(pos, n, head, member) \ for (n = list_entry(pos->member.next, typeof(*pos), member); \ &pos->member != (head); \ pos = n, n = list_entry(n->member.next, typeof(*n), member)) /** * list_for_each_entry_safe_reverse * @pos: the type * to use as a loop cursor. * @n: another type * to use as temporary storage * @head: the head for your list. * @member: the name of the list_struct within the struct. * * Iterate backwards over list of given type, safe against removal * of list entry. */ #define list_for_each_entry_safe_reverse(pos, n, head, member) \ for (pos = list_entry((head)->prev, typeof(*pos), member), \ n = list_entry(pos->member.prev, typeof(*pos), member); \ &pos->member != (head); \ pos = n, n = list_entry(n->member.prev, typeof(*n), member)) #ifdef __cplusplus } #endif #endif //_LINUX_LIST_H
1001-collection-codelet
linux列表移植/linux_list_to_win32/list.h
C
gpl3
17,786
#ifndef __MY_ERRORS_H__ #define __MY_ERRORS_H__ #define ENOERROR (0) #define ELIBPROC (1) #define EPARAM (2) #define EDRAIN (3) typedef enum { FILTER_NULL, FILTER_RESAMPLE, FILTER_AUTOMUTE, FILTER_LAST, }T_eFILTER_TYPE; #endif
1001-collection-codelet
linux列表移植/linux_list_to_win32/include/errors.h
C
gpl3
272
#ifndef _ANYKA_BITOPS_H #define _ANYKA_BITOPS_H #include "compiler.h" #define BITS_PER_LONG 32 #define BIT(nr) (1UL << (nr)) #if 0 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) #define BITS_PER_BYTE 8 /** * test_bit - Determine whether a bit is set * @nr: bit number to test * @addr: Address to start counting from */ static __inline__ int test_bit(int nr, const volatile unsigned long *addr) { return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); } static __inline__ void set_bit(int nr, volatile unsigned long *addr) { unsigned long mask = BIT_MASK(nr); unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); *p |= mask; } static __inline__ void clear_bit(int nr, volatile unsigned long *addr) { unsigned long mask = BIT_MASK(nr); unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); *p &= ~mask; } #else #define test_bit(nr, addr) (1UL & (((unsigned long *)addr)[0] >> (nr & (31)))) #define set_bit(nr, addr) (((unsigned long *)addr)[0] |= BIT(nr & (31))) #define clear_bit(nr, addr) (((unsigned long *)addr)[0] &= (~ (BIT(nr & (31))))) #endif #endif
1001-collection-codelet
linux列表移植/linux_list_to_win32/include/bitops.h
C
gpl3
1,197
/* This file is generally used by user-level software, so you need to * be a little careful about namespace pollution etc. Also, we cannot * assume GCC is being used. */ #ifndef __ELVON_POSIX_TYPES_H #define __ELVON_POSIX_TYPES_H typedef unsigned long __kernel_size_t; typedef long __kernel_ssize_t; typedef long __kernel_time_t; typedef long __kernel_clock_t; typedef long __kernel_off_t; #endif
1001-collection-codelet
linux列表移植/linux_list_to_win32/include/posix_types.h
C
gpl3
498
#ifndef __ELVON_COMPILER_H #define __ELVON_COMPILER_H #if 0//def __CHECKER__ #else # define __user # define __force #endif #define __inline__ __inline #endif
1001-collection-codelet
linux列表移植/linux_list_to_win32/include/compiler.h
C
gpl3
179
#ifndef _ASM_GENERIC_TYPES_H #define _ASM_GENERIC_TYPES_H /* * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the * header files exported to user space */ typedef signed char __s8; typedef unsigned char __u8; typedef signed short __s16; typedef unsigned short __u16; typedef signed int __s32; typedef unsigned int __u32; typedef signed long __s64; typedef unsigned long __u64; //---------------------------- typedef signed char s8; typedef unsigned char u8; typedef signed short s16; typedef unsigned short u16; typedef signed int s32; typedef unsigned int u32; typedef signed long s64; typedef unsigned long u64; #define S8_C(x) x #define U8_C(x) x ## U #define S16_C(x) x #define U16_C(x) x ## U #define S32_C(x) x #define U32_C(x) x ## U #define S64_C(x) x ## L #define U64_C(x) x ## UL #endif
1001-collection-codelet
linux列表移植/linux_list_to_win32/include/asm_types.h
C
gpl3
878
#ifndef _ELVON_TYPES_H #define _ELVON_TYPES_H #include "asm_types.h" #include "posix_types.h" /* * The following typedefs are also protected by individual ifdefs for * historical reasons: */ #if 0//ndef _SIZE_T #define _SIZE_T typedef __kernel_size_t size_t; #endif #ifndef _SSIZE_T #define _SSIZE_T typedef __kernel_ssize_t ssize_t; #endif #ifndef _STRUCT_TIMESPEC #define _STRUCT_TIMESPEC struct timespec { __kernel_time_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ }; #endif #define __bitwise__ #if 0//def __CHECK_ENDIAN__ #define __bitwise __bitwise__ #else #define __bitwise #endif /* bsd */ typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; /* sysv */ typedef unsigned char unchar; typedef unsigned short ushort; typedef unsigned int uint; typedef unsigned long ulong; #ifndef __BIT_TYPES_DEFINED__ #define __BIT_TYPES_DEFINED__ //typedef __u8 u_int8_t; typedef __s8 int8_t; //typedef __u16 u_int16_t; typedef __s16 int16_t; //typedef __u32 u_int32_t; typedef __s32 int32_t; #endif /* !(__BIT_TYPES_DEFINED__) */ typedef __u8 uint8_t; typedef __u16 uint16_t; typedef __u32 uint32_t; #define TRUE 1 #define FALSE 0 //#define boolean uint8_t typedef uint8_t boolean; typedef unsigned __bitwise__ gfp_t; #ifndef NULL #define NULL 0 #endif typedef u32 phys_addr_t; typedef u32 dma_addr_t; typedef phys_addr_t resource_size_t; typedef struct { volatile int counter; } atomic_t; #endif
1001-collection-codelet
linux列表移植/linux_list_to_win32/include/types.h
C
gpl3
1,625
// HaarDWT.h : main header file for the HAARDWT application // #if !defined(AFX_HAARDWT_H__928D14AE_D76A_43B2_AD51_CB15BC20FB53__INCLUDED_) #define AFX_HAARDWT_H__928D14AE_D76A_43B2_AD51_CB15BC20FB53__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CHaarDWTApp: // See HaarDWT.cpp for the implementation of this class // class CHaarDWTApp : public CWinApp { public: CHaarDWTApp(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CHaarDWTApp) public: virtual BOOL InitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CHaarDWTApp) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_HAARDWT_H__928D14AE_D76A_43B2_AD51_CB15BC20FB53__INCLUDED_)
1001-collection-codelet
小波分解/小波工程/HaarDWT/HaarDWT.h
C++
gpl3
1,335
// HaarDWT.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "HaarDWT.h" #include "HaarDWTDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CHaarDWTApp BEGIN_MESSAGE_MAP(CHaarDWTApp, CWinApp) //{{AFX_MSG_MAP(CHaarDWTApp) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG ON_COMMAND(ID_HELP, CWinApp::OnHelp) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CHaarDWTApp construction CHaarDWTApp::CHaarDWTApp() { // TODO: add construction code here, // Place all significant initialization in InitInstance } ///////////////////////////////////////////////////////////////////////////// // The one and only CHaarDWTApp object CHaarDWTApp theApp; ///////////////////////////////////////////////////////////////////////////// // CHaarDWTApp initialization BOOL CHaarDWTApp::InitInstance() { AfxEnableControlContainer(); // Standard initialization // If you are not using these features and wish to reduce the size // of your final executable, you should remove from the following // the specific initialization routines you do not need. #ifdef _AFXDLL Enable3dControls(); // Call this when using MFC in a shared DLL #else Enable3dControlsStatic(); // Call this when linking to MFC statically #endif CHaarDWTDlg dlg; m_pMainWnd = &dlg; int nResponse = dlg.DoModal(); if (nResponse == IDOK) { // TODO: Place code here to handle when the dialog is // dismissed with OK } else if (nResponse == IDCANCEL) { // TODO: Place code here to handle when the dialog is // dismissed with Cancel } // Since the dialog has been closed, return FALSE so that we exit the // application, rather than start the application's message pump. return FALSE; }
1001-collection-codelet
小波分解/小波工程/HaarDWT/HaarDWT.cpp
C++
gpl3
2,077
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__5D38A761_4016_40C4_890A_75637A578248__INCLUDED_) #define AFX_STDAFX_H__5D38A761_4016_40C4_890A_75637A578248__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include <afxwin.h> // MFC core and standard components #include <afxext.h> // MFC extensions #include <afxdisp.h> // MFC Automation classes #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls #ifndef _AFX_NO_AFXCMN_SUPPORT #include <afxcmn.h> // MFC support for Windows Common Controls #endif // _AFX_NO_AFXCMN_SUPPORT //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__5D38A761_4016_40C4_890A_75637A578248__INCLUDED_)
1001-collection-codelet
小波分解/小波工程/HaarDWT/StdAfx.h
C
gpl3
1,056
#if !defined(AFX_LOADDATA_H__F0E2AFF9_767E_49AC_8462_9173D1AF04C6__INCLUDED_) #define AFX_LOADDATA_H__F0E2AFF9_767E_49AC_8462_9173D1AF04C6__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // loaddata.h : header file // #include "HaarDWTDlg.h" ///////////////////////////////////////////////////////////////////////////// // Cloaddata dialog class Cloaddata : public CDialog { // Construction public: int inputmodel; int indextemp; double Maxcount; int lentemp; CString inputdatafile; double databuf[MAXLEN]; Cloaddata(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(Cloaddata) enum { IDD = IDD_INPUTDIG }; CListCtrl m_buflist; CEdit m_input; double m_rprint; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(Cloaddata) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(Cloaddata) virtual void OnOK(); afx_msg void OnFileadd(); afx_msg void OnAdddta(); virtual BOOL OnInitDialog(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_LOADDATA_H__F0E2AFF9_767E_49AC_8462_9173D1AF04C6__INCLUDED_)
1001-collection-codelet
小波分解/小波工程/HaarDWT/loaddata.h
C++
gpl3
1,439
//{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by HaarDWT.rc // #define IDM_ABOUTBOX 0x0010 #define IDD_ABOUTBOX 100 #define IDS_ABOUTBOX 101 #define IDD_HAARDWT_DIALOG 102 #define IDR_MAINFRAME 128 #define IDD_INPUTDIG 129 #define IDC_EDIT_LEN 1002 #define IDC_EDIT_LEVL 1003 #define IDC_LOAD 1005 #define IDC_DWT 1006 #define IDC_INVERSE_DWT 1007 #define IDC_ADDDTA 1008 #define IDC_ADDEDIT 1009 #define IDC_STATIC1 1010 #define IDC_STATIC2 1011 #define IDC_STATIC3 1012 #define IDC_FILEADD 1013 #define IDC_INPUTLIST 1014 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 130 #define _APS_NEXT_COMMAND_VALUE 32771 #define _APS_NEXT_CONTROL_VALUE 1015 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif
1001-collection-codelet
小波分解/小波工程/HaarDWT/resource.h
C
gpl3
1,236
// stdafx.cpp : source file that includes just the standard includes // HaarDWT.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h"
1001-collection-codelet
小波分解/小波工程/HaarDWT/StdAfx.cpp
C++
gpl3
209
; CLW file contains information for the MFC ClassWizard [General Info] Version=1 LastClass=Cloaddata LastTemplate=CDialog NewFileInclude1=#include "stdafx.h" NewFileInclude2=#include "HaarDWT.h" ClassCount=4 Class1=CHaarDWTApp Class2=CHaarDWTDlg Class3=CAboutDlg ResourceCount=4 Resource1=IDD_HAARDWT_DIALOG Resource2=IDR_MAINFRAME Resource3=IDD_ABOUTBOX Class4=Cloaddata Resource4=IDD_INPUTDIG [CLS:CHaarDWTApp] Type=0 HeaderFile=HaarDWT.h ImplementationFile=HaarDWT.cpp Filter=N LastObject=CHaarDWTApp [CLS:CHaarDWTDlg] Type=0 HeaderFile=HaarDWTDlg.h ImplementationFile=HaarDWTDlg.cpp Filter=D LastObject=IDC_INVERSE_DWT BaseClass=CDialog VirtualFilter=dWC [CLS:CAboutDlg] Type=0 HeaderFile=HaarDWTDlg.h ImplementationFile=HaarDWTDlg.cpp Filter=D LastObject=CAboutDlg [DLG:IDD_ABOUTBOX] Type=1 Class=CAboutDlg ControlCount=4 Control1=IDC_STATIC,static,1342177283 Control2=IDC_STATIC,static,1342308480 Control3=IDC_STATIC,static,1342308352 Control4=IDOK,button,1342373889 [DLG:IDD_HAARDWT_DIALOG] Type=1 Class=CHaarDWTDlg ControlCount=18 Control1=IDCANCEL,button,1342242816 Control2=IDC_STATIC,static,1342308352 Control3=IDC_STATIC,static,1342308352 Control4=IDC_STATIC,static,1342308352 Control5=IDC_EDIT_LEN,edit,1350631552 Control6=IDC_EDIT_LEVL,edit,1350631552 Control7=IDC_STATIC,static,1342308352 Control8=IDC_STATIC,static,1342308352 Control9=IDC_STATIC,button,1342177543 Control10=IDC_LOAD,button,1342242816 Control11=IDC_DWT,button,1342242816 Control12=IDC_INVERSE_DWT,button,1342242816 Control13=IDC_STATIC,button,1342177287 Control14=IDC_STATIC,button,1342177287 Control15=IDC_STATIC,button,1342177287 Control16=IDC_STATIC1,static,1342177280 Control17=IDC_STATIC2,static,1342177280 Control18=IDC_STATIC3,static,1342177280 [DLG:IDD_INPUTDIG] Type=1 Class=Cloaddata ControlCount=8 Control1=IDOK,button,1342242817 Control2=IDC_ADDDTA,button,1342242816 Control3=IDC_ADDEDIT,edit,1350631552 Control4=IDC_FILEADD,button,1342242816 Control5=IDC_STATIC,button,1342177287 Control6=IDC_STATIC,button,1342177287 Control7=IDC_STATIC,static,1342308352 Control8=IDC_INPUTLIST,SysListView32,1350631425 [CLS:Cloaddata] Type=0 HeaderFile=loaddata.h ImplementationFile=loaddata.cpp BaseClass=CDialog Filter=D VirtualFilter=dWC LastObject=Cloaddata
1001-collection-codelet
小波分解/小波工程/HaarDWT/HaarDWT.clw
Clarion
gpl3
2,351
#ifndef IN_TARGET extern void Reset(void); extern void TargetInit(void); #endif
1001-collection-codelet
MotorCtrl/软件和仿真图/MotorCtrl/target.h
C
gpl3
99
#ifndef KEYDRV_H #define KEYDRV_H #define KEYBOARD_ROW 4 #define KEYBOARD_COLUMN 4 extern void Keyboard_Initialize(void); extern uint8 Keyboard_Scan(void); void Keyboard_Process(void); #endif
1001-collection-codelet
MotorCtrl/软件和仿真图/MotorCtrl/keyboard.h
C
gpl3
224
#include "stdio.h" #include "stdlib.h" #include "string.h" typedef unsigned char T_U8; /* unsigned 8 bit integer */ typedef char T_S8; /* unsigned 8 bit integer */ typedef unsigned int T_U32,T_BOOL; /* unsigned 32 bit integer */ typedef signed int T_S32; /* signed 32 bit integer */ typedef void T_VOID; #define AK_FALSE 0 #define AK_TRUE 1 #define AK_NULL NULL static T_VOID U64_Add_Dump(T_S8 *tips, T_U8 *valBuf, T_U8 msb) { T_U8 strbuf[22]; T_U8 i =0; memset(strbuf,0,22); for (i=0;i<msb;i++) { strbuf[i] = valBuf[msb-1-i] + '0'; } printf("%s%015s \n",tips,strbuf); } #if 0 /** * @BRIEF long integer add * @AUTHOR wang xi * @DATE 2010-10-28 * @PARAM sumBuf - a long integer buffer and for restory the sum . * augendBuf - a long integer buffer for add to sumBuf * msb - most hight bit * base - mathematic base number(must between 2 and 255) * @RETURN T_S32 * @RETVAL the msb of sum */ T_S32 LongInt_Add(T_U8 *sumBuf,const T_U8 *augendBuf,T_S32 msb,T_U8 base) { T_S32 i = 0 , tmpVal = 0; T_S32 mostHighBit = msb; T_BOOL bExistCarry = AK_FALSE; for (i=0;i<mostHighBit;i++) { sumBuf[i] = sumBuf[i] + augendBuf[i]; } do { bExistCarry = AK_FALSE; for (i=0;i<mostHighBit;i++) { tmpVal = sumBuf[i]; if (tmpVal >= base) { bExistCarry = AK_TRUE; sumBuf[i] = tmpVal%base; sumBuf[i+1] = sumBuf[i+1] + tmpVal/base; if (mostHighBit < (i+2)) { mostHighBit = (i+2); } } } } while(bExistCarry); return mostHighBit; } /** * @BRIEF 64 bit integer tanslate to Ascii string * @AUTHOR wang xi * @DATE 2010-10-28 * @PARAM high /low - 64 bit integer high 32 bit and low 32 bit * srcBuf - restore the translate result * @RETURN T_S32 * @RETVAL 0 - translate successful * @RETVAL other - Failed */ T_S32 U64_Int2Str(T_U32 high, T_U32 low, T_U8 *strBuf) { T_U8 val1[22] = {0}; T_U8 val2[22] = {0}; T_U8 i=0; T_U32 tmpVal = 0; T_U32 length = 0; T_U8 mostBit = 0; if (AK_NULL == strBuf) { return -1; } memset(val1,0,sizeof(val1)); if (high > 0) { memset(val2,0,sizeof(val2)); // "4294967296" 2^32 val2[0] = 6;val2[1] = 9;val2[2] = 2;val2[3] = 7;val2[4] = 6; val2[5] = 9;val2[6] = 4;val2[7] = 9;val2[8] = 2;val2[9] = 4; mostBit = 10; length = high; while(length--) { U64_Add_Dump("+",val2,10); mostBit = LongInt_Add(val1,val2,mostBit,10); U64_Add_Dump("=",val1,mostBit); } } tmpVal = low; i = 0; memset(val2,0,sizeof(val2)); while(tmpVal>=10) { val2[i] = tmpVal%10; tmpVal = tmpVal/10; i++; } val2[i] = tmpVal; U64_Add_Dump("*",val2,i+1); if (mostBit < (i+1)) { mostBit = i+1; } mostBit = LongInt_Add(val1,val2,mostBit,10); U64_Add_Dump("=",val1,mostBit); for (i=0;i<mostBit;i++) { strBuf[i] = val1[mostBit-1-i] + '0'; } return 0; } #endif /** * @BRIEF long integer add * @AUTHOR wang xi * @DATE 2010-10-28 * @PARAM sumBuf - a long integer buffer and for restory the sum . * augendBuf - a long integer buffer for add to sumBuf * msb - most hight bit * base - mathematic base number(must between 2 and 255) * @RETURN T_S32 * @RETVAL the msb of sum */ T_S32 LongInt_Add(T_U8 *sumBuf,const T_U8 *augendBuf,T_S32 msb,T_U8 base) { T_S32 i = 0 , tmpVal = 0; T_S32 mostHighBit = msb; T_BOOL bExistCarry = AK_FALSE; for (i=0;i<mostHighBit;i++) { sumBuf[i] = sumBuf[i] + augendBuf[i]; } do { bExistCarry = AK_FALSE; for (i=0;i<mostHighBit;i++) { tmpVal = sumBuf[i]; if (tmpVal >= base) { bExistCarry = AK_TRUE; sumBuf[i] = tmpVal%base; sumBuf[i+1] = sumBuf[i+1] + tmpVal/base; if (mostHighBit < (i+2)) { mostHighBit = (i+2); } } } } while(bExistCarry); return mostHighBit; } /** * @BRIEF 64 bit integer tanslate to Ascii string(base number is 10) * @AUTHOR wang xi * @DATE 2010-10-28 * @PARAM high /low - value of 64 bit integer high / low 32 bit * strBuf - restore the translate result * @RETURN T_S32 * @RETVAL 0 - translate successful * @RETVAL other - Failed */ T_S32 U64_Int2Str(T_S8 *strBuf,T_U32 high , T_U32 low) { T_U8 sumbuf[22] = {0}; T_U8 augendbuf[22] = {0}; T_U8 i=0; T_U32 tmpVal = 0; T_U32 length = 0; T_U8 mostBit = 0; if (AK_NULL == strBuf) { return -1; } memset(sumbuf,0,sizeof(sumbuf)); if (high > 0) { memset(augendbuf,0,sizeof(augendbuf)); // "4294967296" 2^32 augendbuf[0] = 6;augendbuf[1] = 9;augendbuf[2] = 2;augendbuf[3] = 7;augendbuf[4] = 6; augendbuf[5] = 9;augendbuf[6] = 4;augendbuf[7] = 9;augendbuf[8] = 2;augendbuf[9] = 4; mostBit = 10; length = high; while(length--) { mostBit = (T_U8)LongInt_Add(sumbuf,augendbuf,mostBit,10); } } tmpVal = low; i = 0; memset(augendbuf,0,sizeof(augendbuf)); while (tmpVal >= 10) { augendbuf[i] = (T_U8)(tmpVal%10); tmpVal = tmpVal/10; i++; } augendbuf[i] = (T_U8)tmpVal; if (mostBit < (i+1)) { mostBit = i+1; } mostBit = (T_U8)LongInt_Add(sumbuf,augendbuf,mostBit,10); for (i=0;i<mostBit;i++) { strBuf[i] = sumbuf[mostBit-1-i] + '0'; } return 0; } #define MAX_STR_LEN 100 int main() { T_S8 val1[MAX_STR_LEN] = {0}; memset(val1,0,sizeof(val1)); U64_Int2Str(val1,0,0); printf("%s\n",val1); return 0; }
1001-collection-codelet
长整数计算/长整数加法.cpp
C++
gpl3
5,892