Bootstrap Navbar Menu without JavaScript

bootstrap-navbar-menu-without-javascript

Bootstrap Navbar Menu without JavaScript – Bootstrap is getting lot of traction since past few years. While many argue it makes web look plain and similar, it has been boon to non-ui developers. The learning curve is also easy and thus you can make good looking web pages in no time.

Update: For Bootstrap 4 example scroll to the bottom of post.

One of most used component of Bootstrap with Navbar. The navbar menu is responsive and adapts to any screen size. For small devices (mobile) the navbar get collapsed and a burger icon appears which can be used to open/close menu in navbar.

To collapse/uncollapse the menu you have to include bootstrap javascript and jquery javascript in your webpage. Sometime this is a little uncomfortable. Say you have a static webpage without any javascript. If you want to show/hide the navbar menu then you have to include all these javascript files unnecessarily. There must be a way of getting away with javascript and still able to use bootstrap navbar? Well there is. You can make bootstrap navbar hide/show for mobile devices without using javascript. Checkout the following code.

The HTML

<nav class="navbar navbar-default navbar-fixed-top">
  <div class="container">
    <input type="checkbox" id="navbar-toggle-cbox">
    <div class="navbar-header">
      <label for="navbar-toggle-cbox" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </label>
      <a class="navbar-brand" href="#">Project name</a>
    </div>
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li class="active"><a href="#">Home</a></li>
        <li><a href="#about">About</a></li>
      </ul>
    </div>
  </div>
</nav>

The CSS

#navbar-toggle-cbox {
  display:none
}
#navbar-toggle-cbox:checked ~ .collapse {
    display: block;
}

So how does this works? First check the html. We added a checkbox and hide it using CSS. Next we changed the button into label and connect the label to checkbox using for="". So whenever you click the burger menu which act as label for checkbox toggles it state. And as per the state of checkbox we show or hide the content.

Online Demo – Bootstrap Navbar Menu without JavaScript

Below is the demo, click on the burger menu button to toggle navbar menu.

JSFiddle: http://ift.tt/1TU3BNJ

Bootstrap 4 Navbar without JavaScript

You can do the same with Bootstrap v4 which is still in alpha at the time I am writing this. Below is the fiddle preview.

The post Bootstrap Navbar Menu without JavaScript appeared first on ViralPatel.net.



via ViralPatel.net http://ift.tt/1LXNcjj

Search YouTube by Location and Time Frames

YouTube is gradually becoming a comprehensive platform for all media houses to cover local events or get instant coverage by users. However, Google doesn’t provide any option to search for local videos or explore videos based on particular location. That doesn’t mean there can’t exist alternatives and one of such alternative is Geo Search Tool, an open sourced Github project that lets you browse YouTube based on geological location and upload time frame.

Find Videos Shot at Particular Location

geo_search_tool

Geo Search Tool is targeted at news organizations that can’t seem to find a way to locate footages of local happenings around the globe. But you can use it personally to discover videos in your neighborhood or anywhere.

Head over to the website and enter a location name, which can be anything from a street to a country. You can even provide longitude and latitudes to pin point a location. Next to that, there’s a time frame drop down with some pre-defined values and it also allows entering custom ranges through the last option on the list.

geo_search_tool3

After entering the desired video’s details, just hit search and a catalogue matching the input criteria will show up alongside a map which pin points particular location. You can even directly perform a “reverse image search” of a video’s placeholder by clicking the link below the channel name.

There are a couple of advanced search filters you can get into by clicking the “Show Advanced Search” link. You can specify individual keywords you’re looking for, how exact the video location needs to be via the radius field and channels that you need to filter results from.

The Search Tool also lets you specify whether the resultant list show contain live only, embeddable only or creative commons only results.

How does search location in YouTube works?

Each video that you record, also stores additional data with it (like image EXIF). This additional data, also called meta data contains information like date, time, location, resolution, rotation etc. When you upload the video to YouTube, the meta data information is also captured thought not shown to user. The tool uses YouTube’s API to run a search for videos with this information.

Geo Search Tool is a free service that works flawlessly and I’m sure journalists or even other readers will find it useful. Google will most probably include location filters in future on YouTube. However until then, you can utilize this tool to find videos from any place.

The post Search YouTube by Location and Time Frames appeared first on Google Tricks Blog.



via Gtricks http://ift.tt/1QvmWiu

Kanye West Outs Himself As A Software Pirate?

There’s so much to love about a good Twitter fight between the good guys and the bad guys, but what if you can’t really tell which is which? Professional famous person Kanye West has been quite vocal about…well…everything, but his latest online publicity stunt may have backfired in the biggest possible way.

Kanye West

According to multiple sources, West shared a screen shot of his computer while he supposedly enjoying a new video by Sufjan Stevens. The only problem is, in true “oops, maybe I shouldn’t have put that on the internet” fashion, West had some other browser tabs visible at the top of his screen. Porn websites or AshleyMadison.com would have actually been preferable to what was visible: The Pirate Bay, a notorious BitTorrent site made even more famous lately by West’s threats to sue them for offering pirated copies of his latest album, The Life of Pablo.

Well, there’s a plausible excuse, right? Maybe West was just browsing the site to see if his album was still being illegally downloaded? Not exactly.

Further investigations into the particular browser tab on West’s computer showed that he (long story, short) was likely trying to pirate musical synth software Serum, owned by Xfer Records, which was co-founded by musical artist Deadmau5. The aforementioned Twitter fight ensued, with much name calling but no deleting of the offending tweet, which is odd for people concerned about their public image. Just to make the entire episode all that much funnier, The Pirate Bay stepped in and pointed Kanye to their site’s forums if he needed any tech support using the site or downloading material.

