<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="http://postituto.levelhard.com.br/css/normalize.css" />
<link rel="stylesheet" href="http://postituto.levelhard.com.br/css/ui-lightness/jquery-ui.min.css" />
<script type="text/javascript" src="http://postituto.levelhard.com.br/js/jquery.min.js"></script>
<script type="text/javascript" src="http://postituto.levelhard.com.br/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://postituto.levelhard.com.br/js/prefixfree.min.js"></script>
<script type="text/javascript" src="http://postituto.levelhard.com.br/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript" src="http://postituto.levelhard.com.br/js/jquery.form.min.js"></script>
<div class="hds-bg"></div>
<div class="hds-content">
<div id="new" class="new-postit"></div>
<div id="menu" class="open-menu"></div>
<div class="hds-postit-model">
<div class="hds-postit">
<div class="fixe"></div>
<div class="box">
<div class="header">
<div class="title">
<input type="text" />
</div>
<div class="control">
<input id="close" type="button" value="✕" />
</div>
</div>
<div class="main">
<div class="textarea"></div>
</div>
<div class="footer">
<ul>
<li><a href="javascript:void();"><span class="color" style="background: #f8ec52"></span></a>
<ul>
<li><a href="javascript:void();"><span style="background: #c4ffa5"></span></a></li>
<li><a href="javascript:void();"><span style="background: #ffd3d3"></span></a></li>
<li><a href="javascript:void();"><span style="background: #9ab4f1"></span></a></li>
<li><a href="javascript:void();"><span style="background: #fafafa"></span></a></li>
<li><a href="javascript:void();"><span style="background: #f8ec52"></span></a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
* {
* {
outline: none;
}
body {
overflow: hidden;
font-family: Verdana, Geneva, 'DejaVu Sans', sans-serif;
font-size: 12px;
color: #000;
background-color: #b88846;
background-image: linear-gradient(45deg, #9f753b 25%, transparent 25%, transparent), linear-gradient(-45deg, #9f753b 25%, transparent 25%, transparent), linear-gradient(45deg, transparent 75%, #9f753b 75%), linear-gradient(-45deg, transparent 75%, #9f753b 75%);
background-size: 300px 300px;
}
.hds-bg {
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background: url('http://postituto.levelhard.com.br/img/background.jpg');
background-repeat: repeat;
background-position: center;
display: none;
}
.hds-content {
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
overflow: hidden;
padding: 30px;
background: radial-gradient(transparent 60%,rgba(0,0,0,0.6));
display: block;
}
.new-postit {
position: absolute;
background: #f8ec52;
top: -200px;
left: -200px;
width: 200px;
height: 200px;
box-shadow: 0 0 10px rgba(0,0,0,0.4);
cursor: pointer;
}
.new-postit::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #f8ec52 url('http://postituto.levelhard.com.br/img/new-postit.svg') no-repeat center;
background-size: 80%;
transform: rotate(60deg);
box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
.new-postit::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #f8ec52;
transform: rotate(-60deg);
box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
.hds-postit {
position: absolute;
width: 380px;
height: 250px;
padding: 5px;
background: #f8ec52;
box-shadow: 0 2px 10px rgba(0,0,0,0.6);
display: none;
}
.hds-postit .fixe {
position: absolute;
width: 30px;
height: 30px;
top: -10px;
left: 50%;
margin-left: -15px;
background: #0067ce;
border-radius: 15px;
box-shadow: -10px 15px 25px rgba(0,0,0,0.2), inset -1px -8px 6px rgba(0,0,0,0.4), inset 1px 1px rgba(255,255,255,0.5), -1px 4px 2px rgba(0,0,0,0.4), inset -1px -1px rgba(255,255,255,0.6), -1px 1px rgba(0,0,0,0.4);
cursor: move;
z-index: 10;
}
.hds-postit .fixe::after {
content: "";
position: absolute;
top: -2px;
left: 3px;
width: 22px;
height: 22px;
background: radial-gradient(#014ec2,#0045bc);
box-shadow: inset 0 -1px 10px rgba(255,255,255,0.4), 1px 1px 4px rgba(0,0,0,0.4);
border-radius: 11px;
}
.hds-postit .box {
position: relative;
width: 100%;
height: 100%;
}
.hds-postit .box .header {
position: absolute;
top: -5px;
left: -5px;
right: -5px;
height: 35px;
background: rgba(255,255,255,0.2);
}
.hds-postit .box .header div {
display: inline-block;
line-height: 0px;
}
.hds-postit .box .header .title {
position: relative;
width: auto;
height: 100%;
padding: 10px 10px;
}
.hds-postit .box .header .title input {
border: none;
background: none;
}
.hds-postit .box .header .control {
position: relative;
width: auto;
height: 100%;
float: right;
}
.hds-postit .box .header .control input {
position: relative;
width: 35px;
height: 35px;
border: none;
padding: 0px;
background: none;
}
.hds-postit .box .main {
position: absolute;
top: 40px;
left: 8px;
right: 8px;
bottom: 30px;
}
.hds-postit .box .main .textarea {
position: relative;
width: 100%;
height: 100%;
border: none;
resize: none;
padding: 10px;
box-sizing: border-box;
overflow: auto;
}
.hds-postit .box .main .textarea::scrollbar {
width: 6px;
height: 6px;
}
.hds-postit .box .main .textarea::scrollbar-track {
}
.hds-postit .box .main .textarea::scrollbar-thumb {
background-color: rgba(0,0,0,0.4);
}
.hds-postit .box .footer {
position: absolute;
bottom: 0px;
left: 0px;
right: 0px;
height: 30px;
display: block;
}
.hds-postit .box .footer ul {
margin: 0px;
padding: 0px;
}
.hds-postit .box .footer ul li {
list-style: none;
float: left;
}
.hds-postit .box .footer ul li a {
text-decoration: none;
color: #000;
display: block;
height: 30px;
padding: 0 8px;
}
.hds-postit .box .footer ul li:hover {
background: rgba(0,0,0,0.1);
}
.hds-postit .box .footer ul li:hover > ul {
display: block;
}
.hds-postit .box .footer ul li a span {
position: relative;
width: 14px;
height: 14px;
top: 8px;
display: block;
border: 1px rgba(0,0,0,0.4) solid;
box-shadow: inset 0 7px 10px rgba(255,255,255,0.4), 0 1px 1px rgba(0,0,0,0.2);
}
.hds-postit .box .footer ul ul {
position: absolute;
bottom: 0px;
background: #f8ec52;
box-shadow: 1px -1px rgba(0,0,0,0.4);
display: none;
}
.hds-postit .box .footer ul ul li {
float: none;
}
.ui-resizable-helper {
border: none;
background: rgba(0,0,0,0.2);
}
$('.hds-bg').fadeTo( 6000 , 0.5);
$('.hds-bg').fadeTo( 6000 , 0.5);
$('.new-postit').animate({
'top': '-40px',
'left': '-40px',
}, 600, 'easeOutBack');
$('#new').click(function () {
$($('.hds-postit-model .hds-postit').clone()).appendTo('.hds-content').draggable({
containment: 'parent',
handle: '.fixe',
stack: '.hds-content .hds-postit',
snap: true,
grid: [20, 20],
snapTolerance: 15
}).resizable({
containment: 'parent',
minWidth: 390,
minHeight: 260,
maxWidth: 600,
animate: true,
animateDuration: 'fast',
animateEasing: 'easeOutCubic',
grid: 20
}).show('scale', 'fast');
tinymce.init({
language: 'pt_BR',
selector: '.hds-postit:last .textarea',
inline: true,
menubar: false,
toolbar_items_size: 'small',
plugins: [
"advlist autolink link image lists charmap hr spellchecker",
"searchreplace wordcount visualblocks visualchars media nonbreaking",
"table contextmenu directionality emoticons textcolor paste"
],
toolbar1: "fontselect | fontsizeselect | forecolor backcolor | table | charmap ",
toolbar2: "bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | image | searchreplace "
});
});
$(document).on('click', '.hds-postit #close', function () {
$(this).parents('.hds-postit').hide('puff', 'fast');
});
$(document).on('click', '.hds-postit .footer ul ul a', function () {
var thisObj = $(this).parents('.hds-postit');
thisObj.animate({ backgroundColor: $('span', this).css('background-color') }, 'fast');
$('.footer ul ul', thisObj).animate({ backgroundColor: $('span', this).css('background-color') }, 'fast');
$('.footer .color', thisObj).css('background-color', $('span', this).css('background-color'));
});