Difference between revisions of "Widget:GTform"

From Transit.Wiki
m
m (Text replacement - "jquery-1.7.2.min.js" to "jquery-3.4.1.min.js")
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
+
<script src="https://apps.transitunlimited.org/jquery-3.4.1.min.js"></script>
 +
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
 +
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false&key=AIzaSyA1-YSOAtIlnU0ZcufMDLNjEVZDmq7sPh4"></script>
 
<p id="note"></p>
 
<p id="note"></p>
 
<div id="info">
 
<div id="info">
Line 8: Line 10:
 
<br/>
 
<br/>
 
<div style="display:inline-block;margin:2px 0 2px 0;"><label>from</label>
 
<div style="display:inline-block;margin:2px 0 2px 0;"><label>from</label>
         <input class="input" id="from" value=""><span id="fromnote" style="display:none;">where I am at</span></div>
+
         <input class="input" type="text" id="from" value=""><span id="fromnote" style="display:none;">where I am at</span></div>
 
<div style="display:inline-block;margin:2px 0 2px 0;"><label>to</label>
 
<div style="display:inline-block;margin:2px 0 2px 0;"><label>to</label>
  <input class="input" id="to" value=""><span id="tonote" style="display:none;">where I am at</span>.</div>
+
  <input class="input" type="text" id="to" value=""><span id="tonote" style="display:none;">where I am at</span>.</div>
 
<div style="margin:2px;">  
 
<div style="margin:2px;">  
 
  <form id="triptime" style="display:inline;" >
 
  <form id="triptime" style="display:inline;" >
Line 92: Line 94:
  
 
<script type="text/javascript">
 
<script type="text/javascript">
 +
(window.RLQ=window.RLQ||[]).push(function(){
 
var nt1 = document.getElementById("note");
 
var nt1 = document.getElementById("note");
 
var nt2 = document.getElementById("from");
 
var nt2 = document.getElementById("from");
Line 141: Line 144:
 
}
 
}
  
mw.loader.using( 'jquery.ui.datepicker', function () {
+
$(function () {
 
     $( "#datepicker" ).datepicker();
 
     $( "#datepicker" ).datepicker();
 
} );
 
} );
Line 240: Line 243:
  
 
google.maps.event.addDomListener(window, 'load', initialize);
 
google.maps.event.addDomListener(window, 'load', initialize);
 +
});
 
</script>
 
</script>
 
     <div id="transit-wpr">
 
     <div id="transit-wpr">
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Latest revision as of 01:36, 24 October 2023