It’s safe to say the Twitterverse has not been very kind about poor (apparently, literally) Mr. West’s mistake. With everything from accusations that he pirates other people’s music to using this as proof that his claim of being $53 million in debt must be true, users who’ve grown more than a little tired of the pop culture star’s faux-outrage antics had a brighter day thanks to the flub. For his part, Deadmau5 has reportedly offered to launch a crowdfunding campaign to help West afford the $189 Serum software.

The post Kanye West Outs Himself As A Software Pirate? appeared first on FileHippo News.



via FileHippo News http://ift.tt/21HwukS

Windows 10 IoT Core support for Raspberry Pi 3

I do love me some Pie, particularly Apple Pie.

But I’m also a really big fan of Raspberry Pi. I think everyone should be. And now it seems Microsoft thinks it as well having just announced that they’re currently working on a Windows 10 Internet of Things (IoT) Core for the new Raspberry Pi 3.

The new Windows IoT update also just happened to arrive the same day the Raspberry Pi Foundation released its new version of the Raspberry Pi, the Raspberry Pi 3.  The date was significant since it was also the 4th anniversary that marked the launch of the original Raspberry Pi.

The new Raspberry Pi 3

The new Raspberry Pi 3

Optimized for connected things and smaller devices with or without a display, Windows 10 IoT Core brings the power of Windows, including enterprise grade security and servicing, automatic updates through Windows Update when connected to the Internet and the rich Universal Windows Platform (UWP) APIs that give apps easy control over system management features.”

$35 

The new Pi will retail at a miniscule $35, but supposedly has 50% more processing power than its predecessor, the Raspberry Pi 2. It ships with a quad-core 1.2 GHz 64-bit quad-core ARMv8 processor with built-in Bluetooth and for the first time, will come with WiFi built into the single board computer, as standard. The Pi 3 is also available to buy direct from the Windows Store.

Can I play The Division?

No.

Don’t get your hopes up about running a fully-fledged Windows 10 install on a $35 piece of equipment. The IoT version of Windows 10 doesn’t have all the bells and whistles that you might think it does. In fact, the IoT version of Windows 10 is closer in experience to Window Embedded than it is to Windows 8.1

Microsoft has been quite vocal in its support of the Pi objective to get children interested in computing and coding from a young age. It’s support for the Pi and the IoT in general, is part of the Redmond based tech giant’s more open and friendly approach toward Open Source in general.

The announcement of this new partnership and show if support for the plucky little underdog from England should hopefully take the Pi line of DIY computers in a new direction and also give it world wide stage from which to grow even further.

The post Windows 10 IoT Core support for Raspberry Pi 3 appeared first on FileHippo News.



via FileHippo News http://ift.tt/21KK7MI

Moon Shot: A space story about life on Earth

Right now, 16 private teams from around the world are in a race to the moon. They’re in a $30 million competition called the Google Lunar XPRIZE (GLXP), which challenges teams to design and build a rover, land it on the surface of the moon, drive it 500 meters across the lunar landscape, and send HD video and imagery back to Earth by the end of 2017. And soon, you’ll be able to learn their stories in a new digital documentary series from Google, Academy Award®-nominated director Orlando von Einsiedel, Executive Producer J.J. Abrams, Bad Robot, and Epic Digital.

The GLXP competition, which started in 2007, aims to kick off a new era of space exploration by enabling low-cost and efficient access to the moon. Not only is the moon our closest neighbor in space, it’s also the gateway to exploring the rest of the universe—and provides opportunities for discovery in the fields of science, technology, and human habitation.

The teams in the competition come from all walks of life, from Silicon Valley tech experts, to hackers in Germany, to IT specialists in India, to a father and son working out of their their Vancouver apartment. In a series of 9 digital documentaries, Moon Shot goes behind the scenes with each team, bringing to life their challenges, sacrifices, quirks, and most importantly, the reasons why they’re making the 238,900 mile journey to the moon.

The series will be available for free on Google Play on March 15 and on YouTube on March 17. Subscribe to the Google Lunar XPRIZE YouTube Channel to be one of the first to see it, and for more information, visit lunar.xprize.org.

IMAGE URL

via The Official Google Blog http://ift.tt/1Qu84kf

ZenMate Security, Privacy & Unblock VPN 5.4.8

http://ift.tt/1UBhGPv ZenMate Security, Privacy & Unblock VPN is a Chrome Browser plugin, which gives you a VPN solution that will encrypt all your browser traffic and route it through ZenMate's cloud, in order to provide a secure and private browsing experience. The extension will change your virtual IP location to a different country location. ZenMate also provides ge...


via FileHippo.com http://ift.tt/1Piaa7t [[ We are also giving web service. Email:wasim.akh2@gmail.com]]

KeePass 1.31

http://ift.tt/RAL0VE KeePass is a free open source password manager, which helps you to manage your passwords in a secure way. You can put all your passwords in one database, which is locked with one master key or a key file. So you only have to remember one single master password or select the key file to unlock the whole database. The databases are encrypted using th...


via FileHippo.com http://ift.tt/18Vsv8h [[ We are also giving web service. Email:wasim.akh2@gmail.com]]

[Tip] Force Windows 10/11 to Stick With Old Feature Update Version

If you are using Windows 10 or Windows 11 operating system in your computer and you want to force Windows to stay locked on the existing ins...