Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Image Trend Rescue Bridge
- // @namespace rescuebridge
- // @include https://fl.rescuebridge.com/EastNaples/resource/intranet/runform/*
- // @version 1
- // @grant none
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
- // ==/UserScript==
- $("[name=Shifts]")[0].selectedIndex = localStorage.Shifts;
- $("[name=Alarms]")[0].selectedIndex = localStorage.Alarms;
- //$("[name=Station]").html('<option value="20"> East Naples Station 20</option>');
- $("[name=Signature]")[0].selectedIndex = localStorage.Signature;
- $("[name=Station]")[0].selectedIndex = localStorage.Station;
- $("#AuthPE_ID_2").val(localStorage.AuthPE_ID_2);
- //Color inputs
- $("[name=Shifts]").css("border", "5px solid red");
- $("[name=Alarms]").css("border", "5px solid red");
- $("[name=Signature]").css("border", "5px solid red");
- $("[name=Station]").css("border", "5px solid red");
- $("#AuthPE_ID_2").css("border", "5px solid red");
- $("body").append("<img src='http://icons.iconarchive.com/icons/mazenl77/I-like-buttons-3a/256/Perspective-Button-Stop-icon.png' id='enfdbtn' style='position:fixed;left:100px;top:100px;width:50;height:auto'>");
- $("#enfdbtn").click(function(){
- var date = new Date();
- dateString = (date.getMonth() + 1) + "/" + date.getDate() + "/" + date.getFullYear().toString().substr(2,2);
- fill_position($("[name=Signature]").val(),dateString);
- //$("[name=Station]").change();
- $("select").change(function(){
- x=this.selectedIndex;
- n=$(this).attr("name");
- if(n=="Station"||n=="Alarms"||n=="Signature"||n=="Shifts"){
- localStorage[n]=x;
- localStorage.AuthPE_ID_2=this.val();
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement