Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <title>HI/HELLO</title>
- <link href='http://fonts.googleapis.com/css?family=Open+sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
- <script type="text/javascript" src="https://cdn.rawgit.com/alvarotrigo/pagePiling.js/master/jquery.pagepiling.min.js"></script>
- <link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/alvarotrigo/pagePiling.js/master/jquery.pagepiling.css">
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- function commentSubmit(){
- if(form1.name.value == '' && form1.comments.value == ''){ //exit if one of the field is blank
- alert('Enter your message !');
- return;
- }
- $('#imageload').show();
- var name = form1.name.value;
- var comments = form1.comments.value;
- var answer = form2.answer.value;
- var xmlhttp = new XMLHttpRequest(); //http request instance
- xmlhttp.onreadystatechange = function(){ //display the content of insert.php once successfully loaded
- if(xmlhttp.readyState==4&&xmlhttp.status==200){
- document.getElementById('comment_logs').innerHTML = xmlhttp.responseText; //the chatlogs from the db will be displayed inside the div section
- $('#imageload').hide();
- }
- }
- xmlhttp.open('GET', 'insert.php?name='+name+'&comments='+comments+'&answer='+answer, true); //open and send http request
- xmlhttp.send();
- $('input[type=text]').val() = '';
- }
- $(document).ready(function(e) {
- $.ajaxSetup({cache:false});
- setInterval(function() {$('#comment_logs').load('logs.php');}, 2000);
- });
- </script>
- </head>
- <style>
- textarea{
- width:100%;
- height: 100px;
- }
- </style>
- <style>
- body3{
- background:#999;
- font-family:Verdana, Geneva, sans-serif;
- font-size:12px;
- }
- #container3{
- background-color:#FFF;
- width:50%;
- padding:10px;
- margin:20px;
- margin-left:auto;
- margin-right:auto;
- }
- .page_content{
- margin:15px;
- padding:5px;
- border-bottom:1px solid #CCC;
- }
- .comment_input{
- background:#CCC;
- margin:10px;
- padding:10px;
- border:1px solid #CCC;
- }
- .button{
- padding:5px 15px 5px 15px;
- background:#567373;
- color: #FFF;
- border-radius: 3px;
- }
- .button:hover{
- background:#4D9494;
- }
- a{
- text-decoration:none;
- }
- .comment_logs{
- margin:5px;
- padding:5px;
- border:1px solid #CCC;
- }
- .comments_content{
- margin:10px;
- padding:5px;
- border:1px solid #CCC;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- }
- h1{
- font-size:16px;
- font-family:Verdana, Geneva, sans-serif;
- color:#4040E6;
- padding-bottom:0px;
- margin-bottom:0px;
- }
- h2{
- font-size:10px;
- font-family:Verdana, Geneva, sans-serif;
- color:#CECED6;
- }
- h3{
- font-size:12px;
- font-family:Verdana, Geneva, sans-serif;
- color:#75A3A3;
- padding-bottom:5px;
- margin-bottom:5px
- }
- h4{
- font-size:14px;
- font-family:Verdana, Geneva, sans-serif;
- color:#CECED6;
- text-decoration:none;
- float:right;
- }
- </style>
- <style>
- #arrow{
- width: 100%;
- height: 50px;
- text-align: center;
- cursor: pointer;
- position: fixed;
- bottom: 0;
- left: 0;
- border: 0;
- outline: 0;
- z-index: 100;
- color: #BBB;
- background: transparent;
- -moz-transition: all 0.2s cubic-bezier(0.7, 0.01, 0.3, 1);
- -o-transition: all 0.2s cubic-bezier(0.7, 0.01, 0.3, 1);
- -webkit-transition: all 0.2s cubic-bezier(0.7, 0.01, 0.3, 1);
- transition: all 0.2s cubic-bezier(0.7, 0.01, 0.3, 1);
- font: 36px Heiti, 'Lucida Grande', Arial;
- font-weight: bold;
- }
- #arrow span{
- display: inline-block;
- position: relative;
- top: -18px;
- -moz-transition: all 0.7s cubic-bezier(0.7, 0.01, 0.3, 1);
- -o-transition: all 0.7s cubic-bezier(0.7, 0.01, 0.3, 1);
- -webkit-transition: all 0.7s cubic-bezier(0.7, 0.01, 0.3, 1);
- transition: all 0.7s cubic-bezier(0.7, 0.01, 0.3, 1);
- }
- #arrow:hover{
- background: #EC008C;
- }
- #arrow:hover span{
- top: 0;
- color: #FFF;
- }
- </style>
- <style>
- #pp-nav li .active span, .pp-slidesNav .active span {
- background: #bbb;
- }
- #pp-nav span, .pp-slidesNav span {
- border-color: #bbb !important;
- }
- </style>
- <style>
- .section {
- background-attachment: fixed;
- background-size: auto 80%;
- background-position: 50% 0%;
- background-repeat: no-repeat;
- }
- #section1 {
- background-image: url('');
- background-size: cover;
- }
- #section2 {
- background-image: url('');
- background-size: cover;
- }
- #section3 {
- background-image: url('');
- background-size: cover;
- }
- #section4 .content {
- top: 100%;
- position: absolute;
- left: 0;
- }
- </style>
- <style>
- #container{
- width:1400px;
- margin:100px auto;
- }
- #right-column{
- width:600px;
- float:right;
- background:white;
- }
- @media screen and (max-width:1399px){
- #container{
- width:80%;
- }
- #right-column{
- width:60%;
- }
- @media screen and (max-width:959px){
- #container{
- width:80%;
- }
- #right-column{
- width:60%;
- }
- @media screen and (max-width:700px){
- #container{
- width:80%;
- }
- #right-column{
- width:60%;
- }
- </style>
- <style>
- .intro {
- display: inline;
- float: right;
- width: 90%;
- margin-right: 5%;
- right: 0px; max-width: 500px;
- color: #000000;
- }
- @media screen and (max-width 98%){
- margin:0 1%
- }
- .intro h1 {
- font-size: 5px;
- font-weight: bold;
- color: #000;
- position: relative;
- left: -1px;
- top: 27px;
- }
- #section4 .intro {
- color: #000;
- }
- /* Content page
- * --------------------------------------- */
- .header {
- padding-top: 80px;
- text-align: center;
- }
- .header h1 {
- font-size: 5em;
- font-weight: bold;
- color: #fff;
- }
- .header p {
- color: #f2f2f2;
- font-size: 1.7em;
- }
- .page {
- width: 80%;
- margin: 60px auto;
- background:white;
- padding: 60px;
- -webkit-box-sizing: border-box;
- /* Safari<=5 Android<=3 */
- -moz-box-sizing: border-box;
- /* <=28 */
- box-sizing: border-box;
- }
- .page p {
- font-style: 12px;
- margin: 20px 0 0 0;
- line-height: 1.35em;
- color: #333;
- }
- </style>
- <style>
- .intro1 {
- position: absolute;
- bottom: 100px;
- text-align: justify;
- right: 200px; max-width: 500px;
- bottom: 200px;
- }
- .intro h1 {
- font-size: 5em;
- font-weight: bold;
- color: #000;
- }
- #section4 .intro {
- color: #000;
- }
- /* Content page
- * --------------------------------------- */
- .header {
- padding-top: 80px;
- text-align: center;
- }
- .header h1 {
- font-size: 5em;
- font-weight: bold;
- color: #fff;
- }
- .header p {
- color: #f2f2f2;
- font-size: 1.7em;
- }
- .page {
- width: 80%;
- margin: 60px auto;
- background:white;
- padding: 60px;
- -webkit-box-sizing: border-box;
- /* Safari<=5 Android<=3 */
- -moz-box-sizing: border-box;
- /* <=28 */
- box-sizing: border-box;
- }
- .page p {
- font-style: 12px;
- margin: 20px 0 0 0;
- line-height: 1.35em;
- color: #333;
- }
- </style>
- <style>
- .intro2 {
- position: absolute;
- text-align: justify;
- right: 250px; max-width: 500px;
- bottom: 160px;
- }
- .intro h1 {
- font-size: 5em;
- font-weight: bold;
- color: #000;
- }
- #section4 .intro {
- color: #000;
- }
- /* Content page
- * --------------------------------------- */
- .header {
- padding-top: 80px;
- text-align: center;
- }
- .header h1 {
- font-size: 5em;
- font-weight: bold;
- color: #fff;
- }
- .header p {
- color: #f2f2f2;
- font-size: 1.7em;
- }
- .page {
- width: 80%;
- margin: 60px auto;
- background:white;
- padding: 60px;
- -webkit-box-sizing: border-box;
- /* Safari<=5 Android<=3 */
- -moz-box-sizing: border-box;
- /* <=28 */
- box-sizing: border-box;
- }
- .page p {
- font-style: 12px;
- margin: 20px 0 0 0;
- line-height: 1.35em;
- color: #333;
- }
- </style>
- <body>
- <button id="arrow"> <span>↓</span>
- </button>
- <div id="pagepiling">
- <div class="section" id="section1">
- <div id="container">
- <aside id="right-column">
- <div class="intro">
- <br/>
- <br/>
- <br/>
- <br/>
- <br/>
- <br/>
- <font size="4">
- </br>
- </br>
- </h1>
- </font>
- </div>
- </aside>
- </div>
- </div>
- <div class="section" id="section2">
- <div class="intro1">
- <font size="4">
- </font>
- </div>
- </div>
- </button>
- <div class="section" id="section3">
- <div class="intro2">
- <font size="4">
- </font>
- </div>
- </div>
- <div class="section pp-scrollable" id="section4">
- <div id="container3">
- Kung
- <div class="page_content">
- <div class="page"><span style="font-family:Orbitron;font-size:20px;color:black;">
- <form name="form2">
- <form method="post" action="message.php">
- <input type="radio" name="answer" value="Oo" />Yes
- <input type="radio" name="answer" value="Hindi" />No
- </form>
- </span>
- </div>
- <div class="comment_input">
- <form name="form1">
- <input type="text" name="name" placeholder="Name..."/></br></br>
- <textarea name="comments" placeholder="Leave Comments Here..." ></textarea></br></br>
- <a href="#" onClick="commentSubmit()" class="button">Post</a></br>
- <div id"imageload" style="display:none;">
- <img src="loading.gif"/>
- </div>
- </form>
- </div>
- <div id"imageload" style="display:none;">
- <img src="loading.gif"/>
- </div>
- <div id="comment_logs">
- Loading comments...<img src="loading.gif"/>
- </div>
- </div>
- </div>
- <script>$('#pagepiling').pagepiling({
- verticalCentered: false,
- css3: false,
- sectionsColor: ['white', '#E8E8E8', '#f2f2f2', '#EC008C'],
- onLeave: function(index, nextIndex, direction) {
- //fading out the txt of the leaving section
- $('.section').eq(index - 1).find('h1, p').fadeOut(700, 'easeInQuart');
- //fading in the text of the destination (in case it was fadedOut)
- $('.section').eq(nextIndex - 1).find('h1, p').fadeIn(700, 'easeInQuart');
- //reaching our last section? The one with our normal site?
- if (nextIndex == 4) {
- $('#arrow').hide();
- //fading out navigation bullets
- $('#pp-nav').fadeOut();
- $('#section4').find('.content').animate({
- top: '0%'
- }, 700, 'easeInQuart');
- }
- //leaving our last section? The one with our normal site?
- if (index == 4) {
- $('#arrow').show();
- //fadding in navigation bullets
- $('#pp-nav').fadeIn();
- $('#section4 .content').animate({
- top: '100%'
- }, 700, 'easeInQuart');
- }
- },
- });
- $('#arrow').click(function() {
- $.fn.pagepiling.moveSectionDown();
- });</script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement