Thu. Jun 30th, 2022

Given that we spend roughly a third of our lives asleep (around 25 years), we thought we’d go deeper into the world of sleep to unearth some intriguing statistics about sleep and what we do when we’re sleeping.

Here is the list of some facts about sleeping that were unexpected and mind blowing!

Some of us have black-and-white dreams

Credit: Vocal Media

About 12% of people dream in black and white nowadays. While this may appear surprising, it was closer to 75% prior to the introduction of color television.

We are the only mammals capable of postponing sleep

Credit: Calm

We can keep ourselves awake even when our bodies tell us it’s time to sleep. Other mammals, on the other hand, are forced to sleep when their bodies demand it.

Men and women sleep in various ways

Credit: WSJ

The circadian rhythms of men and women differ slightly. Men have a six-minute longer circadian rhythm than women, which means they are less exhausted in the evening. Women are more likely than males to have a shorter cycle, which means they get up sooner.

Sleep improves your immunity


It’s recommended that you get seven to eight hours of sleep per night throughout flu season to keep your busy immune system in good shape.

Approximately 15% of the population sleepwalks

Credit: Familydoctor

According to the National Sleep Foundation, 15% of people sleepwalk, and you can supposedly wake someone who is sleepwalking.

A person should take 10-15 minutes to fall asleep


This is the average length of time for falling asleep. If you fall asleep in less than 5 minutes, you’re probably suffering from sleep deprivation.

No one sleeps the whole night through


We all wake up multiple times during the night, most of the time without recognizing it, whether it’s from being too hot or chilly, partner movement, children, or noise. Waking up in the middle of the night is nothing to be concerned about; we go through numerous stages of sleep, each punctuated by occasional awakenings.

When we sleep, our perception of smell declines


Noise has been demonstrated to rouse us up when we sleep, whereas odors do not, which is why fire alarms were designed.

We could not leave you without a few amusing facts. There are some more fun facts also such as, you can not sneeze in your sleep, giraffes only need 1.9 hours of sleep per day, and babies can deprive their parents of 44 days of sleep every year!

In general, we should strive to get 7-9 hours of sleep each night. It may appear simple, but in our neon-lit, frantic, and noisy existence, it is more difficult than we would want. All we can do is continue to make an effort to provide sleep with the space it requires.

$('.a2a_i').click(function () { $('#a2apage_dropdown').css('display', 'none'); });

$('.close_menus').click(function () { $('.login-list').fadeOut(); });

$("#signup-nav").validate({ errorClass: 'redvalidate', rules: { name: { required: true, lettersonly: true }, userID: { required: true, }, password: { required: true, },

con_password: { required: true, equalTo: "#password" } }, messages: { name: { required: "", lettersonly: "" }, userID: { required: "", }, password: { required: "" }, con_password: { required: "", equalTo: "Password does not match the confirm password" } }, submitHandler: function (form) { var dataSend = $("#signup-nav").serializeArray(); $.ajax({ type: "POST", beforeSend: function () { $(".msg").html("Loading..").css('color', 'grey'); }, url: "https://www.cityspidey.com/home/signup/", data: dataSend, success: function (msg) {

if (msg == '0' || msg == 0) { $(".msg").html("Invalid UserID/Password").css({'color': 'red', "margin-top": "10px"}) $('.msg').fadeIn('slow').delay(1000).fadeOut('slow', function () { $(".msg").html("Signup").css('color', 'black'); })

} else if (msg == '1' || msg == 1) { $(".msg").html("User Signup Successfull!").css({'color': 'green', "margin-top": "10px"}); $('.msg').fadeIn('slow').delay(1000).fadeOut('slow', function () { $(".msg").fadeIn('slow').html("Please verify to login!").css({'color': 'green', "margin-top": "10px"}); toggle_panel('3'); }) } else if (msg == '2' || msg == 2) { $(".msg").html("User Exists!").css({'color': 'red', "margin-top": "10px"}); $('.msg').fadeIn('slow').delay(1000).fadeOut('slow', function () { $(".msg").html("Please Input Correct Detail!").css('color', 'black'); }) } }, complete: function () { $('#signup-nav')[0].reset(); } }); return false; } }); $.validator.addMethod("lettersonly", function (value, element) { return this.optional(element) || /^[a-z ]+$/i.test(value); }, "Letters only please");

$("#login-nav").validate({ errorClass: 'redvalidate', rules: { userID: { required: true, }, password2: { required: true, } }, messages: { userID: { required: "", }, password2: { required: "" } }, submitHandler: function (form) { var dataSend = $("#login-nav").serializeArray();

$.ajax({ type: "POST", beforeSend: function () { $(".msg").html("Loading..").css('color', 'grey'); }, url: "https://www.cityspidey.com/home/login/", data: dataSend, success: function (msg) {

if (msg == '0' || msg == 0) { $(".msg").html(""); $(".msg").html("Invalid UserID/Password").css({'color': 'red', "margin-top": "10px"}) $('.msg').fadeIn('slow').delay(1000).fadeOut('slow', function () { $(".msg").fadeIn('slow').html("Login").css('color', 'black'); }); } else if (msg == '1' || msg == 1) { $(".msg").html("Login Successfully!").css('color', 'green'); $('.msg').fadeIn('slow').delay(1000).fadeOut('slow', function () { window.location.href = window.location }); } }, complete: function () { // $(".msg").html("Signup").css('color', 'black'); // $('#signup-nav')[0].reset(); } }); return false; } });

$("#verify-nav").validate({ errorClass: 'redvalidate', rules: { phone: { required: true, }, otp: { required: true, } }, messages: { phone: { required: "", }, otp: { required: "" } }, submitHandler: function (form) { var dataSend = $("#verify-nav").serializeArray(); $.ajax({ type: "POST", beforeSend: function () { $(".msg").html("Loading..").css('color', 'grey'); }, url: "https://www.cityspidey.com/home/verify/", data: dataSend, success: function (msg) { if (msg == '0' || msg == 0) { $(".msg").html(""); $(".msg").html("Invalid UserID/OTP").css({'color': 'red', "margin-top": "10px"}) $('.msg').fadeIn('slow').delay(1000).fadeOut('slow', function () { $(".msg").fadeIn('slow').html("Verify Login").css('color', 'black'); }); } else if (msg == '1' || msg == 1) { $(".msg").html("Verify Successfully!").css('color', 'green'); $('.msg').fadeIn('slow').delay(1000).fadeOut('slow', function () { window.location.href = window.location }); } }, complete: function () { } }); return false; } }); });

function sentotp() { $("#phone").css('border-color', ''); var emailID_phone = $("#phone").val(); if (validatePhone(emailID_phone) == false && ValidateEmail(emailID_phone) == false) { $("#phone").css('border-color', 'red'); return false; } else { $.ajax({ type: "POST", beforeSend: function () { $(".msg").html("Loading..").css('color', 'grey'); }, url: "https://www.cityspidey.com/home/resentOtp/", data: {id: $("#phone").val()}, success: function (msg) { if (msg == 1) { $(".msg").html("Otp Sent!").css('color', 'grey'); } else if (msg == 2) { $(".msg").html("Max. Limit reached!").css('color', 'grey'); } else if (msg == 0) { $(".msg").html("Already Approved!").css('color', 'red'); } } }); } }

function ValidateEmail(mail) { if (/^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/.test(mail)) { return (true) } return (false) }

function validatePhone(phone) { var phoneRegex = /^(+91-|+91|0)?d{10}$/; return phoneRegex.test(phone); }

function goclicky(meh, name) { var x = screen.width / 2 - 600 / 2; var y = screen.height / 2 - 520 / 2; var myWindow = window.open(meh, myWindow, 'height=400,width=600,left=" + x + ",top=' + y); myWindow.document.title="Popup Box"; } window.fbAsyncInit = function() { // FB JavaScript SDK configuration and setup FB.init({ appId : '311309132709921', // FB App ID cookie : true, // enable cookies to allow the server to access the session xfbml : true, // parse social plugins on this page version : 'v2.10' // use graph api version 2.8 });

// Check whether the user already logged in /*FB.getLoginStatus(function(response) { if (response.status === 'connected') { //display user data getFbUserData(); } });*/ };

// Load the JavaScript SDK asynchronously (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "https://connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));

// Facebook login with JavaScript SDK function fbLogin() { FB.login(function (response) { if (response.authResponse) { // Get and display the user profile data getFbUserData(); } else { document.getElementById('status').innerHTML = 'User cancelled login or did not fully authorize.'; } }, {scope: 'email'});}

// Fetch the user profile data from facebook function getFbUserData(){

FB.api('/me', {locale: 'en_US', fields: 'id,first_name,last_name,email,link,gender,locale,picture'}, function (response) {

$.post('https://www.cityspidey.com/home/checkFbUser/',{ oauth_uid : response.id, user_email_phone: response.email, first_name: response.first_name, last_name: response.last_name, name:response.first_name + ' ' +response.last_name, profile_pick:'https://graph.facebook.com/'+response.id+'/picture?type=large', gender:response.gender, facebooklogin:'1', login_from: 'email', is_verified: '1', status: '1', oauth_provider: 'Facebook' },function(msg){ if(msg==0){ $("#fbLink").show(); alert('Login With facebook Fail!');return false; } else{ window.location.reload(); } }); }); }

//------------------------Facebook signup Start---------------------------------------//

// Logout from facebook //old ci 133043768578-8ed1s4vlo98nhpp9n8oe4dr5heq7fba4.apps.googleusercontent.com //old key AIzaSyDv7Ews8tnHzrVlt7Z9qwiQPqKrvIgymPU

function fbLogout() { FB.logout(function () { document.getElementById('fbLink').setAttribute("onclick", "fbLogin()"); document.getElementById('fbLink').innerHTML = ''; document.getElementById('userData').innerHTML = ''; document.getElementById('status').innerHTML = 'You have successfully logout from Facebook.'; }); } if('serviceWorker' in navigator) { navigator.serviceWorker .register('service-worker.js') .then(function() { console.log('Service Worker Registered'); }); }

// Code to handle install prompt on desktop

let deferredPrompt; const addBtn = document.querySelector('.add-button'); //alert(addBtn); addBtn.style.display = 'none';

window.addEventListener('beforeinstallprompt', (e) => { // Prevent Chrome 67 and earlier from automatically showing the prompt e.preventDefault(); // Stash the event so it can be triggered later. deferredPrompt = e; // Update UI to notify the user they can add to home screen addBtn.style.display = 'block';

addBtn.addEventListener('click', (e) => { // hide our user interface that shows our A2HS button addBtn.style.display = 'none'; // Show the prompt deferredPrompt.prompt(); // Wait for the user to respond to the prompt deferredPrompt.userChoice.then((choiceResult) => { if (choiceResult.outcome === 'accepted') { console.log('User accepted the A2HS prompt'); } else { console.log('User dismissed the A2HS prompt'); } deferredPrompt = null; }); }); });

.

Leave a Reply

Your email address will not be published.