This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input id="latlng_user_geo" type="hidden" value="40.714224,-73.961452"> | |
<input id="city_user_geo" type="hidden" value="40.714224,-73.961452"> | |
<input id="state_user_geo" type="hidden" value="40.714224,-73.961452"> | |
<input id="country_user_geo" type="hidden" value="40.714224,-73.961452"> | |
<input id="route_user_geo" type="hidden" value="40.714224,-73.961452"> | |
<input id="street_user_geo" type="hidden" value="40.714224,-73.961452"> | |
<input id="complete_address_geocode_user_geo" type="text" value="40.714224,-73.961452"> | |
<button onclick="getLocation()">Check your position</button> | |
<div id="map-canvas_user_geo" style="height: 200px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> | |
<!-- CSS Styles--> | |
<style> | |
.overflowb{ | |
overflow: auto!important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> | |
<!-- CSS Styles--> | |
<style> | |
.overflowb{ | |
overflow: auto!important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Our module use: - Google Maps API 3 for Autocompete Addresses, - Raty Jquery Rating, - Bootstrap 3.0 for styling --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> | |
<!-- CSS Styles--> | |
<style> | |
.overflowb{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Our module use: - Google Maps API 3 for Autocompete Addresses, - Raty Jquery Rating, - Bootstrap 3.0 for styling --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> | |
<!-- CSS Styles--> | |
<style> | |
.overflowb{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<!-- Teleport LOGO for some CMS delivery select --> | |
<img id="teleport_logo" onclick="ShowForm()" src="http://www.teleport-ds.com/assets/teleport_logo_eng_0-97dc4f4c6a152de97ea2e046e7dcc824.png"> | |
<!-- Show form if logo click --> | |
<script> | |
$("#teleport_logo").click(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places&language=en"></script> | |
<script> | |
var geocoder; | |
function geocode_rates_import() { | |
geocoder = new google.maps.Geocoder(); | |
var address = document.getElementById('address_geocode').value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= text_field_tag nil, nil, :id => 'destination_name', data: {autocomplete_source: Airport.order(:name).map { |t| { :label => t.name, :value => t.id } } } %> | |
<%= text_field_tag nil, nil, :id => 'destination_id' %> | |
<script> | |
$("#destination_name").autocomplete({ | |
source:$('#destination_name').data('autocomplete-source'), | |
select: function(e, ui) { | |
e.preventDefault() // <--- Prevent the value from being inserted. | |
$(this).val(ui.item.label) | |
$('#destination_id').val(ui.item.value) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% link_result = Array.new([]) %> | |
<% img_result = Array.new([]) %> | |
<% require 'open-uri' %> | |
<% uri = URI.parse('http://url.com') %> | |
<% data = uri.read %> | |
<% @links = data.scan(URI.regexp(%w(http https))) %> | |
</br> | |
<% @links.each do |element| %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% array_table = a.scan(/\((.*?)\ =>/) %> | |
<% array_index = a.scan(/\[(.*?)\]/) %> | |
<% com = "" %> | |
<% array_table.length.times do |element| %> | |
<% if com != array_table[element].join(', ')%> | |
<!-- Add commit --> | |
# <%= array_table[element].join(', ') %></br> | |
<% end %> | |
<!-- Text construction for output --> | |
add_index :<%= array_table[element].join(', ') %>, :<%= array_index[element].join(', ') %></br> |
OlderNewer