Android Century
  • Home
  • Android Zone
    • Android Apps
    • Android Games
    • Apps APk Files
    • Games Apk Files
    • Apps Hack Tricks
  • Reviews
  • Fantasy Zone
    • Entertainment
    • Quotes and Status
    • Life Style
    • Home Made Tips
    • Hair Care
    • Skin Care
    • Fantasy Tips
  • Tricks
    • Free Recharge
    • Free Internet
    • shopping Cashback
    • Recharge Cashback
  • Tech
  • Mobiles
  • Gadgets
  • News
  • How To's
  • Software
Breaking
Loading...

Featured post

How to Take Great Photos With Apple's iPhone X

Recent Posts

Labels

  • Android Apk Files
  • Android Apps
  • Android Games
  • Apps Apk Files
  • Entertainment
  • Fantasy Tips
  • Gadgets
  • Hair Care
  • HomeMade Tips
  • How To's
  • News
  • Quotes
  • Quotes & Status
  • Recharge Cashback
  • Recharge Promo Codes
  • Shopping Cashback
  • Technology
  • skin care
Home / How To's / How to add Couch Mode Widget in Blogger blog for Comfortable Reading

How to add Couch Mode Widget in Blogger blog for Comfortable Reading

Latest Govt. Jobs 12:53:00 How To's Edit
Couch mode is way of providing your reader to view the posted articles in its free form without any outside interference of other website elements. Didn’t get the idea of what I am saying just click Couch button hovering below post title.

So what happen after you click it, do you see any change with my blog, if yes then I will today teach you how to add this your blogspot domain. This post is quite long and complicated as compared of my other posts because its necessary to you understand it thoroughly.

FAQ

1: How do you get this Idea?
Of Course from Labnol.org (Amit sir Excellent Blog)


2: Did you copy Amit’s sir codes and applied to your blog?
Hell no! Not even dreams. Though it appear just like it but it’s all my coding.He has already written this piece of article for Wordpress but not for Blogger.


3: Can I make changes to the code you provide as per my convenience?
Yes you can. 


4: Can I use this code/concept to create an article of my own for my blog?

No you cannot. I personally request all reader not to create any kind of article related to this piece of code with my permission. I have faith in all reader that they would respect the work that I have done here, because I haven’t include any kind of link to my blog in any piece of code.

 
Hope you read this above FAQ because it’s very important to me, if you have any other question you can comment below.

Here are some requirement that must be considered before you proceed further :

System Requirement:

Google Chrome/Mozilla Firefox
Access to BlogSpot XML file (i.e. Administrator of the Blog)

Person Requirement:

You should have good knowledge of HTML and your template structure because this widget it’s not easy as like most of other widget.

So finally let’s implement this widget to your blog. My recommendation would be that you first read the whole article then implement this widget into your blog template.
Step 1: Firstly backup your template because the following piece of codes may ruin your template if not done properly.

Step 2: Now open template HTML editor and place the following code just above/before ]]</b:skin>
.
.cm_eu{
    background:#fff;
    width:50px;
    text-align:center;
    color:#888;
    border-radius:3px;
font: 14px "OFL Sorts Mill Goudy TT", Georgia, Times, serif;
  border:2px dashed #888;
    padding-top:10px;
    padding-bottom:10px;
    cursor:pointer;
    transition: background-color .777s;
-webkit-transition: background-color .777s;
-moz-transition: background-color .777s;
-o-transition: background-color .777s;
-ms-transition: background-color .777s;
padding-left:8px;
padding-right:8px;
margin-left:10px;
}
.cm_eu:hover{
  border:2px solid #000; color:#000;
}

.restorecss{display:none;
cursor:pointer;
text-align:center;
text-decoration:none;
font: 14px "OFL Sorts Mill Goudy TT", Georgia, Times, serif;
}
.restorecss:hover{
text-decoration:underline;
}

.prnt_eu{display:none;
cursor:pointer;
text-align:center;
text-decoration:none;
font: 14px "OFL Sorts Mill Goudy TT", Georgia, Times, serif;
}
.prnt_eu:hover{
text-decoration:underline;
}
#couch-toolbar {text-align:center;
background:#000; border:1px dashed #888; 
height:25px; right:0; position:fixed; 
width:125px; top:0;z-index:998;
margin: 0px 4em 0px 0px 
}
#couch-wrapper{ line-height:25px; 
margin:0 auto; width:99%; 
text-align:center;
z-index:998
}

Step 3: Now place the Following code where you have to render your couch button.

<span class="cm_eu refunc" title="Couch Mode for Comfortable Reading">Couch</span> 

Step 4: Now place the following code to render the back button and print button. The position of the buttons can be changed according to your need. You can change the buttons appearance as per your requirement.

