Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0" />
- <title>Happy Valentine's day</title>
- <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
- <style>
- .primaryContainer {
- height: auto;margin-left: auto;margin-right: auto;min-height: 100%;width: 100%;position: relative;background-color: rgb(255, 0, 0);
- }
- #msgpalco {
- float: left;font-size: 1em;width: 80.742508%;height: auto;text-align: left;font-weight: normal;
- line-height: 1em;margin-left: 9.628746%;margin-top: 49px;clear: none;min-height: 293px;
- }
- #boxesquerda {
- float: left;margin-left: 9.628746%;margin-top: 25px;border-top: 25px solid transparent;
- border-right-width: 50px;border-right-style: solid;border-right-color: red;border-bottom: 25px solid transparent;
- }
- #boxdireita {
- float: left;margin-left: 75.026115%;margin-top: 366px;position: absolute;
- border-top: 25px solid transparent;border-left: 50px solid red;border-bottom: 25px solid transparent;
- }
- .corda {
- float: left;font-size: 1em;width: 1.791159%;text-align: left;font-weight: normal;line-height: 1em;clear: none;
- position: absolute;top: 0px;border-left-color: rgb(255, 255, 255);border-left-width: 1px;border-left-style: solid;
- }
- .miniheart { position: relative;width: 100px;height: 90px; }
- .miniheart:before,
- .miniheart:after { position: absolute;content: "";left: 50px;top: 0;width: 50px;height: 80px;background: white;
- -moz-border-radius: 50px 50px 0 0;
- border-radius: 50px 50px 0 0;
- -webkit-transform: rotate(-45deg);
- -moz-transform: rotate(-45deg);
- -ms-transform: rotate(-45deg);
- -o-transform: rotate(-45deg);
- transform: rotate(-45deg);
- -webkit-transform-origin: 0 100%;
- -moz-transform-origin: 0 100%;
- -ms-transform-origin: 0 100%;
- -o-transform-origin: 0 100%;
- transform-origin: 0 100%;
- }
- .miniheart:after {
- left: 0;
- -webkit-transform: rotate(45deg);
- -moz-transform: rotate(45deg);
- -ms-transform: rotate(45deg);
- -o-transform: rotate(45deg);
- transform: rotate(45deg);
- -webkit-transform-origin: 100% 100%;
- -moz-transform-origin: 100% 100%;
- -ms-transform-origin: 100% 100%;
- -o-transform-origin: 100% 100%;
- transform-origin :100% 100%;
- }
- #barraesquerda { width: 0%;border-bottom: rgb(0, 0, 0) 1px solid;float: right;text-align: right;height: 16px; }
- #barradireita { width: 0%;border-bottom: rgb(0, 0, 0) 1px solid;margin-left: -2px;height: 16px; }
- #barra_esquerda { width: 0%;border-bottom: rgb(0, 0, 0) 1px solid;float: right;text-align: right;height: 0px; }
- #barra_direita { width: 0%;border-bottom: rgb(0, 0, 0) 1px solid;margin-left: -2px;height: 0px; }
- #boxpalco {
- float: left;margin-left: 6.129043%;margin-top: 116px;clear: none;height: 0px;width: 87.733629%;
- border-top: rgb(0, 0, 0) 1px solid;border-right: rgb(0, 0, 0) 1px solid;border-left: rgb(0, 0, 0) 1px solid;
- }
- #caixabarra { float: left;height: 116px;width: 80%; }
- #therealheart { position:fixed;width: 100%;height: 100%; }
- #sombra { width: 100%;height: 100%;position: fixed;background-color: rgba(255, 157, 157, 0.63);top: 0px;left: 0px; }
- #happyday { position: relative;top: 40%;left: 40%;font: italic bold 44px Georgia,serif;text-shadow: 0px 0px 5px #FF0000; }
- </style>
- <script>
- var textos = new Array(
- "Mensagem Secreta 1",
- "Mensagem Secreta 2",
- "Mensagem Secreta 3",
- "Mensagem Secreta 4",
- "Mensagem Secreta 5",
- "Mensagem Secreta 6",
- "Mensagem Secreta 7",
- "Mensagem Secreta 8",
- "Mensagem Secreta 9",
- "Mensagem Secreta 10",
- "Mensagem Secreta 11"
- );
- var texto_a = 0;
- var desenhou_c = 0;
- var palco = 0;
- var descer = new Array(new Array("5.53","332",1,"252"),new Array("55.53","110",3,"430"),new Array("93.74","166",2,"205"),
- new Array("38.46","110",2,"133"),new Array("86.32","249",1,"169"),new Array("46.45","44",2,"47"),new Array("12.86","438",3,"1741"),
- new Array("90","438",1,"337"),new Array("23.20","80",2,"95"),new Array("71.45","44",1,"23"));
- function batebate(bate) {
- if(!bate)
- setTimeout(function(){$("#coraz").css('zoom', '200%');batebate(1);},500);
- else
- setTimeout(function(){$("#coraz").css('zoom', '220%');batebate(0);},1000);
- }
- function avanco(vai) {
- if(!vai) {
- if(texto_a != 0) {
- texto_a --;
- $("#msgpalco").html(textos[texto_a]);
- if(!texto_a) $("#boxesquerda").hide();
- }
- }
- else {
- if(texto_a == textos.length-1) {
- $("#sombra").css('visibility', 'visible');
- setTimeout(function(){$("#coraz").css('zoom', '220%');batebate(0);},1000);
- }
- else {
- texto_a ++;
- if(texto_a > desenhou_c) {
- var zoom = 0;
- switch(descer[desenhou_c][2]) {
- case 1:
- zoom = 125;
- break;
- case 2:
- zoom = 75;
- break;
- case 3:
- zoom = 25;
- break;
- }
- $("#primaryContainer").append("<div id='rop"+desenhou_c+"' class='corda' style='left: "+descer[desenhou_c][0]+"%;'>"+
- "<div style='zoom: "+zoom+"%'><div id='heart"+desenhou_c+"' style='left:-50px;top:"+descer[desenhou_c][3]+"px'></div></div>"+
- "</div>");
- $( "#rop"+desenhou_c ).animate({height: ""+descer[desenhou_c][1]+"px"}, 2000, function() {
- $( "#heart"+(texto_a-1) ).addClass("miniheart");
- });
- desenhou_c ++;
- }
- if(texto_a == 1) {
- $("#boxesquerda").show();
- }
- $("#msgpalco").html(textos[texto_a]);
- }
- }
- }
- function abrirpalco() {
- palco ++;
- if(palco == 2) {
- $("#primaryContainer").html('<div id="boxpalco" class="clearfix"></div>'+
- '<table border="0px" style="float: left;width: 87.733629%;margin-left: 100.129043%;margin-top: -2px;">'+
- '<tr><td><div id="barra_direita"></div></td><td><div id="barra_esquerda"></div></td></tr></table>');
- $( "#boxpalco" ).animate({height: "480px"}, 2000, function() {
- $( "#barra_direita" ).animate({ width: "102.5%" }, 2000, function() {});
- $( "#barra_esquerda" ).animate({ width: "100%" }, 2000, function() {
- $( "#boxpalco" ).css('border-bottom', 'rgb(0, 0, 0) 1px solid');
- $( "#barra_direita" ).remove();
- $( "#barra_esquerda" ).remove();
- $( "#boxpalco" ).animate({borderTopLeftRadius: "35px",borderTopRightRadius: "35px",borderBottomLeftRadius: "35px",borderBottomRightRadius: "35px"
- }, 2000, function() {
- $( "#boxpalco" ).css('background-color', 'rgb(255, 114, 114)');
- $( "#boxpalco" ).html('<p id="msgpalco"></p>'+
- '<div id="boxesquerda" onmouseover="$(\'#boxesquerda\').css(\'border-right-color\', \'white\');"'+
- ' onmouseout="$(\'#boxesquerda\').css(\'border-right-color\', \'red\');" onclick="avanco(0)" '+
- 'class="clearfix"></div><div id="boxdireita" onmouseover="$(\'#boxdireita\').css(\'border-left-color\', \'white\');"'+
- ' onmouseout="$(\'#boxdireita\').css(\'border-left-color\', \'red\');" onclick="avanco(1)" class="clearfix"></div>');
- $("#boxesquerda").hide();
- $("#msgpalco").html(textos[0]);
- });
- });
- });
- }
- }
- $( document ).ready(function() {
- $( "#barradireita" ).animate({ width: "100%" }, 2000, function() {abrirpalco();});
- $( "#barraesquerda" ).animate({ width: "100%" }, 2000, function() {abrirpalco();});
- });
- </script>
- </head>
- <body>
- <div id="primaryContainer" class="primaryContainer clearfix">
- <table border="0px" style="float: left;height: 16px;width: 87.733629%;margin-left: 6.129043%;margin-top: 100px;">
- <tr><td><div id="barraesquerda"></div></td><td><div id="barradireita"></div></td></tr>
- </table>
- </div>
- <div id="sombra" style='visibility: hidden;'>
- <div id='coraz' style="zoom: 200%;margin-top: 20%;margin-left: 20%;position: absolute;"><div class="miniheart"></div></div>
- <div id="happyday">Happy Valentine's day</div>
- </body>
- </html>
- <html>
- <head>
- <style>
- /*
- * HTML5 ✰ Boilerplate
- *
- * What follows is the result of much research on cross-browser styling.
- * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
- * Kroc Camen, and the H5BP dev community and team.
- *
- * Detailed information about this CSS: h5bp.com/css
- *
- * ==|== normalize ==========================================================
- */
- /* =============================================================================
- HTML5 display definitions
- ========================================================================== */
- article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
- audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
- audio:not([controls]) { display: none; }
- [hidden] { display: none; }
- /* =============================================================================
- Base
- ========================================================================== */
- /*
- * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
- * 2. Force vertical scrollbar in non-IE
- * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
- */
- html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
- body { margin: 0; font-size: 100%; line-height: 1.231; }
- body, button, input, select, textarea { font-family: helvetica, arial,"lucida grande", verdana, "メイリオ", "MS Pゴシック", sans-serif; color: #222; }
- /*
- * Remove text-shadow in selection highlight: h5bp.com/i
- * These selection declarations have to be separate
- * Also: hot pink! (or customize the background color to match your design)
- */
- ::selection { text-shadow: none; background-color: highlight; color: highlighttext; }
- /* =============================================================================
- Links
- ========================================================================== */
- a { color: #00e; }
- a:visited { color: #551a8b; }
- a:hover { color: #06e; }
- a:focus { outline: thin dotted; }
- /* Improve readability when focused and hovered in all browsers: h5bp.com/h */
- a:hover, a:active { outline: 0; }
- /* =============================================================================
- Typography
- ========================================================================== */
- abbr[title] { border-bottom: 1px dotted; }
- b, strong { font-weight: bold; }
- blockquote { margin: 1em 40px; }
- dfn { font-style: italic; }
- hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
- ins { background: #ff9; color: #000; text-decoration: none; }
- mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
- /* Redeclare monospace font family: h5bp.com/j */
- pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
- /* Improve readability of pre-formatted text in all browsers */
- pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
- q { quotes: none; }
- q:before, q:after { content: ""; content: none; }
- small { font-size: 85%; }
- /* Position subscript and superscript content without affecting line-height: h5bp.com/k */
- sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
- sup { top: -0.5em; }
- sub { bottom: -0.25em; }
- /* =============================================================================
- Lists
- ========================================================================== */
- ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
- dd { margin: 0 0 0 40px; }
- nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }
- /* =============================================================================
- Embedded content
- ========================================================================== */
- /*
- * 1. Improve image quality when scaled in IE7: h5bp.com/d
- * 2. Remove the gap between images and borders on image containers: h5bp.com/e
- */
- img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
- /*
- * Correct overflow not hidden in IE9
- */
- svg:not(:root) { overflow: hidden; }
- /* =============================================================================
- Figures
- ========================================================================== */
- figure { margin: 0; }
- /* =============================================================================
- Forms
- ========================================================================== */
- form { margin: 0; }
- fieldset { border: 0; margin: 0; padding: 0; }
- /* Indicate that 'label' will shift focus to the associated form element */
- label { cursor: pointer; }
- /*
- * 1. Correct color not inheriting in IE6/7/8/9
- * 2. Correct alignment displayed oddly in IE6/7
- */
- legend { border: 0; *margin-left: -7px; padding: 0; }
- /*
- * 1. Correct font-size not inheriting in all browsers
- * 2. Remove margins in FF3/4 S5 Chrome
- * 3. Define consistent vertical alignment display in all browsers
- */
- button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
- /*
- * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
- */
- button, input { line-height: normal; }
- /*
- * 1. Display hand cursor for clickable form elements
- * 2. Allow styling of clickable form elements in iOS
- * 3. Correct inner spacing displayed oddly in IE7 (doesn't effect IE6)
- */
- button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
- /*
- * Consistent box sizing and appearance
- */
- input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; }
- 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-decoration { -webkit-appearance: none; }
- /*
- * Remove inner padding and border in FF3/4: h5bp.com/l
- */
- button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
- /*
- * 1. Remove default vertical scrollbar in IE6/7/8/9
- * 2. Allow only vertical resizing
- */
- textarea { overflow: auto; vertical-align: top; resize: vertical; }
- /* Colors for form validity */
- input:valid, textarea:valid { }
- input:invalid, textarea:invalid { background-color: #f0dddd; }
- /* =============================================================================
- Tables
- ========================================================================== */
- table { border-collapse: collapse; border-spacing: 0; }
- td { vertical-align: top; }
- /* ==|== primary styles =====================================================
- Author:
- ========================================================================== */
- /* ==|== media queries ======================================================
- PLACEHOLDER Media Queries for Responsive Design.
- These override the primary ('mobile first') styles
- Modify as content requires.
- ========================================================================== */
- @media only screen and (min-width: 480px) {
- /* Style adjustments for viewports 480px and over go here */
- }
- @media only screen and (min-width: 768px) {
- /* Style adjustments for viewports 768px and over go here */
- }
- /* ==|== non-semantic helper classes ========================================
- Please define your styles before this section.
- ========================================================================== */
- /* For image replacement */
- .ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
- .ir br { display: none; }
- /* Hide from both screenreaders and browsers: h5bp.com/u */
- .hidden { display: none !important; visibility: hidden; }
- /* Hide only visually, but have it available for screenreaders: h5bp.com/v */
- .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
- /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
- .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
- /* Hide visually and from screenreaders, but maintain layout */
- .invisible { visibility: hidden; }
- /* Contain floats: h5bp.com/q */
- .clearfix:before, .clearfix:after { content: ""; display: table; }
- .clearfix:after { clear: both; }
- .clearfix { *zoom: 1; }
- /* ==|== print styles =======================================================
- Print styles.
- Inlined to avoid required HTTP connection: h5bp.com/r
- ========================================================================== */
- @media print {
- * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
- a, a:visited { text-decoration: underline; }
- a[href]:after { content: " (" attr(href) ")"; }
- abbr[title]:after { content: " (" attr(title) ")"; }
- .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
- pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
- table { display: table-header-group; } /* h5bp.com/t */
- tr, img { page-break-inside: avoid; }
- img { max-width: 100% !important; }
- @page { margin: 0.5cm; }
- p, h2, h3 { orphans: 3; widows: 3; }
- h2, h3 { page-break-after: avoid; }
- }
- /* reflow reset for -webkit-margin-before: 1em */
- p { margin: 0; }
- html {
- overflow-y: auto;
- background-color: transparent;
- height: 100%;
- }
- body {
- background: #fff;
- font: normal 100%;
- position: relative;
- height: 100%;
- }
- body, div, img, p, button, input, select, textarea {
- box-sizing: border-box;
- }
- .image {
- display: block;
- }
- input {
- cursor: default;
- display: block;
- }
- input[type=button] {
- background-color: #e5e9e8;
- border: 1px solid #9daca9;
- border-radius: 4px;
- box-shadow: inset 0 1px #fff;
- font: inherit;
- letter-spacing: inherit;
- text-indent: inherit;
- color: inherit;
- }
- input[type=button]:hover {
- background-color: #eff1f1;
- }
- input[type=button]:active {
- background-color: #d2d6d6;
- border: 1px solid #9daca9;
- box-shadow: inset 0 1px rgba(0,0,0,0.1);
- }
- /* Reset anchor styles to an unstyled default to be in parity with design surface. It
- is presumed that most link styles in real-world designs are custom (non-default). */
- a, a:visited, a:hover, a:active {
- color: inherit;
- text-decoration: inherit;
- }
- </style>
- </head>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement