CDF

Categories
    • android tips 35
    • Blogger Tips 33
    • Blogging 49
    • Blogging tips 20
    • Browsing tips 53
    • codings 27
    • E-dinar 9
    • earnings 33
    • educational 13
    • Games 8
    • hacking 16
    • Hacking Tips 7
    • how to 120
    • HTML 14
    • info 99
    • JavaScript's 15
    • Konga tips 3
    • Mobile 39
    • mp3 1
    • PC tips 17
    • school gist 7
    • seo tutorials 14
    • Social media 16
    • software 27
    • tech 20
    • templates 2
    • tutorials 105
    • updates 161
    • Vpn tips 2
    • WiFi hacking tutorials 3
Dark
Contact Us
ProfilMain Page
  • About us
  • Sponsored
  • Disclaimer
  • Privacy Policy

Labels : JavaScript's

Views Style:
instructions to put a blogger widget inside a scroll box

instructions to put a blogger widget inside a scroll box

Blogger Tips No comments
how to to Add Comment Counter to Post Header Titles in Blogger

how to to Add Comment Counter to Post Header Titles in Blogger

Blogger Tips No comments
Show Recent Posts With Featured Thumbnails in Blogger

Show Recent Posts With Featured Thumbnails in Blogger

Blogger Tips No comments
Progressed Multi Column Footer Widget For Blogger

Progressed Multi Column Footer Widget For Blogger

Blogging tips No comments
Give Readers A chance to pick Font Style and Size Widget

Give Readers A chance to pick Font Style and Size Widget

Blogging tips No comments
HTML Imports: Import HTML Files Into Another HTML Files

HTML Imports: Import HTML Files Into Another HTML Files

codings No comments
20 Useful Tools to Test Code Snippets

20 Useful Tools to Test Code Snippets

info No comments
Instructions to Automatically add Read More connection to Blogger

Instructions to Automatically add Read More connection to Blogger

Blogger Tips No comments
Load more posts

Trending Post

  • Instructions to Automatically add Read More connection to Blogger
    Instructions to Automatically add Read More connection to Blogger
  • instructions to put a blogger widget inside a scroll box
    instructions to put a blogger widget inside a scroll box
  • The most effective method to Pay Or Receive Payments With mCash
    The most effective method to Pay Or Receive Payments With mCash
  • Download Website Organic Traffic Ebook Here
    Download Website Organic Traffic Ebook Here
  • AdSense Ads Not Showing On HomePage - Problem Solved
    AdSense Ads Not Showing On HomePage - Problem Solved
Email Subscription

instructions to put a blogger widget inside a scroll box

  • Get link
  • Facebook
  • X
  • Pinterest
  • Email
  • Other Apps
Oleh bcoded - January 13, 2017
Possibly you have seen in a few sites/sites that they have alot of gadgets which have recently destroyed there blog style and space.Now to dispose of these long gadgets , you can place them in a Box having a Scroll bar.Any tall gadget like Blog Archive and so on gadgets must be set in a Scroll box.

This will spare your Blog Space and will make your blog simple and navigative for readers.Implementing this Widget will empowers you to put your gadget content in a Scroll box , so your perusers can without much of a stretch explore blog contents.In this Scroll box , all titles will be static and can undoubtedly be gotten to by your Readers.

Step by step instructions to Put a Widget inside a Scroll Box 
Discover the Widget ID You need to place it in a Scroll box


  1. Visit Blogger Dashboard. 
  1. Tap On Template 
  1. Alter HTML 
  1. Look for this Code
]]></b:skin> Now Copy the below Script and add
it above this Script ]]></b:skin>
/* By codedforum.com.ng START */
#WidgetIdYouWant2PlaceinScrollBox .widget-content {
height: 200px;
overflow: auto;
}
/* END */  
 Supplant WidgetIdYouWant2PlaceinScrollBox with Widget ID >>Save Template and that is it!

If You have Any Question in regards to this Tut , ask unreservedly we are here to answer! Remain Blessed ,Happy Blogging!

Read more
Post a Comment
Nhãn : Blogger Tips Blogging how to HTML JavaScript's tutorials

how to to Add Comment Counter to Post Header Titles in Blogger

  • Get link
  • Facebook
  • X
  • Pinterest
  • Email
  • Other Apps
Oleh bcoded - January 12, 2017
Add Comment Counter to Post Header Titles in Blogger: By Default quantities of Comments is appeared beneath the every post in Comment Section.As it is put underneath post , so the greater part of us never saw it.

Now If you are occupied with adding this Comment Counter to Header it will truly move your blog perusers and will socially constrain them to comment.It's a reality , in the event that you add Comment Counter close to Blog post Title it will be thoroughly better then the underneath area.

And it will without a doubt rouse your Blog Readers to Comment on your Posts.What Do You Think this Counter is better perfect to Post Titles? On the off chance that Yes, Then take after the accompanying strides.

  1. Go To Blogger 
  2. Tap On Template 
  3. Alter HTML 
  4. Scan for ]]></b:skin> 
Presently Copy the Below Script and include it simply above ]]></b:skin>
.comment-count {
float : right;
width : 47px;
height : 47px;
background : url(  SPECIFIC IMAGE URL  );
background-repeat: no-repeat;
font-size : 19px;
position:absolute;
margin-top : -16px;
margin-right : 2px;
text-align : center;
}
Presently Chose the Comment Counter Background
Presently Copy the Image URL and Replace SPECIFIC IMAGE URL in the script with the picture URL Presently Add Comment Count Code
 

For That Again Go To Blogger Dashboard >> Template >> Edit HTML >> Search For

<h2 class='post-title section title' itemprop='name'> OR class='post-title passage title' 

Presently Copy the Below Script and include it underneath the Above said Code


<b:if cond='data:post.allowComments'> <a class='comment-number' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:post.numComments/></a>
</b:if> 

Presently Save Template and That's it !

So What's Up : If You Liked this tut , Please Share it and Express your perspectives in Comments . Remain Blessed ,Happy Blogging!


Read more
Post a Comment
Nhãn : Blogger Tips Blogging codings how to HTML JavaScript's tutorials

Show Recent Posts With Featured Thumbnails in Blogger

  • Get link
  • Facebook
  • X
  • Pinterest
  • Email
  • Other Apps
Oleh bcoded - December 12, 2016
We have talked about in detail how you can utilize JavaScript to concentrate information from Blogger JSON Feed API and utilize it to manufacture devices, for example, "Late Posts Widget" and "Latest Comments Widget". The JSON instructional exercise arrangement would help a designer to make quality gadgets for blogspot blogging stage.

 Today's instructional exercise will demonstrate to you the finished result of what should be possible utilizing JSON nourish for posts. I will impart to you a propelled gadget that will show late posts in dropping request (most recent at top)⇪ alongside post thumbnails, post rundown, timestamp, remark number, mark label, creator name and alter interface.

You can add it to your blogger sites to show most recent posts in an interesting style. This is the main gadget of its kind with so much elements.

Upgrade: A more conservative, adaptable and completely utilitarian variant of this gadget has been discharged. Checkout: 

Late posts Label Gadget with Avatars, Animated Thumbnails and Labels! 
What is a Blogger Recent Posts Widget? ⇙⇙

A latest posts gadget shows your most recent posts in sliding request with freshest at top. It demonstrates a rundown of your most recent blog entries alongside thumbnails, post passage and post meta data. It works with all blogspot online journals. Duplicate the code and glue it inside a HTML/JavaScript contraption, that straightforward!

You can likewise utilize it to show posts by name by posting late posts from a particular mark. You can modify it to show posts in magazine style form with vertical, level, exhibition style posting. I will examine all such conceivable outcomes in my coming instructional exercises. Designers at themeforest utilize a similar strategy to make magazine style blogger layouts. You will figure out how to code it sans preparation through our JSON arrangement.

Full elements are the accompanying: 
Post Title
Highlighted Image - With outsider picture bolster and YouTube Thumbnails bolster
Post outline
Perused more connection
Creator Name
Name/Category/Tag name
Remarks Count
Distribute date
Alter connect tooltip that will demonstrate post Update Date and Time.
Lightweight
Liquid and responsive 

Shows the accompanying GIF preloader which turns and throbs when the gadget loads or when information is asked for by program from JSON bolster. 

preloader for blogger websites ⇣
Once completely stacked the blog entries are shown in dropping request (Latest at top)




Lets get to coding! 
Add Recent Posts Widget To Your Blog

Take after these simple strides to add this contraption to your blogspot web journals:

⤰ Go To Blogger ➥ Template 

⤯ Backup your format

⤯ Click Edit HTML

⤮ Paste the accompanying code simply above </head> tag

Take note of: This progression is discretionary. Skip it on the off chance that you have as of now added jQuery library source connections to your blogger template 
<script async='' src='https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'></script> 
Next glue the accompanying template joins for FontAwesome and Oswald text style simply above </head>. Skip adding the links if you already have added them inside your templates

Presently glue the accompanying CSS code simply above ]]></b:skin>
<link href='http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css' rel='stylesheet'/><link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/>
Now paste the following CSS code just above    ]]></b:skin> 
/*############Recent Posts Widget##################*/.mbtlist {list-style-type:none;overflow:hidden; padding:10px!important;} .mbtlist li {margin:0px auto 20px auto; clear:both; color:#666; font-family:helvetica; font-size:12px; } .mbtlist i{color:#999; padding-right:4px; } .mbtlist .iline{line-height:2em; clear:both; border:1px solid #eee; margin-top:10px; padding: 0px 4px;   font-size: 12px;} .mbtlist div span{margin:0 10px 0 0; display:inline-block;} .mbtlist span {display:block; margin:5px 0px 0px; padding-right:5px;} .mbtlist .icon {color: #999;font-family: verdana;font-size: 12px;text-align: justify;} .mbtlist img {float:left; margin:0px 10px 10px 0px; border:6px solid #fff; padding:0px; width:150px; height:100px; box-shadow:-1px -1px 4px #777; } .mbtlist .mbttitle {font-family:oswald; font-size:18px; color:#0080ff; font-weight:normal; text-decoration:none;    line-height: 1.4em;} .mbtlist .mbttitle:hover, .mbtlist .itotal a:hover  {color:#00A5FF;} .mbtlist .iedit a{text-decoration:none; color:#999; cursor:pointer} .mbtlist .iedit:before, .mbtlist .iauthor:before, .mbtlist .itag:before, .mbtlist .icomments:before, .mbtlist .idate:before, .mbtlist .itotal span:before{font-family:fontAwesome; position:relative; padding-right:5px;} .mbtlist .iauthor:before {content:'\f007';} .mbtlist .itag:before {content:'\f02c';} .mbtlist .icomments:before {content:'\f086';} .mbtlist .idate:before {content:'\f017';} .mbtlist .iedit:before {content:'\f040';}.mbtlist .imore {font-size:12px; font-weight:bold; text-decoration:none; color:#999;}.mbtlist .itotal {color:#333;  padding:5px 10px; border:1px solid #eee;}.mbtlist .itotal a {font-family:oswald; font-size:12px; font-weight:normal; color:#0080ff; text-decoration:none}.mbtlist .itotal span:before {content:'\f07c';}.mbtlist .itotal span font {padding:0px 3px; color:#333; font-family:georgia; font-size:15px; font-weight:bold}#mbtloading1{ margin: 20% auto; background: url('http://downloads.mybloggertricks.com/Spin%20and%20pulsate.gif') no-repeat left center;width: 80px;height: 80px;}/*------ CSS3 Tooltip Shortcode -------------*/ .tooltip1{outline:none;text-decoration:none!important;position:relative;color: orange!important; font-weight: bold;}.tooltip1:hover {border-bottom: none;}.tooltip1 strong{line-height:30px}.tooltip1 > span{max-width:300px;width:115px;padding:5px 8px;opacity:0;bottom:170%;left:0px; visibility:hidden;z-index:10;position:absolute;font-family:helvetica;font-size:12px;font-weight:bold;border-radius:2px;box-shadow:2px 2px 5px #999;-webkit-transition-property:opacity,margin-top,visibility,margin-left;-webkit-transition-duration:0.4s,0.3s,0.4s,.3s;-webkit-transition-timing-function:ease-in-out,ease-in-out,ease-in-out,ease-in-out;transition-property:opacity,margin-top,visibility,margin-left;transition-duration:0.4s,0.3s,0.4s,.3s;transition-timing-function:ease-in-out,ease-in-out,ease-in-out,ease-in-out}.tooltip1 > span img{float:right;width:110px;margin:0 0 30px 10px;padding: 0;border: none;}.tooltip1:hover > span{opacity:1;text-decoration:none;visibility:visible;overflow:visible;display:inline;margin-left:-90px}.tooltip1 span b{width:15px;height:15px;right:25px;bottom:-9px;display:block;position:absolute;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);display:none\0/;*display:none}.tooltip1 > span{color:#fff;background:orange;border:1px solid #ffffff}.tooltip1 span b{background:orange;border-bottom:1px solid #ffffff;border-left:1px solid #ffffff}
Alter the hues: 
To change the blue shade of the post title supplant #0080ff with your preferred connection shade and supplant #00A5FF to change the connection shading for mouse float.


  • To change the alter connect shading change orange 
  • To change the tooltip shading change orange with a hexadecimal shading code of your inclination. 
  • To change the width and stature measurements of the highlighted thumbnail alter: width:150px; height:100px; 


⟹ Save your format and you are practically done!

⟹Finally go to Layout area and snap "Include a Gadget". 

⟹Choose HTML/JavaScript gadget and glue the accompanying code inside it:
<div id="mbtloading1" ></div> <script type="text/javascript">//#################### Defaults var ListBlogLink = window.location.hostname; var ListCount = 5; var ChrCount = 150; var TitleCount = 66; var ImageSize = 200; //################ Function Start function mbtlist(json) { document.write('<ul class="mbtlist">'); for (var i = 0; i < ListCount; i++) { //################### Variables Declared var listing= ListImage = ListUrl = ListTitle = ListImage = ListContent = ListConten = ListAuthor = ListTag = ListDate = ListUpdate = ListComments = thumbUrl = TotalPosts = sk = ListMonth = Y = D = M = m = YY = DD = MM = mm = TT =  "";//################### Category if (json.feed.entry[i].category != null) { for (var k = 0; k < json.feed.entry[i].category.length; k++) {     ListTag += json.feed.entry[i].category[k].term; if(k < json.feed.entry[i].category.length-1) { ListTag += ", ";} } }//################### URL for (var j = 0; j < json.feed.entry[i].link.length; j++) {       if (json.feed.entry[i].link[j].rel == 'alternate') {         break;       }     } ListUrl= "'" + json.feed.entry[i].link[j].href + "'";//################### Info TotalPosts = json.feed.openSearch$totalResults.$t; if (json.feed.entry[i].title!= null) { ListTitle= json.feed.entry[i].title.$t.substr(0, TitleCount); } if (json.feed.entry[i].thr$total) { ListComments= json.feed.entry[i].thr$total.$t; } ListAuthor= json.feed.entry[i].author[0].name.$t.split(" "); ListAuthor=ListAuthor.slice(0, 1).join(" ");
//################### Content CheckListConten = json.feed.entry[i].content.$t; ListContent= ListConten.replace(/(<([^>]+)>)/ig,"").substring(0, ChrCount);//################### Date FormatListMonth= ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];ListDate= json.feed.entry[i].published.$t.substring(0,10);                         Y = ListDate.substring(0, 4);                         m = ListDate.substring(5, 7);                          D = ListDate.substring(8, 10);                          M = ListMonth[parseInt(m - 1)];                       ListUpdate= json.feed.entry[i].updated.$t.substring(0, 16);                         YY = ListUpdate.substring(0, 4);                         mm = ListUpdate.substring(5, 7);                          DD = ListUpdate.substring(8, 10);                          TT = ListUpdate.substring(11, 16);                          MM = ListMonth[parseInt(mm - 1)];   //################### Thumbnail Check // YouTube scanif (json.feed.entry[i].content.$t.match(/youtube\.com.*(\?v=|\/embed\/)(.{11})/) != null) {    var youtube_id = json.feed.entry[i].content.$t.match(/youtube\.com.*(\?v=|\/embed\/)(.{11})/).pop();         if (youtube_id.length == 11) {         var ListImage = "'//img.youtube.com/vi/"+youtube_id+"/0.jpg'";         } }else if (json.feed.entry[i].media$thumbnail) { thumbUrl = json.feed.entry[i].media$thumbnail.url; sk= thumbUrl.replace("/s72-c/","/s"+ImageSize+"/"); ListImage= "'" + sk.replace("?imgmax=800","") + "'"; }else if (json.feed.entry[i].content.$t.match(/src=(.+?[\.jpg|\.gif|\.png]")/) != null) { // Support For 3rd Party Images ListImage =  json.feed.entry[i].content.$t.match(/src=(.+?[\.jpg|\.gif|\.png]")/)[1]; } else { ListImage= "'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyCY3b3c8cQ4hMX_2Vc01VML2lOWOJsQPTSgFOhXRY1Ss9EPP6ip_HpxpIt45VNDP1VKyP3E7qT13xdzmcJe1V0DN17_wlILY7_8fFvTKO-QCCvNeBv08tWFxypQf_WBw51CFUbv9t2zM/s200/Icon.png'"; } //################### Printing Listvar listing = "<li class='node"+[i]+"' ><a href=" + ListUrl+   "><img src=" +ListImage+ "/></a><a class='mbttitle' href=" + ListUrl+ "target='_blank'>" + ListTitle+ "</a> <span class='icon'>" +ListContent+ " ...  <a href=" +ListUrl+ " class='imore'>more »</a></span><div class='iline'><span class='iauthor'>" +ListAuthor+ "</span><span class='itag'>" +ListTag+ "</span><span class='icomments'>" + ListComments+ "</span><span class='idate'>" + M + " " + D + ", " + Y +"</span><span class='iedit'> <a class='tooltip1'>Edited<span><b></b>On ► " + MM + " " + DD + ", " + YY + " at ► " +TT+ " </span></a> </span></div></li>"; document.write(listing); } document.write("<div class='itotal'><span> <a href='"+ListBlogLink+"/search'>View all <font>"+TotalPosts+"</font> posts</a></span></div></ul>"); } </script><script> var ListBlogLink = "http://www.codedforum.com.ng"; var ListCount = 5; </script><script> document.write("<script src='"+ListBlogLink+"/feeds/posts/default?alt=json-in-script&callback=mbtlist'></"+"script>"); </script><script> document.getElementById("mbtloading1").style.display = "none";</script>
You can roll out these improvements: 
Supplant http://www.codedforum.com.ng this with your blog URL

To increment or diminishing the quantity of posts sections, alter: ListCount = 5 

To lessen the length of title characters alter TitleCount = 66 

To build the picture determination quality (angle proportion) if incase you wish to show vast included thumbnails then alter ImageSize = 200

To choose what number of characters to show as post outline (passage) edit:ChrCount = 150

⟹ Save your gadget and see it play in real life! =)