<!-- BEGIN: Couch toolbar eutectics -->
<div id="couch-toolbar">
<div id="couch-wrapper">
<a class="restore" href="#" id="restorecss" style="color: white; font-style: italic;" title="Switch to Original Layout">
<b>←</b>go back </a>
<a href="#" id="prnt_eu"></a>
<a href="javascript:window.print()" rel="nofollow" style="color: white; font-style: italic;" title="Print This Story 
without clutter">print</a>
</div>
</div>
<!-- END: Couch Toolbar eutectics-->

Step 5:
Now place this following piece of code just before/above </head>
<script><!--script 1-->
$(document).ready(function(){
$(".refunc").click(function(){
$(".restore").css("display","inline");
$(".prnt_eu").css("display","inline");
$(".cm_eu").css("display","none");
$("#couch-toolbar").css("display","inline-block");
Your element css code id that you have 
to remove after you press Couch button. 
For more info read Paragraph A
});
});
</script>
<script><!--script 2-->
$(document).ready(function(){ 
$(".restore").click(function() {
   $(".restore").css("display","none");
$(".prnt_eu").css("display","none");
$(".cm_eu").css("display","initial");
$("#couch-toolbar").css("display","none");
The element that you have to restore.
For more info read Paragraph A
});
});
</script>

Paragraph A: Consider the following example, like say I have to remove the sidebar of my blog template just after the Couch button is click by my reader. Then I should include the following code in first script.
$(".sidebar-wrapper").css("display","none");

Now also to make thing appears to go its original layout as my reader click “go back”, I should also include this following code into second script.
$(".sidebar-wrapper").css("display","initial");

Here in the above code .sidebar-wrapper is my id of sidebar it will be different from your sidebar id. Similarly if you want to increase different parameter like increasing the font size after couch button is click. So simply add this codes into script 1 and script 2 respectively.
$("h1.post-title").css("font-size","70px"); 

$("h1.post-title").css("font-size","50px");

Here h1.post-title is id for post title. And finally all you have the add id of the element that you have to remove in couch mode in script 1 and restore to its initial state by adding the it’s restore code in script 2 like by setting its display its state to initial. All this above coding is all logical and can be understood easily. Finally after doing so the final code that you would obtain will something look like this.
<script>
$(document).ready(function(){
$(".refunc").click(function(){
$(".restore").css("display","inline");
$(".prnt_eu").css("display","inline");
$(".cm_eu").css("display","none");
$("#couch-toolbar").css("display","inline-block");
$(".sidebar-wrapper").css("display","none");
$("#content").css("width","95%");
$("#comments").css("display","none");
$(".post-footer-line.post-footer-line-2").css("display","none");
$("h1.post-title").css("font-size","70px");
});
});
</script>
<script>
$(document).ready(function(){ 
$(".restore").click(function() {
   $(".restore").css("display","none");
$(".prnt_eu").css("display","none");
$(".cm_eu").css("display","initial");
$("#couch-toolbar").css("display","none");
 $(".sidebar-wrapper").css("display","initial");
$("#content").css("width","65%");
$("#comments").css("display","initial");
$("h1.post-title").css("font-size","50px");
});
});
</script>

here #content is id for post body, #comments is id for comments and similarly h1.post-title is id for post title.

This above widget is get right by testing it and that’s how I have done it. It’s actually very difficult to add this widget to your blog that’s why I have included personal requirement, but when you get it right it’s really cool to see it work. Hope this article might help you to integrate this widget into your blog.
Share on Facebook Share on Twitter Share on Google Plus

RELATED POSTS


How to get BookMyShow Instant Disco...

How To Get Free Recharge And Money ...

How to Sync Your Contacts Between A...
How to add Couch Mode Widget in Blogger blog for Comfortable Reading How to add Couch Mode Widget in Blogger blog for Comfortable Reading Reviewed by Latest Govt. Jobs on 12:53:00 Rating: 5

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments ( Atom )

Search This Blog

TEST BOOK FOR GOVT ENTRANCE TEST

TEST BOOK FOR GOVT ENTRANCE TEST
Find All Latest book for preparation of SSC,RAILWAYBANK PO,RBI,BANK CLERK,GATE ME,GATE CE are available here in less prices, to check out the books click here

Translate

  • Popular Post
  • Random posts
  • Category

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & Earn Offer:  Hey Guys! Today I make an article about Teen Patti Referral ...
  • Taotronics TT-BH22 Headphones Review
    We make it a addiction to now not look up pricing of a product sooner than reviewing and if ...
  • Reliance Jio to offer sharp tariff discounts for customers signing up by March-end
    Reliance Industries' Jio unit will charge a tariff for its services from April, but will offer ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on Monday strongly condemned North Korea’s latest missile test, adding that the ...
  • Fitbit Zip 2017 review
    Fitbit PROS: Clever, accurate tracking Expandable online service Integration with 3rd ...
  • Bank wallets growing faster than e-wallets
    In the  bank  versus  e-wallets  sweepstakes,  lenders  have now gained lost ground. As of ...

