<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<hr class="">
<div class="container target">
<div class="row">
<div class="col-sm-10">
<h1 class="">Starfox221</h1>
<button type="button" class="btn btn-success">Book me!</button> <button type="button" class="btn btn-info">Send me a message</button>
<br>
</div>
<div class="col-sm-2"><a href="/users" class="pull-right"><img title="profile image" class="img-circle img-responsive" src="http://www.rlsandbox.com/img/profile.jpg"></a>
</div>
</div>
<br>
<div class="row">
<div class="col-sm-3">
<!--left col-->
<ul class="list-group">
<li class="list-group-item text-muted" contenteditable="false">Profile</li>
<li class="list-group-item text-right"><span class="pull-left"><strong class="">Joined</strong></span> 2.13.2014</li>
<li class="list-group-item text-right"><span class="pull-left"><strong class="">Last seen</strong></span> Yesterday</li>
<li class="list-group-item text-right"><span class="pull-left"><strong class="">Real name</strong></span> Joseph
Doe</li>
<li class="list-group-item text-right"><span class="pull-left"><strong class="">Role: </strong></span> Pet Sitter
</li>
</ul>
<div class="panel panel-default">
<div class="panel-heading">Insured / Bonded?
</div>
<div class="panel-body"><i style="color:green" class="fa fa-check-square"></i> Yes, I am insured and bonded.
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Website <i class="fa fa-link fa-1x"></i>
</div>
<div class="panel-body"><a href="http://bootply.com" class="">bootply.com</a>
</div>
</div>
<ul class="list-group">
<li class="list-group-item text-muted">Activity <i class="fa fa-dashboard fa-1x"></i>
</li>
<li class="list-group-item text-right"><span class="pull-left"><strong class="">Shares</strong></span> 125</li>
<li class="list-group-item text-right"><span class="pull-left"><strong class="">Likes</strong></span> 13</li>
<li class="list-group-item text-right"><span class="pull-left"><strong class="">Posts</strong></span> 37</li>
<li class="list-group-item text-right"><span class="pull-left"><strong class="">Followers</strong></span> 78</li>
</ul>
<div class="panel panel-default">
<div class="panel-heading">Social Media</div>
<div class="panel-body"> <i class="fa fa-facebook fa-2x"></i> <i class="fa fa-github fa-2x"></i>
<i class="fa fa-twitter fa-2x"></i> <i class="fa fa-pinterest fa-2x"></i> <i class="fa fa-google-plus fa-2x"></i>
</div>
</div>
</div>
<!--/col-3-->
<div class="col-sm-9" style="" contenteditable="false">
<div class="panel panel-default">
<div class="panel-heading">Starfox221's Bio</div>
<div class="panel-body"> A long description about me.
</div>
</div>
<div class="panel panel-default target">
<div class="panel-heading" contenteditable="false">Pets I Own</div>
<div class="panel-body">
<div class="row">
<div class="col-md-4">
<div class="thumbnail">
<img alt="300x200" src="http://lorempixel.com/600/200/people">
<div class="caption">
<h3>
Rover
</h3>
<p>
Cocker Spaniel who loves treats.
</p>
<p>
</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
<img alt="300x200" src="http://lorempixel.com/600/200/city">
<div class="caption">
<h3>
Marmaduke
</h3>
<p>
Is just another friendly dog.
</p>
<p>
</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
<img alt="300x200" src="http://lorempixel.com/600/200/sports">
<div class="caption">
<h3>
Rocky
</h3>
<p>
Loves catnip and naps. Not fond of children.
</p>
<p>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Starfox221's Bio</div>
<div class="panel-body"> A long description about me.
</div>
</div></div>
<div id="push"></div>
</div>
<footer id="footer">
<div class="row-fluid">
<div class="span3">
<p>
<a href="http://twitter.com/Bootply" rel="nofollow" title="Bootply on Twitter" target="ext">Twitter</a><br>
<a href="https://plus.google.com/+Bootply" rel="publisher">Google+</a><br>
<a href="http://facebook.com/Bootply" rel="nofollow" title="Bootply on Facebook" target="ext">Facebook</a><br>
<a href="https://github.com/iatek/bootply" title="Bootply on GitHub" target="ext">GitHub</a><br>
</p>
</div>
<div class="span3">
<p>
<a data-toggle="modal" role="button" href="#contactModal">Contact Us</a><br>
<a href="/tags">Tags</a><br>
<a href="/bootstrap-community">Community</a><br>
<a href="/upgrade">Upgrade</a><br>
</p>
</div>
<div class="span3">
<p>
<a href="http://www.bootbundle.com" target="ext" rel="nofollow">BootBundle</a><br>
<a href="https://bootstrapbay.com/?ref=skelly" target="_ext" rel="nofollow" title="Premium Bootstrap themes">Bootstrap Themes</a><br>
<a href="http://www.bootstrapzero.com" target="_ext" rel="nofollow" title="Free Bootstrap templates">BootstrapZero</a><br>
<a href="http://upgrade-bootstrap.bootply.com/">2.x Upgrade Tool</a><br>
</p>
</div>
<div class="span3">
<span class="pull-right">©Copyright 2013-2014 <a href="/" title="The Bootstrap Playground">Bootply</a> | <a href="/about#privacy">Privacy</a></span>
</div>
</div>
</footer>
<script src="/plugins/bootstrap-select.min.js"></script>
<script src="/codemirror/jquery.codemirror.js"></script>
<script src="/beautifier.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-40413119-1', 'bootply.com');
ga('send', 'pageview');
</script>
<script>
jQuery.fn.shake = function(intShakes, intDistance, intDuration, foreColor) {
this.each(function() {
if (foreColor && foreColor!="null") {
$(this).css("color",foreColor);
}
$(this).css("position","relative");
for (var x=1; x<=intShakes; x++) {
$(this).animate({left:(intDistance*-1)}, (((intDuration/intShakes)/4)))
.animate({left:intDistance}, ((intDuration/intShakes)/2))
.animate({left:0}, (((intDuration/intShakes)/4)));
$(this).css("color","");
}
});
return this;
};
</script>
<script>
$(document).ready(function() {
$('.tw-btn').fadeIn(3000);
$('.alert').delay(5000).fadeOut(1500);
$('#btnLogin').click(function(){
$(this).text("...");
$.ajax({
url: "/loginajax",
type: "post",
data: $('#formLogin').serialize(),
success: function (data) {
//console.log('data:'+data);
if (data.status==1&&data.user) { //logged in
$('#menuLogin').hide();
$('#lblUsername').text(data.user.username);
$('#menuUser').show();
/*
$('#completeLoginModal').modal('show');
$('#btnYes').click(function() {
window.location.href="/";
});
*/
}
else {
$('#btnLogin').text("Login");
prependAlert("#spacer",data.error);
$('#btnLogin').shake(4,6,700,'#CC2222');
$('#username').focus();
}
},
error: function (e) {
$('#btnLogin').text("Login");
console.log('error:'+JSON.stringify(e));
}
});
});
$('#btnRegister').click(function(){
$(this).text("Wait..");
$.ajax({
url: "/signup?format=json",
type: "post",
data: $('#formRegister').serialize(),
success: function (data) {
console.log('data:'+JSON.stringify(data));
if (data.status==1) {
$('#btnRegister').attr("disabled","disabled");
$('#formRegister').text('Thanks. You can now login using the Login form.');
}
else {
prependAlert("#spacer",data.error);
$('#btnRegister').shake(4,6,700,'#CC2222');
$('#btnRegister').text("Sign Up");
$('#inputEmail').focus();
}
},
error: function (e) {
$('#btnRegister').text("Sign Up");
console.log('error:'+e);
}
});
});
$('.loginFirst').click(function(){
$('#navLogin').trigger('click');
return false;
});
$('#btnForgotPassword').on('click',function(){
$.ajax({
url: "/resetPassword",
type: "post",
data: $('#formForgotPassword').serializeObject(),
success: function (data) {
if (data.status==1){
prependAlert("#spacer",data.msg);
return true;
}
else {
prependAlert("#spacer","Your password could not be reset.");
return false;
}
},
error: function (e) {
console.log('error:'+e);
}
});
});
$('#btnContact').click(function(){
$.ajax({
url: "/contact",
type: "post",
data: $('#formContact').serializeObject(),
success: function (data) {
if (data.status==1){
prependAlert("#spacer","Thanks. We got your message and will get back to you shortly.");
$('#contactModal').modal('hide');
return true;
}
else {
prependAlert("#spacer",data.error);
return false;
}
},
error: function (e) {
console.log('error:'+e);
}
});
return false;
});
/*
$('.nav .dropdown-menu input').on('click touchstart',function(e) {
e.stopPropagation();
});
*/
});
$.fn.serializeObject = function()
{
var o = {};
var a = this.serializeArray();
$.each(a, function() {
if (o[this.name] !== undefined) {
if (!o[this.name].push) {
o[this.name] = [o[this.name]];
}
o[this.name].push(this.value || '');
} else {
o[this.name] = this.value || '';
}
});
return o;
};
var prependAlert = function(appendSelector,msg){
$(appendSelector).after('<div class="alert alert-info alert-block affix" id="msgBox" style="z-index:1300;margin:14px!important;">'+msg+'</div>');
$('.alert').delay(3500).fadeOut(1000);
}
</script>
<!-- Quantcast Tag -->
<script type="text/javascript">
var _qevents = _qevents || [];
(function() {
var elem = document.createElement('script');
elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js";
elem.async = true;
elem.type = "text/javascript";
var scpt = document.getElementsByTagName('script')[0];
scpt.parentNode.insertBefore(elem, scpt);
})();
_qevents.push({
qacct:"p-0cXb7ATGU9nz5"
});
</script>
<noscript>
&amp;amp;amp;amp;amp;amp;amp;lt;div style="display:none;"&amp;amp;amp;amp;amp;amp;amp;gt;
&amp;amp;amp;amp;amp;amp;amp;lt;img src="//pixel.quantserve.com/pixel/p-0cXb7ATGU9nz5.gif" border="0" height="1" width="1" alt="Quantcast"/&amp;amp;amp;amp;amp;amp;amp;gt;
&amp;amp;amp;amp;amp;amp;amp;lt;/div&amp;amp;amp;amp;amp;amp;amp;gt;
</noscript>
<!-- End Quantcast tag -->
<div id="completeLoginModal" class="modal hide">
<div class="modal-header">
<a href="#" data-dismiss="modal" aria-hidden="true" class="close">×</a>
<h3>Do you want to proceed?</h3>
</div>
<div class="modal-body">
<p>This page must be refreshed to complete your login.</p>
<p>You will lose any unsaved work once the page is refreshed.</p>
<br><br>
<p>Click "No" to cancel the login process.</p>
<p>Click "Yes" to continue...</p>
</div>
<div class="modal-footer">
<a href="#" id="btnYes" class="btn danger">Yes, complete login</a>
<a href="#" data-dismiss="modal" aria-hidden="true" class="btn secondary">No</a>
</div>
</div>
<div id="forgotPasswordModal" class="modal hide">
<div class="modal-header">
<a href="#" data-dismiss="modal" aria-hidden="true" class="close">×</a>
<h3>Password Lookup</h3>
</div>
<div class="modal-body">
<form class="form form-horizontal" id="formForgotPassword">
<div class="control-group">
<label class="control-label" for="inputEmail">Email</label>
<div class="controls">
<input name="_csrf" id="token" value="CkMEALL0JBMf5KSrOvu9izzMXCXtFQ/Hs6QUY=" type="hidden">
<input name="email" id="inputEmail" placeholder="you@youremail.com" required="" type="email">
<span class="help-block"><small>Enter the email address you used to sign-up.</small></span>
</div>
</div>
</form>
</div>
<div class="modal-footer pull-center">
<a href="#" data-dismiss="modal" aria-hidden="true" class="btn">Cancel</a>
<a href="#" data-dismiss="modal" id="btnForgotPassword" class="btn btn-success">Reset Password</a>
</div>
</div>
<div id="upgradeModal" class="modal hide">
<div class="modal-header">
<a href="#" data-dismiss="modal" aria-hidden="true" class="close">×</a>
<h4>Would you like to upgrade?</h4>
</div>
<div class="modal-body">
<p class="text-center"><strong></strong></p>
<h1 class="text-center">$4<small>/mo</small></h1>
<p class="text-center"><small>Unlimited plys. Unlimited downloads. No Ads.</small></p>
<p class="text-center"><img src="/assets/i_visa.png" alt="visa" width="50"> <img src="/assets/i_mc.png" alt="mastercard" width="50"> <img src="/assets/i_amex.png" alt="amex" width="50"> <img src="/assets/i_discover.png" alt="discover" width="50"> <img src="/assets/i_paypal.png" alt="paypal" width="50"></p>
</div>
<div class="modal-footer pull-center">
<a href="/upgrade" class="btn btn-block btn-huge btn-success"><strong>Upgrade Now</strong></a>
<a href="#" data-dismiss="modal" class="btn btn-block btn-huge">No Thanks, Maybe Later</a>
</div>
</div>
<div id="contactModal" class="modal hide">
<div class="modal-header">
<a href="#" data-dismiss="modal" aria-hidden="true" class="close">×</a>
<h3>Contact Us</h3>
<p>suggestions, questions or feedback</p>
</div>
<div class="modal-body">
<form class="form form-horizontal" id="formContact">
<input name="_csrf" id="token" value="CkMEALL0JBMf5KSrOvu9izzMXCXtFQ/Hs6QUY=" type="hidden">
<div class="control-group">
<label class="control-label" for="inputSender">Name</label>
<div class="controls">
<input name="sender" id="inputSender" class="input-large" placeholder="Your name" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputMessage">Message</label>
<div class="controls">
<textarea name="notes" rows="5" id="inputMessage" class="input-large" placeholder="Type your message here"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputEmail">Email</label>
<div class="controls">
<input name="email" id="inputEmail" class="input-large" placeholder="you@youremail.com (for reply)" required="" type="text">
</div>
</div>
</form>
</div>
<div class="modal-footer pull-center">
<a href="#" data-dismiss="modal" aria-hidden="true" class="btn">Cancel</a>
<a href="#" data-dismiss="modal" aria-hidden="true" id="btnContact" role="button" class="btn btn-success">Send</a>
</div>
</div>
<script src="/plugins/bootstrap-pager.js"></script>
</div>
/* pagination */
$.fn.pageMe = function(opts){
var $this = this,
defaults = {
perPage: 7,
showPrevNext: false,
numbersPerPage: 1,
hidePageNumbers: false
},
settings = $.extend(defaults, opts);
var listElement = $this;
var perPage = settings.perPage;
var children = listElement.children();
var pager = $('.pagination');
if (typeof settings.childSelector!="undefined") {
children = listElement.find(settings.childSelector);
}
if (typeof settings.pagerSelector!="undefined") {
pager = $(settings.pagerSelector);
}
var numItems = children.size();
var numPages = Math.ceil(numItems/perPage);
pager.data("curr",0);
if (settings.showPrevNext){
$('<li><a href="#" class="prev_link">«</a></li>').appendTo(pager);
}
var curr = 0;
while(numPages > curr && (settings.hidePageNumbers==false)){
$('<li><a href="#" class="page_link">'+(curr+1)+'</a></li>').appendTo(pager);
curr++;
}
if (settings.numbersPerPage>1) {
$('.page_link').hide();
$('.page_link').slice(pager.data("curr"), settings.numbersPerPage).show();
}
if (settings.showPrevNext){
$('<li><a href="#" class="next_link">»</a></li>').appendTo(pager);
}
pager.find('.page_link:first').addClass('active');
if (numPages<=1) {
pager.find('.next_link').hide();
}
pager.children().eq(1).addClass("active");
children.hide();
children.slice(0, perPage).show();
pager.find('li .page_link').click(function(){
var clickedPage = $(this).html().valueOf()-1;
goTo(clickedPage,perPage);
return false;
});
pager.find('li .prev_link').click(function(){
previous();
return false;
});
pager.find('li .next_link').click(function(){
next();
return false;
});
function previous(){
var goToPage = parseInt(pager.data("curr")) - 1;
goTo(goToPage);
}
function next(){
goToPage = parseInt(pager.data("curr")) + 1;
goTo(goToPage);
}
function goTo(page){
var startAt = page * perPage,
endOn = startAt + perPage;
children.css('display','none').slice(startAt, endOn).show();
if (page>=1) {
pager.find('.prev_link').show();
}
else {
pager.find('.prev_link').hide();
}
if (page<(numPages-1)) {
pager.find('.next_link').show();
}
else {
pager.find('.next_link').hide();
}
pager.data("curr",page);
if (settings.numbersPerPage>1) {
$('.page_link').hide();
$('.page_link').slice(page, settings.numbersPerPage+page).show();
}
pager.children().removeClass("active");
pager.children().eq(page+1).addClass("active");
}
};
$('#items').pageMe({pagerSelector:'#myPager',childSelector:'tr',showPrevNext:true,hidePageNumbers:false,perPage:5});
/****/