From 50cf1ee2b903c478486aba36f97f40aaa797cfb9 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Thu, 25 Apr 2019 19:27:10 +0200 Subject: [PATCH] WIP --- skyspot.csproj | 1 + www/frame.html | 1 + www/js/jquery.input-ip-address-control-1.0.min.js | 7 +++++++ www/js/sky.dhcp.js | 3 +++ 4 files changed, 12 insertions(+) create mode 100644 www/js/jquery.input-ip-address-control-1.0.min.js diff --git a/skyspot.csproj b/skyspot.csproj index 473426d..10dd5a4 100644 --- a/skyspot.csproj +++ b/skyspot.csproj @@ -186,6 +186,7 @@ + \ No newline at end of file diff --git a/www/frame.html b/www/frame.html index 739e416..bc36fbc 100644 --- a/www/frame.html +++ b/www/frame.html @@ -19,6 +19,7 @@ + diff --git a/www/js/jquery.input-ip-address-control-1.0.min.js b/www/js/jquery.input-ip-address-control-1.0.min.js new file mode 100644 index 0000000..54281c4 --- /dev/null +++ b/www/js/jquery.input-ip-address-control-1.0.min.js @@ -0,0 +1,7 @@ +/*! + * jQuery Input Ip Address Control : v0.1beta (2010/11/09 16:15:43) + * Copyright (c) 2010 jquery-input-ip-address-control@googlecode.com + * Licensed under the MIT license and GPL licenses. + * + */ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(l($){Q.1o.1t=l(){E=/\\b(?:(?:25[0-5]|2[0-4][0-9]|[1m]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[1m]?[0-9][0-9]?)\\b/;h E.1a(p.1i())};Q.1o.1S=l(){E=/\\b([A-16-9]{1,4}:){7}([A-16-9]{1,4})\\b/i;h E.1a(p.1i())};$.1X.1h({y:l(u,c){f(p.z==0)h;f(1k u==\'1f\'){c=(1k c==\'1f\')?c:u;h p.1d(l(){f(p.18){p.1s();p.18(u,c)}w f(p.1e){t C=p.1e();C.1L(S);C.1z(\'10\',c);C.1b(\'10\',u);C.1w()}})}w{f(p[0].18){u=p[0].1u;c=p[0].1C}w f(14.12&&14.12.19){t C=14.12.19();u=0-C.1D().1b(\'10\',-1E);c=u+C.1H.z}h{u:u,c:c}}},1B:l(s){s=$.1h({v:4},s);f(s.v==4){s.W=M I(\'[0-9]\',\'g\');s.r=\'R.R.R.R\'}f(s.v==6){s.W=M I(\'[A-16-9]\',\'1x\');s.r=\'x:x:x:x:x:x:x:x\'}s.D=s.r.K(\'\').Y();s.q=s.r.X(M I(s.D,\'g\'),\'\').K(\'\').Y();s.O=s.r.K(s.q).Y();h $(p).1d(l(){t a={k:T,n:T,o:T,d:T};a.d=$(p);f(a.d.m()==\'\'||!J(a.d.m()))a.d.m(s.r);a.d.1j(\'1Z\',(s.v==4?15:1c)).1j(\'1W\',(s.v==4?15:1c));l J(o){h 24("o.21"+s.v+"()")};l P(){a.k=a.d.y();a.o=J(L(a.d.m()))?L(a.d.m()):a.o;a.n=a.d.m().K(\'\')};l 1n(o){t G=o.K(s.q);1p(t j=0;j0)G[j]+=s.D}h G.H(s.q)};l L(o){t E=M I(s.O,\'g\');t 1g=M I(s.D,\'g\');h o.X(E,\'0\').X(1g,\'\')};l 11(e){1R(e.1Q){U 8:f(a.n[a.k.c-1]!=s.q){a.n[a.k.c-1]=s.D;a.d.m(a.n.H("")).m()}a.d.y(a.k.c-1);h B;V;U 13:U 1T:a.d.17();V;U 1P:f(a.n[a.k.c]!=s.q&&a.k.c=20&&e.F<=1N)||e.F>1J){f(Q.1q(e.F).1y(s.W)){a.n[a.k.c]=Q.1q(e.F);f(!J(L(a.n.H(\'\')))){f((a.k.c==0||a.n[a.k.c-1]==s.q)){1p(t i=a.k.c+1;i `); + $("#FirstIP", content).ipAddress(); + $("#LastIP", content).ipAddress(); + skyapi().getJson( "/DHCP/collections/IPPool/" + ippool, function(ippool){ PopulateForm( ippool, { top: content,