Could You Guess How To Display Posts By Label? 
At Codedforum we go for instructing the perusers to take in the center essentials of programming rather than simply sharing an ordinary howto instructional exercise. In the above code you simply need to roll out a basic improvement keeping in mind the end goal to show most recent posts by a particular name. I have as of now talked about how to do that in the JSON arrangement. Do read that and get back here proposing your answer saying all the fundamental strides.

I will sit tight for your answers, I will share it in my next instructional exercise and connection to your blog in the event that you addressed effectively. =) 

 

Read more
Post a Comment
Nhãn : Blogger Tips Blogging codings HTML JavaScript's tutorials

Progressed Multi Column Footer Widget For Blogger

  • Get link
  • Facebook
  • X
  • Pinterest
  • Email
  • Other Apps
Oleh bcoded - December 08, 2016
In many web journals/site, you may have discovered distinctive sorts of segment footers which are extraordinary likewise, however am conveying to you, the new propelled variant of section footers. 

In this new form, you can grow/fall the section to three, four or even five. As a matter of course the footer is four section, yet don't surpass it more than five, to make it look more expert.

Go to your blogger dashboard ⏬⏬
Tap on "Outline" > "Alter HTML" (For old interface)

Tap on "Format" > "Alter HTML" > "Continue" (For new interface)

Utilize ctrl F to discover ]]></b:skin> and glue the accompanying code above/before it.
  /*----- Advanced Multi Column Footer By www.codedforum.com.ng -----*/
    #lower {    margin:auto;    padding: 0px 0px 10px 0px;    width: 100%;    background:#333333;    }    #lower-wrapper {    background:#333333;    margin:auto;    padding: 20px 0px 20px 0px;    width: 960px;    border:0;    }    #lowerbar-wrapper {    background:#333333;    float: left;    margin: 0px 5px auto;    padding-bottom: 20px;    width: 23%;    text-align: justify;    color:#ddd;    font: normal 12px Arial, Tahoma, Verdana;    line-height: 1.6em;    word-wrap: break-word;    overflow: hidden;    }    .lowerbar {margin: 0; padding: 0;}    .lowerbar .widget {margin: 0; padding: 10px 20px 0px 20px;}    .lowerbar h2 {    margin: 0px 0px 10px 0px;    padding: 3px 0px 3px 0px;    text-align: left;    border:0;    color:#ddd;    text-transform:uppercase;    font: bold 14px Arial, Tahoma, Verdana;    }    .lowerbar ul {    color:#fff;    margin: 0 auto;    padding: 0;    list-style-type: none;    }    .lowerbar li {    display:block;    color:#fff;    line-height: 1.6em;    margin-left: 0 !important;    padding: 6px;    border-bottom: 1px solid #222;    border-top: 1px solid #444;    list-style-type: none;    }    .lowerbar li a {    text-decoration:none; color: #DBDBDB;    }    .lowerbar li a:hover {    text-decoration:underline;    }    .lowerbar li:hover {    display:block;    background: #222;    }
Now find </body> and paste the following code above/before </body> 
<div id='lower'>    <div id='lower-wrapper'>

    <div id='lowerbar-wrapper'>    <b:section class='lowerbar' id='lowerbar1' preferred='yes'>    </b:section>    </div>

    <div id='lowerbar-wrapper'>    <b:section class='lowerbar' id='lowerbar2' preferred='yes'>    </b:section>    </div>

    <div id='lowerbar-wrapper'>    <b:section class='lowerbar' id='lowerbar3' preferred='yes'>    </b:section>    </div>

    <div id='lowerbar-wrapper'>    <b:section class='lowerbar' id='lowerbar4' preferred='yes'>
    </b:section>
    </div>

    <div style='clear: both;'/>    </div> </div>
Customization 
The general width of the segment footer is spoken to by width: 960px; and the width of every section is spoken to by width: 23%;, you can alter any of this to your own particular fulfillment.

Taking a gander at the code above painstakingly, you ought to comprehend the structure of the section footer, the code underneath speak to every segment.⇩⇩

<div id='lowerbar-wrapper'> 

<b:section class='lowerbar' id='lowerbar4' preferred='yes'> 

</b:section>

</div> 

In the event that you need to include the fifth section, basically include the above code, above <div style='clear: both;'/> and supplant lowerbar4 with lowerbar5, as it speak to the segment number.

Done! Trust you like this post? 
Read more
Post a Comment
Nhãn : Blogging tips codings how to HTML JavaScript's tutorials

Give Readers A chance to pick Font Style and Size Widget

  • Get link
  • Facebook
  • X
  • Pinterest
  • Email
  • Other Apps
Oleh bcoded - November 26, 2016
It is vital that you let your blog to be effectively open by any user's, that is the reason we think of this marvelous gadget that permit guests to see your blog in any textual style and size they wish.

 Considering client's with awful sight, vast or little screen determination, so it will bode well in the event that you can give them an alternative to see your blog as per their own particular comfort.

 One thing i cherish most about this gadget is that, it apply the progressions made consequently without reviving the page, cool right? Presently how about we get the chance to work.

demo


Go to your dashboard 
Tap on Layout > Add a Gadget > HTML/JavaScript 
Glue the accompanying code in the substance box and give it any title.
click to copy code
                                    Save your gadget and you are finished.        


Trust you discover this gadget helpful? In the event that you require any further help, don't dither to inquire.
Read more
Post a Comment
Nhãn : Blogging tips codings HTML JavaScript's

HTML Imports: Import HTML Files Into Another HTML Files

  • Get link
  • Facebook
  • X
  • Pinterest
  • Email
  • Other Apps
Oleh bcoded - November 24, 2016

The greater part of us know about <script src> which we use in stacking JavaScript, <link rel="stylesheet"> for CSS, <img> for pictures, <video> for recordings, and <audio> for sounds. Be that as it may, we don't have a more decisive approach to load HTML.

 While It's conceivable to load HTML with iframes component or the JavaScript technique XMLHttpRequest(). HTML imports give a much cleaner approach to load independent segments into site pages.

HTML Import is an energizing new HTML5 highlight that permit us to incorporate a HTML document into another HTML record. You're not constrained to markup either. An import can likewise incorporate CSS, JavaScript, or whatever else a .html document can contain.

The Markup

The <link> tag is a gift. We can without much of a stretch install templates and JavaScripts required in various archives with it. Be that as it may, rather than utilizing rel="stylesheet", we include the <link> label, then we add the esteem import to the rel property. Utilizing href we join the URL of the HTML.

<head>
<link rel="import" href="external.html"/>
</head>
With that a line of code, you can stack the entire world in the event that it happens to be wrapped-up in a HTML record. Ought to the document to be foreign made contain advance style or script components, these will be transported in also.

Note: If you wish to import a HTML report from an outer space, you have to ensure It's CORS-empowered. 

Getting to Contents of the Import File 

HTML imports doesn't work like PHP #includes. The transported in HTML record is stacked by the program and put away in the background. You can then include the substance of the import archive to your site page utilizing JavaScript.

Take note of: This run just applies to HTML content. Any CSS or JavaScript code will be stacked by the program and connected to the fundamental record naturally.

var getImport = document.quearySelector('link[rel=import]');
The above code will choose all connection tag with the rel="import" characteristic. There may be a circumstance whereby you have different imported HTML records in your mind area and you need to choose a particular connection label, you should give that connection tag an id. The following is an illustration:
<link rel="import" href="external.html" id="external-file">
Here we've added a straightforward <link> component to the <head> of our fundamental record that references the HTML document (external.html). We've likewise added an id to the tag that will help us to reference the component utilizing JavaScript. 

Presently we can get to the particular connection tag by going in the id we gave the foreign made record.
var getImport = document.querySelector('#external-file');
Assist illustration: Suppose we are bringing in form.html and it contains:
<div class="valid">
<style>
h3 {
color : green;
}
</style>
<h3> Welcome! </h3>
<p> Thank you. </p>
</div>
<div class="invalid">
<style>
h3 {
color : red;
}
</style>
<h3> Error! </h3>
<p> You have entered an invalid data, please try again. </p>
</div>
Note: <style> don't should be included unequivocally. This is a noteworthy distinction between HTML Imports and <iframe>.

After the record is chosen, we can snatch a particular bit of the report. We can choose content with class substantial, similar to so: 
var el = content.querySelector( '.valid' );
Presently we can annex the substance inside the body utilizing the JavaScript appendChild() technique.

document.body.appendChild(el.cloneNode( true));
The boolean parameter (set here to genuine) indicates that the program ought to likewise clone any descendent hubs inside the substance.

Program bolster 

At the season of composing this post, this component works just in Chrome and you should empower it physically - go to the chrome://banners page, empower the Enable HTML Imports choice, then restart Chrome.

You can verify whether the client's program bolsters HTML imports by searching for the import property on the <link> component. 

function supportsImports() {
return 'import' in document.createElement('link');
}
if (supportsImports()) {
// HTML imports are supported!
} else {
// HTML imports are not supported.
}
Different programs can make utilization of a polyfill, which imitates HTML Imports in unsupported programs.

That is it! You now know how to utilize HTML imports and layouts to make dynamic site pages.

why not drop your remarks and utilize the share catch to share the experience to your companions




why not drop your remarks and utilize the share catch to share the experience to your companions  
Read more
Post a Comment
Nhãn : codings HTML JavaScript's tutorials

20 Useful Tools to Test Code Snippets

  • Get link
  • Facebook
  • X
  • Pinterest
  • Email
  • Other Apps
Oleh bcoded - November 17, 2016
As a web engineer, having a place to rapidly test code or work on a thought before going live may be imperative. As time pass by, more online code editors are made that can help you code from any PC with web get to. These apparatuses let you join CSS, HTML and frequently even JavaScript to make and share coding cases.

Underneath you will locate some helpful free code play areas and sandboxing apparatuses for testing, investigating and sharing your code scraps.

CSSDesk 

CSSDesk is an exceptionally straightforward apparatus that concentrations absolutely on HTML and CSS. It comprise of three resizeable areas: HTML, CSS and live review. You have the alternative of changing the foundation of the see sheet, which is valuable when you experience considerable difficulties out the result of your CSS/HTML work because of low forefront/foundation differentiate.

What's more, you can likewise kill on or the linguistic structure highlighting capacity and there's no exertion or setup here, simply stack the page and begin making.

JSBin 

JSBin is a program based UI where you can enter: your HTML markup, CSS, JavaScript, and get prompt criticism in view of your code. Moreover, you can alternatively incorporate any number of prevalent structures into your onscreen code, permitting you to influence the system's abilities too. The primary advantage is the constant input you get from the upgrades you make.

Another cool element is the capacity to control which sheets you see by controlling the URL. For example, "http://jsbin.com/#javascript,html,live" will get all of you three sheets while "http://jsbin.com/#html,live" will get both of you.

Another critical element is the capacity to make your own JSBin account where you can spare your canisters for future reference and sharing. Enlistment is straightforward and you can even influence your Github certifications through Github's OAuth usefulness.

jsFiddle 

JS Fiddle is presumably the most prevalent free sandbox apparatus for HTML, CSS and JS that has a superb arrangement of elements: it underpins the consideration of libraries, for example,

Model and jQuery. You can incorporate extra outside assets to JS/CSS records into every testing archive. Unbelievably this device likewise bolsters XHR Ajax where you can pass information forward and backward between the server and customer program window.

There's additionally a charge for running JSLint that can check your JavaScript for code quality and the "Clean Up" code-designing summon for re-indenting your code. The source code of this open source web instrument is accessible on GitHub. jsFiddle offers a short URL which you can share around the Web by means of Twitter, Facebook, even Stack.

Codepen 

One of my most loved code bits play area has as of late ended up CodePen. It's presumably the most prominent code scrap editorial manager accessible on the web.

CodePen is incredible for testing out bugs, teaming up, and finding new motivation. It works by permitting you to make "pens", which are sets of HTML, CSS, and JavaScript. You can then show those pens on your profile, take input, and keep on editting those pens whenever.

CodePen incorporates some amazing components to compose CSS quicker. You can choose to incorporate Normalize.css or Reset.css in your CSS by basically clicking a radio catch. You can likewise

utilize - without prefix or Autoprefixer too. Along these lines there is no compelling reason to set aside the opportunity to connection to an outside document (which is additionally conceivable, in the event that you needed to).

Codepad 

Initially made by Steven Hazel, Codepad is an electronic compiler/mediator for server-side and programming dialects like PHP, C++ and that's just the beginning.

The yield screen shows any mistake messages connected with your code, and I trust any product build who need to team up and investigate their additionally confounding projects will discover Codepad extremely valuable.

Jsdo.it 

This is an online proofreader where you can take a stab at running your codes as you compose. You can spare your codes online and also indicate them to the general population as your work.

It has a smooth interface, an auto-upgrading review sheet and the capacity to incorporate open source JS libraries. One remarkable element is the "Advanced cell review" charge that opens another program window with the viewport measured identically to cell phones.

The enrollment procedure requires interfacing into some other informal organization, for example, Facebook, Twitter, Google, or Github. Select a username, then you begin coding.

Ideone 

Ideone is a mainstream online compiler and troubleshooting instrument. It's one of the best and most solid alternatives for bit testing.

This device permits you to order secure code and execute it online in more than 60 programming dialects.

Pick a programming dialect, enter your source code and info information into content boxes. At that point check or uncheck run code (whether to execute your program) and private (whether not to list your code in the late codes page) checkboxes, tap the submit catch and watch your scrap being executed.

Practicode 

Practicode is another online apparatus for altering your code bits with support for HTML, CSS and VBScript. In spite of the fact that it's intended to be utilized close by their aides and instructional exercises for honing and testing code bits while you're perusing their material, it can be utilized for testing code pieces too.

Dabblet 

Dabblet, made by Lea Verou, is an "intelligent play area" for experimenting with pieces of CSS and HTML code. It utilizes - sans prefix, so you won't need to include any prefixes in your CSS code, and you can spare your work in Github essences, install it into different sites or impart it to others.

You can switch things up with the controls demonstrated as follows. The split can be vertical, even or taken out totally. There's additionally a fascinating "behind code" mode where your outcome is just the foundation for the coding region.

Liveweave 

Liveweave gives you a chance to compose HTML5, CSS3 and JavaScript and test them continuously, code implying highlight will manage you to compose HTML5 and CSS3 in appropriate linguistic structure, quadrant boards to help you change your HTML5, CSS3 and JavaScript Window Sizes, as indicated by your necessities and some more.

It has resizable boards, so you can compose your code (or weave, as we call it) the way you need. Liveweave likewise has worked in setting delicate code-implying for HTML5 and CSS3 labels/characteristics, that makes life a considerable measure less demanding.

RegExr 

RegExr is a HTML/JS based apparatus for making, testing, and finding out about Regular Expressions (RegExp/RegEx). It gives a straightforward interface to enter RegEx expressions, and picture coordinates continuously editable source content.

You can play with regexr in a supportive domain and ensure your linguistic structure is right before pushing it live.

Pastebin 

An instrument made by Paul Dixon, then sold to Jeroen Vader, a Dutch serial Internet business visionary. Pastebin is a straightforward and jumble free HTML/JS open source sandbox apparatus.

Tinkerbin 

Tinkerbin gives you a chance to play around with HTML, JavaScript and CSS without making records or transferring to servers. It likewise underpins CoffeeScript, Sass (with Compass), Less, HAML, and that's only the tip of the iceberg.

It additionally has console easy routes that advantageously permit you to explore proficiently amongst tabs and code sheets. The auto-overhauling sneak peak sheet is a reward. In addition on account of the HTML, Tinkerbin will even highlight labels that aren't coordinated.

Google Code Playground 

Google Code Playground is a sandbox instrument that gives you the capacity to test and try different things with Google's great APIs. When I discuss APIs I imply that you can pull information from the greatest Google items. Posting blog entries from Blogger, markers from Google Maps, and even video players specifically from YouTube. As you navigate these distinctive illustrations the live see box will redesign as needs be.

The straightforward Google Code Playground interface has three primary zones of the screen. The "Pick An API": this menu gives access to Google's various APIs. At the point when a thing is chosen (clicked) in the menu, applicable code shows up in the "Alter Code" window and the code is consequently executed to fill the "Yield" window with the consequences of running the case code. Any progressions/changes made to the code are reflected in the Output window once you select the Run Code catch at the highest point of the Output window.

WriteCodeOnline

WriteCodeOnline offers a super basic device that permit you to rapidly test PHP and JavaScript code on the web.

To utilize the instrument, just enter the code into the primary content region and snap "run code". This is especially helpful to run PHP, which would some way or another require a nearby server which bolsters PHP.

D3.js Playground

D3.js Playground permit you to play with the D3.js library in an intuitive way. Each alter made (that outcomes in legitimate code) influences the play area progressively. Since CSS is such an essential piece of representations, you can alter CSS live, as well.

Codeanywhere 

Codeanywhere is a code editorial manager in a program with a coordinated ftp customer, and all prevalent web configurations are upheld (HTML, PHP, JavaScript, CSS, and XML).

It empowers engineers to compose colorized, sentence structure checked code from for all intents and purposes any web program on for all intents and purposes any gadget, including iOS, Android, Windows 8 and Blackberry. It offers bolster for most mainstream web programming dialects, and empowers designers to work together continuously.

SQLFiddle

SQLFiddle is an online SQL inquiry handling device. You can run your SQL proclamations online without having a privately introduced database. It works also to jsfiddle, aside from SQL database sentence structure.

This webpage offers bolster for parcel of prominent databases, permits you to manufacture your database pattern on the web and execute SQL question on the fly. It's an extraordinary asset to learn and rehearse SQL inquiries on the web. Aside from numerous sweet element, it additionally permits you to impart your issue to group. On the off chance that you are composing a complex

on the off chance that you have more usefull apparatuses you can drop it in the coment box and it will be added to this post with your name nd credits.
Read more
Post a Comment
Nhãn : info JavaScript's software updates

Instructions to Automatically add Read More connection to Blogger

  • Get link
  • Facebook
  • X
  • Pinterest
  • Email
  • Other Apps
Oleh bcoded - November 06, 2016
Have you seen numerous blogger utilizing small portrayals of the posts appeared on the fundamental blog page, seek pages, mark pages and chronicle pages. An expanding number of bloggers are posting their article by including "bounce interface", which permits clients to tap on a connection that says "Read More" with a specific end goal to keep perusing the post.

In my past article Auto Read More Javascript for Blogger yet it has numerous drawbacks like you can't expand character length however in this article, I will demonstrate to you best practices to consequently include a read more connection in Blogger which part more alternative than past one simply utilizing straightforward JavaScript work, so are you prepared for that simply take after these simple strides:-

Add Read More connection to Blogger

