I am developing a website in html/css/js and its mobile application in angularJS (ionic framework). In my website I have implemented google geolocation and full calendar(http://fullcalendar.io/). I know that for use in angularJS, there are directives available but since I am in hurry, i need to know that is it possible that I copy over my fullcalendar and geolocation Javascript from my normal html/css/js website and paste it in my template of angularJS app. Any suggestions will be highly appreciated.
EDIT:
Here is example of code I am using for geolocation updating.
<script>
if ("geolocation" in navigator)
{
request_location();
}
// Requesting location from user
function request_location()
{
// Will repeat the process in two minutes
setTimeout(request_location, 1000*60*2);
// Get location info from browser and pass it to updating function
navigator.geolocation.getCurrentPosition(update_location);
}
// Sending location to server via POST request
function update_location(position)
{
// For simplicity of example we'll
// send POST AJAX request with jQuery
$.post( "functions.php?action=update_geolocation", { latitude: position.coords.latitude, longitude: position.coords.longitude });
//$.post("functions.php?action=update_geolocation&latitude="+ position.coords.latitude + '&longitude=' + position.coords.longitude,
/* {
latitude : position.coords.latitude,
longtitude : position.coords.longitude
},*/
// function(){
// // Position sent, may update the map
// });
}
</script>