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 HACK Google Play Music App

How to get BookMyShow Instant Disco...

How To Get Free Recharge And Money ...
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 ...
  • Hands-on with the home windows 10 Creators update for the Xbox One: Beam recreation streaming arrives
    The Windows 10 Creators Update is here, now—yes,  now —but not (officially) on the PC. The ...
  • Taotronics TT-BH22 Headphones Review
    We make it a addiction to now not look up pricing of a product sooner than reviewing and if ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on Monday strongly condemned North Korea’s latest missile test, adding that the ...
  • Bank wallets growing faster than e-wallets
    In the  bank  versus  e-wallets  sweepstakes,  lenders  have now gained lost ground. As of ...
  • 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 ...

Random Posts

  • Here Android Trojan Marcher Continuing Attacks Using SMS
    Here Android Trojan Marcher Continuing Attacks Using SMS
    05.03.2017 - 0 Comments
    The Android banking Trojan known as Marcher has been out for a while now. Attacks though are beginning to…
  • Qualcomm details plans for Windows 10 PCs with Snapdragon 835 chips 2017
    Qualcomm details plans for Windows 10 PCs with Snapdragon 835 chips 2017
    01.03.2017 - 0 Comments
    Qualcomm has big plans to bring back ARM to Windows 10 PCs, and there is a chance that its Snapdragon 835…
  • The Unofficial guide To Get greater Twitter followers
    The Unofficial guide To Get greater Twitter followers
    04.04.2017 - 0 Comments
    Twitter has more than 9100 tweets per second summing up to over 1 billion tweets in just five days. Around…
  • Nokia Steel HR Review
    Nokia Steel HR Review
    20.01.2018 - 0 Comments
    This reborn Withings tracker is still a fine marriage of analogue looks and digital smarts. Shortly…
  • 09.11.2016 - 0 Comments
    SUMMARY The Moto M mobile features a 5.5 Inch display and runs on Android v6.0 (Marshmallow)…

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 & ...
  • Steam Now Supports PS4's DualShock 4 Controller
    HIGHLIGHTS ...
  • Lenovo Yoga Book launched in India at Rs 49,990: First Impressions
    Lenovo  has ...
  • This $15 stand turns your Apple Watch into a mini Macintosh
    For all those  ...
  • Grow Hair Faster: How to Make Hair Grow Faster Naturally
    Every woman wants ...
  • MobiKwik - Update E-KYC & Get Rs. 100 Supercash
    MobiKwik - Update E-KYC & Get Rs. 100 Supercash
    Mobikwik - Update ...
  • Fitbit Flex 2017 review
    Fitbit PROS ...

Random Posts

  • Google’s fact checking characteristic now works on all searches worldwide
    Google’s fact checking characteristic now works on all searches worldwide
    08.04.2017 - 0 Comments
    Search engine giant Google has rolled out an enhanced fact check feature for all…
  • Aerix DaVinci Review
    Aerix DaVinci Review
    03.02.2018 - 0 Comments
    Low-value drones are most often all about compromise – you both have to make do with diminished options,…
  • HP's 15-inch Spectre x360 features upgraded hardware and a new look for 2017
    HP's 15-inch Spectre x360 features upgraded hardware and a new look for 2017
    13.02.2017 - 0 Comments
    In anticipation of our coming review, we decided to haul HP’s refreshed 15-inch Spectre x360 2-in-1…
  • If You Do These 10 Things You're Headed Toward Lasting Love (Yay!)
    If You Do These 10 Things You're Headed Toward Lasting Love (Yay!)
    21.02.2016 - 0 Comments
    THIS is a one size fits all guide to building the right kind of relationship.How many of us have learned how…
  • Paytm Kitkat Offer – Get Rs 10 Or Rs 20 Paytm Cash On Every Pack
    Paytm Kitkat Offer – Get Rs 10 Or Rs 20 Paytm Cash On Every Pack
    06.04.2016 - 0 Comments
    Paytm Kitkat Offer – Get Rs 10 or Rs 20 paytm cash on every pack for free. This is am amazing offer. You will…

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!