Step 1: Go to Blogger Dashboard >> Template >> Edit HTML and inside the proofreader Find (CTRL + F or CMD + F) <data:post.body/> and supplant with this one
<!-- Auto Read More Body Start -->
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<div expr:id='&quot;summary&quot; + data:post.id'><data:post.body/></div>
<script type='text/javascript'>createSummaryAndThumb(&quot;summary<data:post.id/>&quot;,&quot;<data:post.url/>&quot;,&quot;<data:post.title/>&quot;);</script>
<span class='jump-link' style='float:right;'><a expr:href='data:post.url' expr:title='data:post.title'><data:post.jumpText/></a></span>
</b:if></b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><data:post.body/></b:if>
<b:if cond='data:blog.pageType == &quot;static_page&quot;'><data:post.body/></b:if>
<div style='clear: both;'/> <!-- clear for photos floats -->
<!-- Auto Read More in Body End -->
you may also love to read: step by step instruction to add facebook fanpage to blogger
Step 2: Find </head> and paste this below code above </head>
<!-- Auto Read More Body Script Start -->
<script type='text/javascript'>
no_thumb_sum = 300;
thumb_sum = 200;
thumb_h = 220;
thumb_w = 300;
</script>
<script type='text/javascript'>
//<![CDATA[
function removeHtmlTag(t,e){if(-1!=t.indexOf("<")){for(var n=t.split("<"),i=0;i<n.length;i++)-1!=n[i].indexOf(">")&&(n[i]=n[i].substring(n[i].indexOf(">")+1,n[i].length));t=n.join("")}for(e=e<t.length-1?e:t.length-2;" "!=t.charAt(e-1)&&-1!=t.indexOf(" ",e);)e++;return t=t.substring(0,e-1),t+"..."}function createSummaryAndThumb(t,e,n){var i=document.getElementById(t),m="",r=i.getElementsByTagName("img"),s=no_thumb_sum;r.length>=1&&(m='<span class="posts-thumb" style="float:left; margin-right: 10px;"><a href="'+e+'" title="'+n+'"><img src="'+r[0].src+'" width="'+thumb_w+'px" height="'+thumb_h+'px" /></a></span>',s=thumb_sum);var g=m+"<div>"+removeHtmlTag(i.innerHTML,s)+"</div>";i.innerHTML=g}
//]]>
</script>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<style type='text/css'>
.post-footer {display: none;}
.jump-link  {float: right; }
.jump-link a {text-decoration: none; }
</style>
</b:if>
</b:if>
<!-- Auto Read More Body Script End --> 

                                              Alteration/Option 


  • Change default Read More content to another on supplant this <data:post.jumpText/> with your content 

  • Change the quantity of characters indicated when there is no thumbnail, alter the (no_thumb_sum = 300;) esteem 300 to your esteem 

  • Change the quantity of characters demonstrated when a post has a thumbnail, alter the (no_thumb_sum = 200;) esteem 200 to your esteem 

  • Change picture/thumbnail tallness, alter the (thumb_h = 220;) esteem 160 to your picture stature 

  • Change picture/thumbnail width, alter the (thumb_h = 300;) esteem 180 to your picture width 

  • Step 3: Click on the Save and Go to your Blog to see the impact


Credits: Mr Flicks the Codex king a webmaster and script developer READMORE
Read more
Post a Comment
Nhãn : Blogger Tips Blogging Blogging tips codings JavaScript's tutorials
Older Posts Home
Subscribe to: Posts (Atom)
Powered by Blogger

Report Abuse

Search This Blog

Archive

  • Feb 151
  • Feb 021
  • Jan 301
  • Jan 241
  • Jan 191
  • Jan 131
  • Jan 121
  • Jan 081
  • Jan 051
  • Jan 021
  • Dec 311
  • Dec 271
  • Dec 201
  • Dec 181
  • Dec 131
  • Dec 121
  • Dec 101
  • Dec 081
  • Dec 061
  • Dec 052
  • Dec 041
  • Nov 281
  • Nov 271
  • Nov 261
  • Nov 241
  • Nov 221
  • Nov 211
  • Nov 191
  • Nov 181
  • Nov 172
  • Nov 161
  • Nov 151
  • Nov 141
  • Nov 111
  • Nov 101
  • Nov 082
  • Nov 071
  • Nov 061
  • Nov 031
  • Nov 011
  • Oct 311
  • Oct 301
  • Oct 281
  • Oct 271
  • Oct 231
  • Oct 201
  • Oct 181
  • Oct 162
  • Oct 152
  • Oct 141
  • Oct 121
  • Oct 102
  • Oct 081
  • Oct 071
  • Oct 061
  • Oct 042
  • Oct 022
  • Oct 011
  • Sept 292
  • Sept 281
  • Sept 261
  • Sept 251
  • Sept 221
  • Sept 212
  • Sept 192
  • Sept 182
  • Sept 162
  • Sept 151
  • Sept 131
  • Sept 121
  • Sept 111
  • Sept 102
  • Sept 091
  • Sept 082
  • Sept 072
  • Sept 062
  • Sept 051
  • Sept 041
  • Sept 031
  • Sept 012
  • Aug 311
  • Aug 302
  • Aug 291
  • Aug 282
  • Aug 271
  • Aug 261
  • Aug 251
  • Aug 241
  • Aug 231
  • Aug 222
  • Aug 212
  • Aug 201
  • Aug 192
  • Aug 182
  • Aug 171
  • Aug 162
  • Aug 152
  • Aug 144
  • Aug 131
  • Aug 123
  • Aug 112
  • Aug 102
  • Aug 093
  • Aug 081
  • Aug 075
  • Aug 062
  • Aug 055
  • Aug 044
  • Aug 033
  • Aug 022
  • Aug 011
  • Jul 308
  • Jul 297
  • Jul 2812
  • Jul 275
  • Jul 267
  • Jul 251
  • Jul 242
  • Jul 232
  • Jul 222
  • Jul 211
  • Jul 205
  • Jul 194
  • Jul 186
  • Jul 173
  • Jul 167
  • Jul 156
  • Jul 145
  • Jul 1310
  • Jul 127
  • Jul 117
  • Dec 201
Show more Show less

ADVERTISMENT



Copyright © 2015 - 2017 Blog Indoor | Designed with by
Fancybloggertricks
About Us | Sitemap | Hire Us | Privacy & Policy | Advertise | Sitemap | Write For Us | Sponsor A Post | Own A Site | Disclaimer

SEARCH BLOGINDOOR

SUBSCRIBE TO OUR POST

Subscribe With Us!
Why should I subscribe?
  • ✔
    For Latest Free Browsing Tweaks
  • ✔
    Android & PC Tutorials
  • ✔
    Tech News & HOW TOs
  • ✔
    All Straight into your → INBOX
Safe With Us | Privacy Policy

Pages

  • Home

Recent Updates


⚠ WARNING: Every advert left on comment section of this blog are not endorsed by 9jaentbaze,they are scam.


Home | About us | privacy-policy | contact us | Sponsored Post
Disclaimer

© Copyright 2019" 9jaentbbaze 2019 · All Rights Reserved · And Our Sitemap · All Logos and Trademark Belongs To Their Respective Owners·