/* * $ lightbox_me * By: Buck Wilson * Version : 2.3 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/ $(function() { function launch() { $('#sign_up').lightbox_me({centered: true, onLoad: function() { $('#sign_up').find('input:first').focus()}}); } $('#member-login').click(function(e) { $("#sign_up").lightbox_me({centered: true, onLoad: function() { $("#sign_up").find("input:first").focus(); }}); e.preventDefault(); }); }); $(function() { function launch() { $('#sign_up').lightbox_me({centered: true, onLoad: function() { $('#sign_up').find('input:first').focus()}}); } $('#member-login2').click(function(e) { $("#sign_up").lightbox_me({centered: true, onLoad: function() { $("#sign_up").find("input:first").focus(); }}); e.preventDefault(); }); }); function login_chk(){ msg=""; document.frm_login.tel.value=document.frm_login.tel.value.replace( /^[\s ]+|[\s ]+$/g , '' ); document.frm_login.pass.value=document.frm_login.pass.value.replace( /^[\s ]+|[\s ]+$/g , '' ); if(document.frm_login.tel.value=="" || document.frm_login.tel.value.match(/[^0-9]/g)){ msg =msg + "ログインIDの入力が正しくありません。\n"; } if(document.frm_login.pass.value=="" || document.frm_login.pass.value.match(/[^0-9a-zA-Z_]+/)){ msg =msg + "パスワードの入力が正しくありません。\n"; } if(msg==""){ if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { if(xmlhttp.responseText==""){ document.frm_login.submit(); //return true; }else{ document.getElementById("errormsg").innerHTML=xmlhttp.responseText; return false; } } } xmlhttp.open("GET","http://www.rh-track.com/login/login_ajax.php?1714200249&tel="+document.frm_login.tel.value+"&pass="+document.frm_login.pass.value,true); xmlhttp.send(); }else{ alert(msg); return false; } } /*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/ (function($) { $.fn.lightbox_me = function(options) { return this.each(function() { var opts = $.extend({}, $.fn.lightbox_me.defaults, options), $overlay = $(), $self = $(this), $iframe = $('