Tags » HTML 2

Download server responded data directly into a file using AngularJs

Sometimes as a AngularJs developer you get some requirements which look easy but they could be tricky, in-short in this post we are having a scenario like: 531 more words

Scala

Google maps - search place and add marker


<html>
<head>
    https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js
    http://maps.googleapis.com/maps/api/js
    

        google.maps.event.addDomListener(window, 'load', initialize);

        function initialize() {
            var mapProp = {
                center:new google.maps.LatLng(51.508742,-0.120850),
                zoom:10,
                mapTypeId:google.maps.MapTypeId.ROADMAP
            };
            map = new google.maps.Map(document.getElementById("googleMap"),mapProp);
        }

        function addmarker(latlong) {
            var marker = new google.maps.Marker({
                position: latlong,
                title: 'test marker',
                draggable: true,
                map: map
            });
            map.setCenter(marker.getPosition())
        }

        $(document).ready(function(){

            $("#go").on("click",function(){
                    var geocoder = new google.maps.Geocoder();
                    var address = document.getElementById('textboxid').value;
                    geocoder.geocode({ 'address': address }, function (results, status) {
                            if (status == google.maps.GeocoderStatus.OK) {
                                var latitude = results[0].geometry.location.lat();
                                var longitude = results[0].geometry.location.lng();
                                $("#lat").html("Latitude : " +latitude);
                                $("#long").html("Longitude :  " +longitude);
                                var latlng = new google.maps.LatLng(latitude,longitude);
                                addmarker(latlng);
                            }
                        });
                    });
            });
    
</head>

<body>

<input type="text"  id="textboxid" value=""><button id="go">Get</button>

<span id="lat"></span>

<span id="long"></span>

</body>

</html> 54 more words
Google

DISERTATION : Automated Video Monitoring System

As a pre requisite for our studies, we are ask to┬ádecide what we want to make as our topic for Bachelor’s Disertation . With two other friends we chose to make a CCTV Like Application which can capture, record and alert user’s when a certain parameters where met. 145 more words

Personal Stuff

Beautiful CSS Buttons

Here we go again! Stuck at the CSS trying to make the content look good but alas nothing came to mind. It’s the most irritating time for a front-end developer. 707 more words

Javascript

Some Components Of Jquery mobile

jQuery Mobile is a touch-optimized HTML5 UI framework designed to make responsive web sites and apps that are accessible on all smartphone, tablet and desktop devices. 665 more words

JavaScript

Use jQuery from Google Chrome console

Sometimes is useful exploit the power of jQuery from the browser console. If you are in page/site/web application including jQuery itself, no problem: just open the console and do your stuff. 86 more words

Web Application

SASS is often preferred as critically important stylesheet for styling webpage

SASS is a style sheet language that is interpreted into Cascading Style Sheets (CSS). SASS Script is the scripting language itself. SASS offers what its name defines, “Syntactically Awesome Stylesheets”. 421 more words

Scala