Random Posts

  • Intel now supports Vulkan on Windows 10 PCs
    Intel now supports Vulkan on Windows 10 PCs
    14.02.2017 - 0 Comments
    Intel is bringing more options to improve gaming and virtual reality experiences on Windows PCs…
  • Is It Safe to Use a Hard Drive While rsync Is Running?
    Is It Safe to Use a Hard Drive While rsync Is Running?
    05.03.2017 - 0 Comments
    If you are just getting started with rsync for the first time and have multiple large hard drives to…
  • The entirety you want to understand Samsung Galaxy S8 and S8+ FAQ
    The entirety you want to understand Samsung Galaxy S8 and S8+ FAQ
    30.03.2017 - 0 Comments
    Here’s everything you need to know about Samsung’s latest Android smartphones. The Galaxy S8 is finally…
  • Play Overwatch for Free Next Weekend on PC, PS4, and Xbox One
    Play Overwatch for Free Next Weekend on PC, PS4, and Xbox One
    15.11.2016 - 0 Comments
    HIGHLIGHTS Your progress will carry over if you decide to buy the game No content will be locked out…
  • Online hiring up 14% YoY
    Online hiring up 14% YoY
    14.02.2018 - 0 Comments
    Highlighting a steady recovery of the job market, a report by Naukri.com on Tuesday revealed that online…

Labels

Android Apk Files Android Apps Android Games Apps Apk Files Apps Hack Tricks Entertainment Free Internet Freecharge Gadgets Games Apk Files How To's Laptops Guide Mobiles Reviews Technology Viral's android zone free recharge

Entertainment

Tricks

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • Taotronics TT-BH22 Headphones Review
    We make it a ...
  • Bank wallets growing faster than e-wallets
    In the  bank ...
  • Reliance Jio to offer sharp tariff discounts for customers signing up by March-end
    Reliance Industries' Jio unit will charge a tariff for its services from April, but will offer ...
  • Hands-on with the home windows 10 Creators update for the Xbox One: Beam recreation streaming arrives
    The Windows ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on ...
  • Fitbit Zip 2017 review
    Fitbit PROS ...

Random Posts

  • Samsung Galaxy S9's teaser videos hint at low-light camera capabilities and 3D emojis
    Samsung Galaxy S9's teaser videos hint at low-light camera capabilities and 3D emojis
    16.02.2018 - 0 Comments
    NEW DELHI: Samsung is all set to launch its next generation flagship smartphone Galaxy S9 and Galaxy S9…
  • Infocus Vision 3 review
    Infocus Vision 3 review
    22.01.2018 - 0 Comments
    What happens when you hear about a smartphone that is priced below Rs 7,000 but comes with two trends that…
  • How To Impress A Girl On Chat: 7 Simple Steps To Make Yourself A Girl Magnet
    How To Impress A Girl On Chat: 7 Simple Steps To Make Yourself A Girl Magnet
    27.02.2016 - 0 Comments
    Indeed as we all know that first chats are much like the first dates, and we have only few chances to impress…
  • Here is Best music widgets for Android
    Here is Best music widgets for Android
    26.01.2018 - 0 Comments
    A good widget can make or break a home screen. Widgets at their best should feel like they've always been…
  • Samsung Galaxy S8, S8+ have the pleasant acting display on a telephone: DisplayMate
    Samsung Galaxy S8, S8+ have the pleasant acting display on a telephone: DisplayMate
    05.04.2017 - 0 Comments
    Samsung Galaxy S8, S8+ have the best display ever on a smartphone, says DisplayMate. Samsung Galaxy S8,…

Most Popular

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J ...
  • Top 5 Best SmartPhones under 7000 Rs (March 2017)
    Looking for the ...
  • Apple, IBM, Cisco are huge because of Indians, do not deny them H-1B visa: RBI Governor Urjit Patel
    ...
  • SAMSUNG GALAXY J7 (2016) Specifications
    SAMSUNG GALAXY J ...
  • BlackBerry Teases Marshmallow Beta Testing for Priv by Next Week
    Blackberry ...
  • LG Q6 Review
    LG Q6 Review
    2017 is ...

Contact Form

Name

Email *

Message *

Offers Zone

Created By Android Century Distributed by Android Century
  • Home
  • About us
  • Contact us
  • Privacy policy
  • Terms of use
  • Advertise here
Subscribe Via Email Subscribe To Android Century By Email And Get Free Updates. ;-)


Your email address is safe with us!