This site uses cookies to deliver our services. By using this site, you acknowledge that you have read and understand our Cookie and Privacy policy. Your use of Kontext website is subject to this policy. Allow Cookies and Dismiss


1487 views 0 comments last modified about 8 years ago Raymond Tang Fahao






<html xmlns="">
    <script language="javascript" type="text/javascript">
        function checkOS() {
            var defaultUrl = 'index.htm';
            var androidUrl = 'android.htm';
            var iphoneUrl = 'iphone.htm';
            var symbianUrl = 'symbian.htm';
            //windows phone跳转地址
            var windowsPhoneUrl = 'winphone.htm';
            var url = '';
            var ua = (navigator.userAgent || navigator.vendor || window.opera);
            if (ua!=null) {
                var uaName = ua.toLowerCase();
                if (/android/i.test(uaName)) url = androidUrl;
                {   if (/ip(hone|od)/i.test(uaName)) url = iphoneUrl;
                    else {
                    if (/symbian/i.test(uaName)) url = symbianUrl;
                        else {
                            if (/windows (ce|phone)/i.test(uaName))  url = windowsPhoneUrl;
                            else url = defaultUrl;
            else { url = defaultUrl; }
            window.location.href = url;
<body onload='checkOS();'>

Related pages

Issue - Unable to get property 'apply' of undefined or null reference occurred in Angular 4.*, VS2017 15.3, ASP.NET Core 2.0

7619 views   10 comments last modified about 2 years ago

Issue Context After installed Visual Studio 2017 15.3 preview and .net core 2.0 preview SDK, I upgraded one of my existing core project to 2.0. The project was created using ‘dotnet new angular’ SPA template.&nbsp; I also upgraded all the client app packages to the latest. For exa...

View detail

[Link] Build SPA on ASP.NET Core with JavaScript Services

529 views   0 comments last modified about 2 years ago

Great introduction about JavaScriptServices ( JavaScriptServices GitHub repository ): Microsoft.AspNetCore.SpaTemplates plugs into dotnet new , providing project templates for Angular 2, Aurelia, Knockout...

View detail

input submit input text css的写法

152 views   0 comments last modified about 11 years ago


View detail


330 views   0 comments last modified about 9 years ago


View detail


388 views   0 comments last modified about 9 years ago


View detail

My First Silverlight Applet: Silverlight + xml 图片轮换展示效果

324 views   2 comments last modified about 10 years ago

这是自己的第一个Silverlight程序,没有专门的学习过Silverlight,界面效果不是很好(很丑 ),全是凭自己的感觉以及对xml和winform的了解转移到Silverlight上来的,效果参考了网上经常可以看到的Flash+Xml 图片或者广告轮番展示效果,不过我这个功能暂时不是很强大,仅仅是实现了最初的功能,以后再慢慢修改,效果参看

View detail

Add comment

Please login first to add comments.  Log in New user?  Register

Comments (0)

No comments yet.


  • enquiry[at]