Jelajahi Sumber

initial commit: website source from /home/index

liaoxg 2 bulan lalu
melakukan
f5944d40d4
100 mengubah file dengan 7566 tambahan dan 0 penghapusan
  1. 3 0
      .gitignore
  2. 418 0
      about.html
  3. 113 0
      about_certificate.html
  4. 139 0
      about_member.html
  5. 127 0
      about_privacy.html
  6. 487 0
      contact.html
  7. 369 0
      css/css.css
  8. 122 0
      css/forms.css
  9. 623 0
      css/main.css
  10. 93 0
      css/menu.css
  11. 45 0
      footer.html
  12. 3 0
      ggk/.gitignore
  13. 88 0
      ggk/README.md
  14. TEMPAT SAMPAH
      ggk/cursors/bird.png
  15. TEMPAT SAMPAH
      ggk/cursors/coin.png
  16. TEMPAT SAMPAH
      ggk/cursors/god-sword.png
  17. TEMPAT SAMPAH
      ggk/cursors/leaf.png
  18. TEMPAT SAMPAH
      ggk/cursors/mario.png
  19. 267 0
      ggk/demo/demo.css
  20. TEMPAT SAMPAH
      ggk/demo/img/facebook-icon.png
  21. TEMPAT SAMPAH
      ggk/demo/img/favicon.ico
  22. TEMPAT SAMPAH
      ggk/demo/img/forkme_right_darkblue.png
  23. TEMPAT SAMPAH
      ggk/demo/img/github-icon.png
  24. TEMPAT SAMPAH
      ggk/demo/img/googleplus-icon.png
  25. TEMPAT SAMPAH
      ggk/demo/img/linkedin-icon.png
  26. TEMPAT SAMPAH
      ggk/demo/img/rss-icon.png
  27. TEMPAT SAMPAH
      ggk/demo/img/stumbleupon-icon.png
  28. TEMPAT SAMPAH
      ggk/demo/img/twitter-icon.png
  29. TEMPAT SAMPAH
      ggk/demo/img/websanova-logo-small-full-black.png
  30. TEMPAT SAMPAH
      ggk/demo/img/youtube-icon.png
  31. 54 0
      ggk/gruntfile.js
  32. TEMPAT SAMPAH
      ggk/images/flw.jpg
  33. TEMPAT SAMPAH
      ggk/images/flw1.jpg
  34. TEMPAT SAMPAH
      ggk/images/hzh.jpg
  35. TEMPAT SAMPAH
      ggk/images/hzh1.jpg
  36. TEMPAT SAMPAH
      ggk/images/logo.png
  37. TEMPAT SAMPAH
      ggk/images/scratch-to-win.png
  38. TEMPAT SAMPAH
      ggk/images/slide1.jpg
  39. TEMPAT SAMPAH
      ggk/images/slide2.jpg
  40. TEMPAT SAMPAH
      ggk/images/slide3.jpg
  41. TEMPAT SAMPAH
      ggk/images/winner.png
  42. TEMPAT SAMPAH
      ggk/images/xiaoyuan.jpg
  43. TEMPAT SAMPAH
      ggk/images/xiaoyuan1.jpg
  44. TEMPAT SAMPAH
      ggk/images/xinran.jpg
  45. TEMPAT SAMPAH
      ggk/images/xinran1.jpg
  46. TEMPAT SAMPAH
      ggk/images/zhangsong.jpg
  47. TEMPAT SAMPAH
      ggk/images/zhangsong1.jpg
  48. 136 0
      ggk/index.html
  49. 1 0
      ggk/lib/jquery.1.11.0.min.js
  50. 22 0
      ggk/package.json
  51. 320 0
      ggk/src/wScratchPad.js
  52. 70 0
      ggk/test/dev.html
  53. 38 0
      ggk/wScratchPad.jquery.json
  54. 0 0
      ggk/wScratchPad.min.js
  55. 279 0
      h5/alignpat.js
  56. 111 0
      h5/bitmat.js
  57. 203 0
      h5/bmparser.js
  58. 117 0
      h5/datablock.js
  59. 325 0
      h5/databr.js
  60. 207 0
      h5/datamask.js
  61. 95 0
      h5/decoder.js
  62. 413 0
      h5/detector.js
  63. 58 0
      h5/errorlevel.js
  64. 649 0
      h5/findpat.js
  65. 104 0
      h5/formatinf.js
  66. 117 0
      h5/gf256.js
  67. 230 0
      h5/gf256poly.js
  68. 152 0
      h5/grid.js
  69. 319 0
      h5/qrcode.js
  70. 178 0
      h5/rsdecoder.js
  71. 149 0
      h5/test.html
  72. 261 0
      h5/version.js
  73. 61 0
      header.html
  74. TEMPAT SAMPAH
      images/about.png
  75. TEMPAT SAMPAH
      images/bg1.png
  76. TEMPAT SAMPAH
      images/bg_footer.gif
  77. TEMPAT SAMPAH
      images/bg_menu.png
  78. TEMPAT SAMPAH
      images/bg_site.gif
  79. TEMPAT SAMPAH
      images/contect.png
  80. TEMPAT SAMPAH
      images/dbxt_bg.png
  81. TEMPAT SAMPAH
      images/ico_readmore.gif
  82. TEMPAT SAMPAH
      images/img_logo.gif
  83. TEMPAT SAMPAH
      images/logo.png
  84. TEMPAT SAMPAH
      images/menu_1_en.gif
  85. TEMPAT SAMPAH
      images/menu_2_en.gif
  86. TEMPAT SAMPAH
      images/menu_3_en.gif
  87. TEMPAT SAMPAH
      images/menu_4_en.gif
  88. TEMPAT SAMPAH
      images/menu_9_en.gif
  89. TEMPAT SAMPAH
      images/newsroom.png
  90. TEMPAT SAMPAH
      images/p1-t-1.png
  91. TEMPAT SAMPAH
      images/product.gif
  92. TEMPAT SAMPAH
      images/product.png
  93. TEMPAT SAMPAH
      images/service.png
  94. TEMPAT SAMPAH
      images/solutions.png
  95. TEMPAT SAMPAH
      images/tit_about_cn1.png
  96. TEMPAT SAMPAH
      images/tit_eas_en.png
  97. TEMPAT SAMPAH
      images/tit_fis_en.png
  98. TEMPAT SAMPAH
      img/4a.png
  99. TEMPAT SAMPAH
      img/app.png
  100. TEMPAT SAMPAH
      img/bigdata.png

+ 3 - 0
.gitignore

@@ -0,0 +1,3 @@
+*.txt
+Thumbs.db
+.DS_Store

+ 418 - 0
about.html

@@ -0,0 +1,418 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="chrome=1">
+    <meta name="renderer" content="webkit">
+    <meta name="keywords" content="原型,原型设计,快速原型,高保真原型,在线原型,原形工具,定制开发,软件开发,项目实施,项目管理" />
+    <meta name="description" content="北京安盈创卓科技有限公司,是一家以软件开发为主的信息化企业。" />
+    <title>关于我们 | 安盈创卓</title>
+    <link href="style/css/page.css" rel="stylesheet" type="text/css" />
+    <link rel="icon" type="image/x-icon" href="style/images/icon.png" />
+    <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
+</head>
+<body>
+    <!-- Navigation -->
+    <nav class="nav" id="nav">
+        <div class="nav-container">
+            <a href="index.html" class="logo">
+                <div class="logo-icon">
+                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="40" height="40">
+                        <defs>
+                            <linearGradient id="ayGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+                                <stop offset="0%" style="stop-color:#0066cc"/>
+                                <stop offset="100%" style="stop-color:#0088ff"/>
+                            </linearGradient>
+                        </defs>
+                        <rect x="2" y="2" width="46" height="46" rx="8" fill="url(#ayGrad)"/>
+                        <path d="M12 38 L20 16 L25 28 L30 16 L38 38 L31 38 L27 25 L23 25 L19 38 Z" fill="white"/>
+                        <path d="M23 22 L27 22 L25 12 Z" fill="url(#ayGrad)"/>
+                    </svg>
+                </div>
+                <span class="logo-text">安盈创卓</span>
+            </a>
+            <ul class="nav-links" id="navLinks">
+                <li><a href="index.html" class="nav-item" data-page="index">首页</a></li>
+                <li><a href="product_totem.html" class="nav-item" data-page="product">企业产品</a></li>
+                <li><a href="serve.html" class="nav-item" data-page="serve">企业服务</a></li>
+                <li><a href="news.html" class="nav-item" data-page="news">新闻中心</a></li>
+                <li><a href="about.html" class="nav-item" data-page="about">关于我们</a></li>
+                <li class="nav-dropdown">
+                    <a href="#" class="nav-item" data-page="contact">联系我们</a>
+                    <div class="nav-dropdown-menu">
+                        <a href="contact.html">线上咨询</a>
+                        <a href="jobs.html">企业招聘</a>
+                    </div>
+                </li>
+            </ul>
+            <button class="mobile-menu-btn" id="mobileMenuBtn" onclick="toggleMobileMenu()">
+                <span></span>
+                <span></span>
+                <span></span>
+            </button>
+        </div>
+    </nav>
+    <script>
+    (function() {
+        var path = window.location.pathname.split('/').pop() || 'index.html';
+        var pageMap = {
+            'index.html': 'index', '': 'index',
+            'product_totem.html': 'product', 'product_portal.html': 'product', 'product_oa.html': 'product',
+            'product_super.html': 'product', 'product_info.html': 'product', 'product_leader.html': 'product',
+            'product_bigdata.html': 'product', 'product_4a.html': 'product',
+            'serve.html': 'serve',
+            'news.html': 'news', 'news_show.html': 'news',
+            'about.html': 'about', 'about_certificate.html': 'about', 'about_member.html': 'about',
+            'contact.html': 'contact', 'jobs.html': 'contact'
+        };
+        var currentPage = pageMap[path];
+        if (currentPage) {
+            document.querySelectorAll('.nav-item').forEach(function(link) {
+                if (link.getAttribute('data-page') === currentPage) link.classList.add('active');
+            });
+        }
+    })();
+    </script>
+
+    <!-- Banner -->
+    <div class="page-banner">
+        <div class="page-banner-content">
+            <h1>关于我们</h1>
+            <p>安心 · 共赢 · 创新 · 卓越</p>
+        </div>
+    </div>
+
+    <!-- Content -->
+    <div class="page-content">
+        <div class="container">
+            <!-- Tabs -->
+            <div class="tabs">
+                <button class="tab active" data-tab="culture">企业文化</button>
+                <button class="tab" data-tab="certificate">资质证件</button>
+                <button class="tab" data-tab="member">员工活动</button>
+            </div>
+            
+            <!-- Culture Tab -->
+            <div class="tab-content active" id="culture">
+                <div class="culture-grid">
+                    <div class="culture-item">
+                        <div class="culture-icon">
+                            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
+                                <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/>
+                            </svg>
+                        </div>
+                        <h3 class="culture-title">宗旨</h3>
+                        <p class="culture-desc">安心、共赢、创新、卓越</p>
+                    </div>
+                    
+                    <div class="culture-item">
+                        <div class="culture-icon">
+                            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
+                                <circle cx="12" cy="12" r="10"/>
+                                <path d="M12 6v6l4 2"/>
+                            </svg>
+                        </div>
+                        <h3 class="culture-title">目标</h3>
+                        <p class="culture-desc">做好用的国产软件,成为领先的信息化服务供应商</p>
+                    </div>
+                    
+                    <div class="culture-item">
+                        <div class="culture-icon">
+                            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
+                                <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/>
+                            </svg>
+                        </div>
+                        <h3 class="culture-title">品牌战略</h3>
+                        <p class="culture-desc">以优质的技术、产品、服务赢得市场</p>
+                    </div>
+                    
+                    <div class="culture-item">
+                        <div class="culture-icon">
+                            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
+                                <path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/>
+                            </svg>
+                        </div>
+                        <h3 class="culture-title">文化战略</h3>
+                        <p class="culture-desc">行动改变现在,思想决定未来</p>
+                    </div>
+                    
+                    <div class="culture-item">
+                        <div class="culture-icon">
+                            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
+                                <path d="M22 11.08V12a10 10 0 11-5.93-9.14"/>
+                                <polyline points="22 4 12 14.01 9 11.01"/>
+                            </svg>
+                        </div>
+                        <h3 class="culture-title">服务战略</h3>
+                        <p class="culture-desc">只有超越了客户的满意才是安盈创卓的成功</p>
+                    </div>
+                </div>
+                
+                <div class="info-item" style="margin-top: 2rem;">
+                    <h3>公司简介</h3>
+                    <p>北京安盈创卓科技有限公司是一家以软件开发为主的信息化企业,面向政府、央企提供以办公为核心的软件开发及实施、咨询服务。服务宗旨是超越客户预期的信息化服务,以创新为核心竞争力,低调务实,价值至上。</p>
+                    <p style="margin-top: 1rem;">公司核心能力涵盖信息化全链,从规划、咨询、研发、实施、运维、项目管理、系统集成,也包括人力派遣等。以独创的标准化、工业化的生产模式,在轻松解决业务领域与技术架构的关系基础上自主研发的图腾代码生产平台,可实现软件系统的快速生产。</p>
+                    <p style="margin-top: 1rem;">客户主要分布在金融、能源(中国石化、国家电网等)、军工、交通、政府等领域。被誉为可信赖和有价值的软件公司,被合作客户评为A级供应商。</p>
+                </div>
+            </div>
+            
+            <!-- Certificate Tab -->
+            <div class="tab-content" id="certificate">
+                <div class="gallery-grid">
+                    <div class="gallery-item">
+                        <img src="style/images/qualification/qualification0.png" alt="资质证书">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">ISO9001质量管理体系认证</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/qualification/qualification1.png" alt="资质证书">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">软件企业认定证书</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/qualification/qualification2.png" alt="资质证书">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">高新技术企业证书</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/qualification/qualification3.png" alt="资质证书">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">中关村高新技术企业</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/qualification/qualification4.png" alt="资质证书">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">AAA级信用企业</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/qualification/qualification5.png" alt="资质证书">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">企业资质证书</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/qualification/qualification6.png" alt="资质证书">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">计算机软件著作权</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/qualification/qualification7.png" alt="资质证书">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">软件产品登记证书</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/qualification/qualification8.png" alt="资质证书">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">CMMI认证证书</span>
+                        </div>
+                    </div>
+                </div>
+            </div>
+            
+            <!-- Member Tab -->
+            <div class="tab-content" id="member">
+                <div class="info-list">
+                    <div class="info-item">
+                        <h3>团队理念</h3>
+                        <p>安盈创卓拥有一支作风务实、小而精的技术团队,技术带头人具有上市公司十余年丰富的工作经验,奋战在钟爱的技术一线,拥有多项发明和核心单位优势及技术和先进实用的技术管理经验。</p>
+                    </div>
+                    <div class="info-item">
+                        <h3>技术创新</h3>
+                        <p>耗时10年独创的软件生产模式,兼顾高效、特长标准化、规模化。拥有前沿技术和超前的意识,不断引领创新和突破,并以工匠精神不断精益求精,服务品质卓越。</p>
+                    </div>
+                </div>
+                
+                <!-- Employee Activities Photos -->
+                <div class="gallery-grid" style="margin-top: 2rem; grid-template-columns: repeat(3, 1fr);">
+                    <div class="gallery-item">
+                        <img src="style/images/member/member_image8.png" alt="员工活动" style="height: 220px; object-fit: cover;">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">员工活动 - 休闲烧烤</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/member/member_image9.png" alt="员工活动" style="height: 220px; object-fit: cover;">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">员工活动 - 休闲烧烤</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/member/member_image0.png" alt="公司年会" style="height: 220px; object-fit: cover;">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">公司年会</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/member/member_image1.png" alt="公司年会" style="height: 220px; object-fit: cover;">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">公司年会</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/member/member_image2.png" alt="戴河之旅" style="height: 220px; object-fit: cover;">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">戴河之旅</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/member/member_image3.png" alt="戴河之旅" style="height: 220px; object-fit: cover;">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">戴河之旅</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/member/member_image7.png" alt="戴河之旅" style="height: 220px; object-fit: cover;">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">戴河之旅</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/member/member_image4.png" alt="说烤就烤" style="height: 220px; object-fit: cover;">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">说烤就烤 - 农家乐自助烧烤</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/member/member_image5.png" alt="说烤就烤" style="height: 220px; object-fit: cover;">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">说烤就烤 - 农家乐自助烧烤</span>
+                        </div>
+                    </div>
+                    <div class="gallery-item">
+                        <img src="style/images/member/member_image6.png" alt="篝火晚会" style="height: 220px; object-fit: cover;">
+                        <div class="gallery-overlay">
+                            <span class="gallery-title">篝火晚会</span>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+
+    <!-- Footer -->
+    <footer class="footer">
+        <div class="container">
+            <div class="footer-grid">
+                <div class="footer-brand">
+                    <a href="index.html" class="logo">
+                        <div class="logo-icon">
+                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="40" height="40">
+                        <defs>
+                            <linearGradient id="iconGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+                                <stop offset="0%" style="stop-color:#0066cc"/>
+                                <stop offset="100%" style="stop-color:#0088ff"/>
+                            </linearGradient>
+                        </defs>
+                        <circle cx="25" cy="25" r="24" fill="url(#iconGrad)"/>
+                        <path d="M25 10 L37 36 L25 29 L13 36 Z" fill="white"/>
+                        <circle cx="25" cy="23" r="3" fill="url(#iconGrad)"/>
+                    </svg>
+                </div>
+                        <span class="logo-text" style="color: white;">安盈创卓</span>
+                    </a>
+                    <p>以创新为核心竞争力,低调务实,价值至上。致力于为客户提供超越预期的信息化服务。</p>
+                </div>
+                
+                <div class="footer-column">
+                    <h4 class="footer-title">产品服务</h4>
+                    <ul class="footer-links">
+                        <li><a href="product_totem.html">图腾平台</a></li>
+                        <li><a href="product_oa.html">协同办公</a></li>
+                        <li><a href="product_bigdata.html">大数据产品</a></li>
+                        <li><a href="product_portal.html">企业门户</a></li>
+                    </ul>
+                </div>
+                
+                <div class="footer-column">
+                    <h4 class="footer-title">关于公司</h4>
+                    <ul class="footer-links">
+                        <li><a href="about.html">公司简介</a></li>
+                        <li><a href="about_certificate.html">资质荣誉</a></li>
+                        <li><a href="about_member.html">团队成员</a></li>
+                        <li><a href="news.html">新闻动态</a></li>
+                    </ul>
+                </div>
+                
+                <div class="footer-column footer-contact">
+                    <h4 class="footer-title">联系我们</h4>
+                    <p>电话:010-58733188</p>
+                    <p>地址:北京市海淀区盈都大厦C座4单元21E</p>
+                    <p>邮箱:contact@iwintrue.com</p>
+                </div>
+            </div>
+            
+            <div class="footer-bottom">
+                <p>Copyright © 2015-2025 安盈创卓 京ICP备14061870号-1</p>
+                <div>
+                    <a href="https://beian.miit.gov.cn" target="_blank">备案查询</a>
+                </div>
+            </div>
+        </div>
+    </footer>
+
+    <script>
+        // Tab functionality
+        const tabs = document.querySelectorAll('.tab');
+        tabs.forEach(tab => {
+            tab.addEventListener('click', () => {
+                const target = tab.dataset.tab;
+                
+                // Remove active class from all tabs and contents
+                document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
+                document.querySelectorAll('.tab-content').forEach(c => c.classList.remove('active'));
+                
+                // Add active class to clicked tab and corresponding content
+                tab.classList.add('active');
+                document.getElementById(target).classList.add('active');
+            });
+        });
+
+        // Mobile menu toggle
+        function toggleMobileMenu() {
+            const navLinks = document.getElementById('navLinks');
+            const menuBtn = document.getElementById('mobileMenuBtn');
+            navLinks.classList.toggle('active');
+            menuBtn.classList.toggle('active');
+        }
+        
+        // Mobile dropdown toggle
+        document.querySelectorAll('.nav-dropdown > a').forEach(function(dropdown) {
+            dropdown.addEventListener('click', function(e) {
+                if (window.innerWidth <= 768) {
+                    e.preventDefault();
+                    this.parentElement.classList.toggle('active');
+                }
+            });
+        });
+        
+        // Close mobile menu when clicking outside
+        document.addEventListener('click', function(e) {
+            const navLinks = document.getElementById('navLinks');
+            const menuBtn = document.getElementById('mobileMenuBtn');
+            if (window.innerWidth <= 768 && navLinks.classList.contains('active')) {
+                if (!navLinks.contains(e.target) && !menuBtn.contains(e.target)) {
+                    navLinks.classList.remove('active');
+                    menuBtn.classList.remove('active');
+                }
+            }
+        });
+        
+        // Navigation scroll effect
+        window.addEventListener('scroll', function() {
+            const nav = document.getElementById('nav');
+            if (window.scrollY > 50) {
+                nav.classList.add('scrolled');
+            } else {
+                nav.classList.remove('scrolled');
+            }
+        });
+    </script>
+</body>
+</html>

+ 113 - 0
about_certificate.html

@@ -0,0 +1,113 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+	<meta charset="UTF-8">
+	<meta http-equiv="X-UA-Compatible" content="chrome=1">
+	<meta name="renderer" content="webkit">
+	<title>安盈创卓</title>
+	<link href="style/css/swiper-3.4.2.min.css" rel="stylesheet" type="text/css" />
+	<link href="style/css/common.css" rel="stylesheet" type="text/css" />
+	<link href="style/css/css.css" rel="stylesheet" type="text/css" />
+	<link rel="icon" type="image/x-icon" href="style/images/icon.png" />
+</head>
+
+<body>
+
+	<div class="bgbox">
+		<!-- nav -->
+		<div class="nav">
+			<div class="logo"><a class="logoA" href="index.html"><img class="logoImg" src="style/images/index_logo.png"></a></div>
+			<div class="nav_list">
+				<ul class="nav_ul">
+					<li class="nav_li"><a class="nav_lia " href="index.html">首页</a></li>
+					<li class="nav_li"><a class="nav_lia " href="product_totem.html">企业产品</a></li>
+					<li class="nav_li"><a class="nav_lia " href="serve.html">企业服务</a></li>
+					<li class="nav_li"><a class="nav_lia " href="news.html">新闻中心</a></li>
+					<li class="nav_li"><a class="nav_lia lia_sel" href="about.html">关于我们</a></li>
+					<li class="nav_li" onmouseover="displayMoreNav(this)" onmouseout = "displayHidden(this)"><a class="nav_lia">联系我们</a>
+						<ul class="nav_sub_ul">
+							<li class="nav_sub_li"><a class="nav_sub_lia" href="contact.html">线上咨询</a></li>
+							<li class="nav_sub_li"><a class="nav_sub_lia" href="jobs.html">企业招聘</a></li>
+						</ul>
+					</li>
+					<div class="jo_clear"></div>
+				</ul>
+			</div>
+			<div class="jo_clear"></div>
+		</div>
+
+		<!-- banner -->
+		<div class="about_banner"><img src="style/images/about_banner.png"></div>
+
+		<!-- content -->
+		<div class="content">
+			<div class="about">
+				<div class="index_tit">
+					<div class="index_module_tit">
+						<img class="index_module_img" src="style/images/index_module_icon.png">
+						<span>关于我们</span>
+					</div>
+				</div>
+				<div class="about_content">
+					<div class="about_nav">
+						<ul>
+							<li class="about_nav_li"><a class="about_nav_a" href="about.html">企业文化</a></li>
+							<li class="about_nav_li"><a class="about_nav_a about_active" href="about_certificate.html">资质证件</a></li>
+							<li class="about_nav_li"><a class="about_nav_a" href="about_member.html">员工活动</a></li>
+							<!-- <li class="about_nav_li"><a class="about_nav_a" href="about_privacy.html">隐私条款</a></li> -->
+						</ul>
+					</div>
+					<div class="about_con">
+						<div class="about_con_tit">资质证件</div>
+						<div class="about_certificate">
+							<div class="swiper-container">
+						        <div class="swiper-wrapper">
+						            <div class="swiper-slide" style="background-image:url(style/images/qualification/company.jpg)"></div>
+						            <div class="swiper-slide" style="background-image:url(style/images/qualification/gaoxin.png)"></div>
+						            <div class="swiper-slide" style="background-image:url(style/images/qualification/zgc.png)"></div>
+						            <div class="swiper-slide" style="background-image:url(style/images/qualification/iso9001.png)"></div>
+						            <div class="swiper-slide" style="background-image:url(style/images/qualification/zzq.jpg)"></div>
+						        </div>
+						    </div>
+						</div>
+					</div>
+					<div class="jo_clear"></div>
+				</div>
+			</div>
+		</div>
+
+		<!-- foot -->
+		<div id="footer" class="foot">
+	</div>
+
+<script src="style/js/jquery-2.1.4.js"></script>
+<script src="style/js/swiper-3.4.2.min.js"></script>
+<script>
+	function displayMoreNav(obj) {
+		$('.nav_sub_ul').css('height', '91px');
+	}
+	function displayHidden(obj) {
+		$('.nav_sub_ul').css('height', '0px');
+	}
+</script>
+<script>
+	var swiper = new Swiper('.about_certificate .swiper-container', {
+        effect: 'coverflow',
+        grabCursor: true,
+        centeredSlides: true,
+        slidesPerView: 'auto',
+        coverflow: {
+            rotate: 50,
+            stretch: 0,
+            depth: 100,
+            modifier: 1,
+            slideShadows : true
+        }
+    });
+	   $.get('footer.html',function(data){
+		  $('#footer').html(data)
+	   })
+	$.get("admin/count/log?user=www.iwintrue.com&uri=about_cert");
+</script>
+</body>
+</html>

+ 139 - 0
about_member.html

@@ -0,0 +1,139 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+	<meta charset="UTF-8">
+	<meta http-equiv="X-UA-Compatible" content="chrome=1">
+	<meta name="renderer" content="webkit">
+	<title>安盈创卓</title>
+	<link href="style/css/common.css" rel="stylesheet" type="text/css" />
+	<link href="style/css/css.css" rel="stylesheet" type="text/css" />
+	<link rel="icon" type="image/x-icon" href="style/images/icon.png" />
+</head>
+
+<body>
+
+	<div class="bgbox">
+		<!-- nav -->
+		<div class="nav">
+			<div class="logo"><a class="logoA" href="index.html"><img class="logoImg" src="style/images/index_logo.png"></a></div>
+			<div class="nav_list">
+				<ul class="nav_ul">
+					<li class="nav_li"><a class="nav_lia " href="index.html">首页</a></li>
+					<li class="nav_li"><a class="nav_lia " href="product_totem.html">企业产品</a></li>
+					<li class="nav_li"><a class="nav_lia " href="serve.html">企业服务</a></li>
+					<li class="nav_li"><a class="nav_lia " href="news.html">新闻中心</a></li>
+					<li class="nav_li"><a class="nav_lia lia_sel" href="about.html">关于我们</a></li>
+					<li class="nav_li" onmouseover="displayMoreNav(this)" onmouseout = "displayHidden(this)"><a class="nav_lia">联系我们</a>
+						<ul class="nav_sub_ul">
+							<li class="nav_sub_li"><a class="nav_sub_lia" href="contact.html">线上咨询</a></li>
+							<li class="nav_sub_li"><a class="nav_sub_lia" href="jobs.html">企业招聘</a></li>
+						</ul>
+					</li>
+					<div class="jo_clear"></div>
+				</ul>
+			</div>
+			<div class="jo_clear"></div>
+		</div>
+
+		<!-- banner -->
+		<div class="about_banner"><img src="style/images/about_banner.png"></div>
+
+		<!-- content -->
+		<div class="content">
+			<div class="about">
+				<div class="index_tit">
+					<div class="index_module_tit">
+						<img class="index_module_img" src="style/images/index_module_icon.png">
+						<span>关于我们</span>
+					</div>
+				</div>
+				<div class="about_content">
+					<div class="about_nav">
+						<ul>
+							<li class="about_nav_li"><a class="about_nav_a " href="about.html">企业文化</a></li>
+							<li class="about_nav_li"><a class="about_nav_a " href="about_certificate.html">资质证件</a></li>
+							<li class="about_nav_li"><a class="about_nav_a about_active" href="about_member.html">员工活动</a></li>
+							<!-- <li class="about_nav_li"><a class="about_nav_a " href="about_privacy.html">隐私条款</a></li> -->
+						</ul>
+					</div>
+					<div class="about_con">
+						<div class="about_con_tit">员工活动</div>
+						<div class="about_member">
+							<ul class="member_ul">
+								<li class="member_li">
+									<img class="member_img" src="style/images/member/member_image8.png">
+									<div class="member_tit">员工活动</div>
+									<div class="member_note">休闲烧烤。</div>
+								</li>
+								<li class="member_li">
+									<img class="member_img" src="style/images/member/member_image9.png">
+									<div class="member_tit">员工活动</div>
+									<div class="member_note">休闲烧烤。</div>
+								</li>
+								<li class="member_li">
+									<img class="member_img" src="style/images/member/member_image0.png">
+									<div class="member_tit">公司年会</div>
+									<div class="member_note">年底,公司组织举办员工年会。全体员工齐聚一趟,其乐融融。</div>
+								</li>
+								<li class="member_li">
+									<img class="member_img" src="style/images/member/member_image1.png">
+									<div class="member_tit">公司年会</div>
+									<div class="member_note">年底,公司组织举办员工年会。全体员工齐聚一趟,其乐融融。</div>
+								</li>
+								<li class="member_li">
+									<img class="member_img" src="style/images/member/member_image2.png">
+									<div class="member_tit">戴河之旅</div>
+									<div class="member_note">年中,公司定期组织员工出行游玩。北戴河之旅记录着大家幸福的点滴。</div>
+								</li>
+								<li class="member_li">
+									<img class="member_img" src="style/images/member/member_image3.png">
+									<div class="member_tit">戴河之旅</div>
+									<div class="member_note">年中,公司定期组织员工出行游玩。北戴河之旅记录着大家幸福的点滴。</div>
+								</li>
+								<li class="member_li">
+									<img class="member_img" src="style/images/member/member_image7.png">
+									<div class="member_tit">戴河之旅</div>
+									<div class="member_note">年中,公司定期组织员工出行游玩。北戴河之旅记录着大家幸福的点滴。</div>
+								</li>
+								<li class="member_li">
+									<img class="member_img" src="style/images/member/member_image4.png">
+									<div class="member_tit">说烤就烤</div>
+									<div class="member_note">农家乐的自助烧烤让员工体味到独特的小资情调。无尽的美味萦绕心头。</div>
+								</li>
+								<li class="member_li">
+									<img class="member_img" src="style/images/member/member_image5.png">
+									<div class="member_tit">说烤就烤</div>
+									<div class="member_note">农家乐的自助烧烤让员工体味到独特的小资情调。无尽的美味萦绕心头。</div>
+								</li>
+								<li class="member_li">
+									<img class="member_img" src="style/images/member/member_image6.png">
+									<div class="member_tit">篝火晚会</div>
+									<div class="member_note">夜晚的篝火再次点燃大家激情,员工们自编自导,载歌载舞。</div>
+								</li>
+								<div class="jo_clear"></div>
+							</ul>
+						</div>
+					</div>
+					<div class="jo_clear"></div>
+				</div>
+			</div>
+		</div>
+
+		<!-- foot -->
+		<div id="footer" class="foot">
+	</div>
+
+<script src="style/js/jquery-2.1.4.js"></script>
+<script>
+	function displayMoreNav(obj) {
+		$('.nav_sub_ul').css('height', '91px');
+	}
+	function displayHidden(obj) {
+		$('.nav_sub_ul').css('height', '0px');
+	}
+   $.get('footer.html',function(data){
+	  $('#footer').html(data)
+   })
+</script>
+</body>
+</html>

+ 127 - 0
about_privacy.html

@@ -0,0 +1,127 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+	<meta charset="UTF-8">
+	<meta http-equiv="X-UA-Compatible" content="chrome=1">
+	<meta name="renderer" content="webkit">
+	<title>安盈创卓</title>
+	<link href="style/css/common.css" rel="stylesheet" type="text/css" />
+	<link href="style/css/css.css" rel="stylesheet" type="text/css" />
+	<link rel="icon" type="image/x-icon" href="style/images/icon.png" />
+</head>
+
+<body>
+
+	<div class="bgbox">
+		<!-- nav -->
+		<div class="nav">
+			<div class="logo"><a class="logoA" href="index.html"><img class="logoImg" src="style/images/index_logo.png"></a></div>
+			<div class="nav_list">
+				<ul class="nav_ul">
+					<li class="nav_li"><a class="nav_lia " href="index.html">首页</a></li>
+					<li class="nav_li"><a class="nav_lia " href="product_totem.html">企业产品</a></li>
+					<li class="nav_li"><a class="nav_lia " href="serve.html">企业服务</a></li>
+					<li class="nav_li"><a class="nav_lia " href="news.html">新闻中心</a></li>
+					<li class="nav_li"><a class="nav_lia lia_sel" href="about.html">关于我们</a></li>
+					<li class="nav_li" onmouseover="displayMoreNav(this)" onmouseout = "displayHidden(this)"><a class="nav_lia">联系我们</a>
+						<ul class="nav_sub_ul">
+							<li class="nav_sub_li"><a class="nav_sub_lia" href="contact.html">线上咨询</a></li>
+							<li class="nav_sub_li"><a class="nav_sub_lia" href="jobs.html">企业招聘</a></li>
+						</ul>
+					</li>
+					<div class="jo_clear"></div>
+				</ul>
+			</div>
+			<div class="jo_clear"></div>
+		</div>
+
+		<!-- banner -->
+		<div class="about_banner"><img src="style/images/about_banner.png"></div>
+
+		<!-- content -->
+		<div class="content">
+			<div class="about">
+				<div class="index_tit">
+					<div class="index_module_tit">
+						<img class="index_module_img" src="style/images/index_module_icon.png">
+						<span>关于我们</span>
+					</div>
+				</div>
+				<div class="about_content">
+					<div class="about_nav">
+						<ul>
+							<li class="about_nav_li"><a class="about_nav_a " href="about.html">企业文化</a></li>
+							<li class="about_nav_li"><a class="about_nav_a " href="about_certificate.html">资质证件</a></li>
+							<li class="about_nav_li"><a class="about_nav_a " href="about_member.html">员工活动</a></li>
+							<li class="about_nav_li"><a class="about_nav_a about_active" href="about_privacy.html">隐私条款</a></li>
+						</ul>
+					</div>
+					<div class="about_con">
+						<div class="about_con_tit">隐私条款</div>
+						<div class="about_privacy"></div>
+					</div>
+					<div class="jo_clear"></div>
+				</div>
+			</div>
+		</div>
+
+		<!-- foot -->
+		<div class="foot">
+			<div class="foot_banner">
+				<img src="style/images/foot_banner.png">
+			</div>
+			<div class="foot_link">
+				<ul class="foot_link_ul">
+					<li class="foot_link_li">友情链接:</li>
+					<li class="foot_link_li"><a class="foot_link_a" target="blank" href="http://code.itotem.org/code/">图腾社区</a></li>
+					<li class="foot_link_li"><a class="foot_link_a" href="#">内部管理</a></li>
+					<div class="jo_clear"></div>
+				</ul>
+			</div>
+			<div class="foot_map">
+				<div class="foot_map_addr">
+					<div class="foot_addr_email">Email:webmaster@iwintrue.com</div>
+					<div class="foot_addr_addr">地址:北京市海淀区盈都大厦C座4单元21E</div>
+				</div>
+				<div class="foot_map_nav">
+					<ul class="foot_nav_ul">
+						<li class="foot_nav_li"><a class="foot_nav_a" href="product_totem.html">企业产品</a></li>
+						<li class="foot_nav_li"><a class="foot_nav_a" href="about.html">关于我们</a></li>
+						<li class="foot_nav_li"><a class="foot_nav_a" href="serve.html">企业服务</a></li>
+						<li class="foot_nav_li"><a class="foot_nav_a" href="contact.html">联系我们</a></li>
+						<li class="foot_nav_li"><a class="foot_nav_a" href="news.html">新闻中心</a></li>
+						<li class="foot_nav_li"><a class="foot_nav_a" href="jobs.html">企业招聘</a></li>
+						<div class="jo_clear"></div>
+					</ul>
+				</div>
+				<div class="foot_map_chat">
+					<div class="foot_chat_tit">社交平台</div>
+					<div class="foot_chat_lin">
+						<ul class="foot_lin_ul">
+							<li class="foot_lin_li"><a class="foot_lin_a foot_wechat"></a></li>
+							<li class="foot_lin_li"><a class="foot_lin_a foot_qq"></a></li>
+							<li class="foot_lin_li"><a class="foot_lin_a foot_weibo"></a></li>
+							<div class="jo_clear"></div>
+						</ul>
+					</div>
+				</div>
+				<div class="foot_map_logo"><a class="logoA" href="index.html"><img class="logoImg" src="style/images/index_logo.png"></a></div>
+				<div class="jo_clear"></div>
+			</div>
+			<div class="foot_copyright">Copyright@2015-2017 iwinture 京ICP备14061870号</div>
+		</div>
+
+	</div>
+
+<script src="style/js/jquery-2.1.4.js"></script>
+<script>
+	function displayMoreNav(obj) {
+		$('.nav_sub_ul').css('height', '91px');
+	}
+	function displayHidden(obj) {
+		$('.nav_sub_ul').css('height', '0px');
+	}
+	$.get("admin/count/log?user=www.iwintrue.com&uri=about_privacy");
+</script>
+</body>
+</html>

+ 487 - 0
contact.html

@@ -0,0 +1,487 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="chrome=1">
+    <meta name="renderer" content="webkit">
+    <meta name="keywords" content="联系我们,线上咨询,商务合作" />
+    <meta name="description" content="联系安盈创卓,了解更多关于软件定制、信息化服务的信息。" />
+    <title>联系我们 | 安盈创卓</title>
+    <link href="style/css/page.css" rel="stylesheet" type="text/css" />
+    <link rel="icon" type="image/x-icon" href="style/images/icon.png" />
+    <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
+    <style>
+        .contact-section {
+            display: grid;
+            grid-template-columns: 1fr 1fr;
+            gap: 3rem;
+            align-items: start;
+        }
+        
+        .contact-map {
+            background: var(--bg-card);
+            border: 1px solid var(--border);
+            border-radius: 20px;
+            overflow: hidden;
+        }
+        
+        .contact-map img {
+            width: 100%;
+            height: 400px;
+            object-fit: cover;
+        }
+        
+        .contact-info-card {
+            background: var(--bg-card);
+            border: 1px solid var(--border);
+            border-radius: 20px;
+            padding: 2.5rem;
+        }
+        
+        .contact-info-card h2 {
+            font-size: 1.5rem;
+            font-weight: 700;
+            margin-bottom: 1.5rem;
+            color: var(--text-primary);
+        }
+        
+        .contact-detail {
+            display: flex;
+            gap: 1rem;
+            margin-bottom: 1.5rem;
+        }
+        
+        .contact-icon-box {
+            width: 48px;
+            height: 48px;
+            background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
+            border: 1px solid #bae6fd;
+            border-radius: 12px;
+            display: flex;
+            align-items: center;
+            justify-content: center;
+            color: var(--accent);
+            flex-shrink: 0;
+        }
+        
+        .contact-text h4 {
+            font-size: 0.875rem;
+            font-weight: 600;
+            color: var(--text-primary);
+            margin-bottom: 0.25rem;
+        }
+        
+        .contact-text p {
+            font-size: 0.9rem;
+            color: var(--text-secondary);
+            line-height: 1.6;
+        }
+        
+        .contact-form-card {
+            background: var(--bg-card);
+            border: 1px solid var(--border);
+            border-radius: 20px;
+            padding: 2.5rem;
+            grid-column: span 2;
+        }
+        
+        .contact-form-card h2 {
+            font-size: 1.5rem;
+            font-weight: 700;
+            margin-bottom: 1.5rem;
+            color: var(--text-primary);
+        }
+        
+        .form-row {
+            display: grid;
+            grid-template-columns: repeat(3, 1fr);
+            gap: 1rem;
+            margin-bottom: 1rem;
+        }
+        
+        .form-input {
+            width: 100%;
+            padding: 1rem 1.25rem;
+            background: var(--bg-tertiary);
+            border: 1px solid var(--border);
+            border-radius: 10px;
+            font-size: 0.9rem;
+            font-family: var(--font-main);
+            color: var(--text-primary);
+            transition: all 0.3s ease;
+        }
+        
+        .form-input:focus {
+            outline: none;
+            border-color: var(--accent);
+            box-shadow: 0 0 0 3px var(--accent-glow);
+        }
+        
+        .form-input::placeholder {
+            color: var(--text-tertiary);
+        }
+        
+        .form-textarea {
+            width: 100%;
+            padding: 1rem 1.25rem;
+            background: var(--bg-tertiary);
+            border: 1px solid var(--border);
+            border-radius: 10px;
+            font-size: 0.9rem;
+            font-family: var(--font-main);
+            color: var(--text-primary);
+            min-height: 150px;
+            resize: vertical;
+            transition: all 0.3s ease;
+            margin-bottom: 1rem;
+        }
+        
+        .form-textarea:focus {
+            outline: none;
+            border-color: var(--accent);
+            box-shadow: 0 0 0 3px var(--accent-glow);
+        }
+        
+        .form-textarea::placeholder {
+            color: var(--text-tertiary);
+        }
+        
+        .form-error {
+            color: #dc2626;
+            font-size: 0.85rem;
+            margin-bottom: 1rem;
+        }
+        
+        .form-success {
+            color: #16a34a;
+            font-size: 0.85rem;
+            margin-bottom: 1rem;
+        }
+        
+        .form-submit {
+            display: inline-flex;
+            align-items: center;
+            gap: 0.5rem;
+            padding: 1rem 2rem;
+            background: linear-gradient(135deg, var(--accent), #0369a1);
+            color: white;
+            border: none;
+            border-radius: 10px;
+            font-size: 0.95rem;
+            font-weight: 500;
+            cursor: pointer;
+            transition: all 0.3s ease;
+        }
+        
+        .form-submit:hover {
+            transform: translateY(-2px);
+            box-shadow: 0 10px 40px -10px var(--accent-glow);
+        }
+        
+        @media (max-width: 768px) {
+            .contact-section {
+                grid-template-columns: 1fr;
+            }
+            
+            .form-row {
+                grid-template-columns: 1fr;
+            }
+            
+            .contact-form-card {
+                grid-column: span 1;
+            }
+        }
+    </style>
+</head>
+<body>
+    <!-- Navigation -->
+    <nav class="nav" id="nav">
+        <div class="nav-container">
+            <a href="index.html" class="logo">
+                <div class="logo-icon">
+                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="40" height="40">
+                        <defs>
+                            <linearGradient id="ayGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+                                <stop offset="0%" style="stop-color:#0066cc"/>
+                                <stop offset="100%" style="stop-color:#0088ff"/>
+                            </linearGradient>
+                        </defs>
+                        <rect x="2" y="2" width="46" height="46" rx="8" fill="url(#ayGrad)"/>
+                        <path d="M12 38 L20 16 L25 28 L30 16 L38 38 L31 38 L27 25 L23 25 L19 38 Z" fill="white"/>
+                        <path d="M23 22 L27 22 L25 12 Z" fill="url(#ayGrad)"/>
+                    </svg>
+                </div>
+                <span class="logo-text">安盈创卓</span>
+            </a>
+            <ul class="nav-links" id="navLinks">
+                <li><a href="index.html" class="nav-item" data-page="index">首页</a></li>
+                <li><a href="product_totem.html" class="nav-item" data-page="product">企业产品</a></li>
+                <li><a href="serve.html" class="nav-item" data-page="serve">企业服务</a></li>
+                <li><a href="news.html" class="nav-item" data-page="news">新闻中心</a></li>
+                <li><a href="about.html" class="nav-item" data-page="about">关于我们</a></li>
+                <li class="nav-dropdown">
+                    <a href="#" class="nav-item" data-page="contact">联系我们</a>
+                    <div class="nav-dropdown-menu">
+                        <a href="contact.html">线上咨询</a>
+                        <a href="jobs.html">企业招聘</a>
+                    </div>
+                </li>
+            </ul>
+            <button class="mobile-menu-btn" id="mobileMenuBtn" onclick="toggleMobileMenu()">
+                <span></span>
+                <span></span>
+                <span></span>
+            </button>
+        </div>
+    </nav>
+    <script>
+    (function() {
+        var path = window.location.pathname.split('/').pop() || 'index.html';
+        var pageMap = {
+            'index.html': 'index', '': 'index',
+            'product_totem.html': 'product', 'product_portal.html': 'product', 'product_oa.html': 'product',
+            'product_super.html': 'product', 'product_info.html': 'product', 'product_leader.html': 'product',
+            'product_bigdata.html': 'product', 'product_4a.html': 'product',
+            'serve.html': 'serve',
+            'news.html': 'news', 'news_show.html': 'news',
+            'about.html': 'about', 'about_certificate.html': 'about', 'about_member.html': 'about',
+            'contact.html': 'contact', 'jobs.html': 'contact'
+        };
+        var currentPage = pageMap[path];
+        if (currentPage) {
+            document.querySelectorAll('.nav-item').forEach(function(link) {
+                if (link.getAttribute('data-page') === currentPage) link.classList.add('active');
+            });
+        }
+    })();
+    </script>
+
+    <!-- Banner -->
+    <div class="page-banner">
+        <div class="page-banner-content">
+            <h1>联系我们</h1>
+            <p>竭诚为您服务 · 欢迎咨询</p>
+        </div>
+    </div>
+
+    <!-- Content -->
+    <div class="page-content">
+        <div class="container">
+            <div class="contact-section">
+                <div class="contact-map">
+                    <img src="style/images/contact_map.png" alt="公司位置">
+                </div>
+                
+                <div class="contact-info-card">
+                    <h2>联系方式</h2>
+                    
+                    <div class="contact-detail">
+                        <div class="contact-icon-box">
+                            <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
+                                <path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z"/>
+                                <circle cx="12" cy="10" r="3"/>
+                            </svg>
+                        </div>
+                        <div class="contact-text">
+                            <h4>公司地址</h4>
+                            <p>北京市海淀区盈都大厦C座4单元21E</p>
+                        </div>
+                    </div>
+                    
+                    <div class="contact-detail">
+                        <div class="contact-icon-box">
+                            <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
+                                <path d="M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z"/>
+                            </svg>
+                        </div>
+                        <div class="contact-text">
+                            <h4>联系电话</h4>
+                            <p>010-58733188</p>
+                        </div>
+                    </div>
+                    
+                    <div class="contact-detail">
+                        <div class="contact-icon-box">
+                            <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
+                                <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>
+                                <polyline points="22,6 12,13 2,6"/>
+                            </svg>
+                        </div>
+                        <div class="contact-text">
+                            <h4>电子邮箱</h4>
+                            <p>support@iwintrue.com</p>
+                        </div>
+                    </div>
+                    
+                    <div class="contact-detail">
+                        <div class="contact-icon-box">
+                            <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
+                                <circle cx="12" cy="12" r="10"/>
+                                <polyline points="12 6 12 12 16 14"/>
+                            </svg>
+                        </div>
+                        <div class="contact-text">
+                            <h4>工作时间</h4>
+                            <p>周一至周五 09:00-18:00</p>
+                        </div>
+                    </div>
+                </div>
+                
+                <div class="contact-form-card">
+                    <h2>在线留言</h2>
+                    <div class="form-row">
+                        <input type="text" class="form-input" id="name" placeholder="联系人 *">
+                        <input type="text" class="form-input" id="phone" placeholder="电话">
+                        <input type="email" class="form-input" id="email" placeholder="邮箱">
+                    </div>
+                    <textarea class="form-textarea" id="content" placeholder="请详细描述您的需求 *"></textarea>
+                    <div id="formMessage"></div>
+                    <button class="form-submit" onclick="save()">
+                        提交咨询
+                        <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
+                            <path d="M3.333 8h9.334M9.667 4l4 4-4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
+                        </svg>
+                    </button>
+                </div>
+            </div>
+        </div>
+    </div>
+
+    <!-- Footer -->
+    <footer class="footer">
+        <div class="container">
+            <div class="footer-grid">
+                <div class="footer-brand">
+                    <a href="index.html" class="logo">
+                        <div class="logo-icon">
+                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="40" height="40">
+                        <defs>
+                            <linearGradient id="iconGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+                                <stop offset="0%" style="stop-color:#0066cc"/>
+                                <stop offset="100%" style="stop-color:#0088ff"/>
+                            </linearGradient>
+                        </defs>
+                        <circle cx="25" cy="25" r="24" fill="url(#iconGrad)"/>
+                        <path d="M25 10 L37 36 L25 29 L13 36 Z" fill="white"/>
+                        <circle cx="25" cy="23" r="3" fill="url(#iconGrad)"/>
+                    </svg>
+                </div>
+                        <span class="logo-text" style="color: white;">安盈创卓</span>
+                    </a>
+                    <p>以创新为核心竞争力,低调务实,价值至上。致力于为客户提供超越预期的信息化服务。</p>
+                </div>
+                
+                <div class="footer-column">
+                    <h4 class="footer-title">产品服务</h4>
+                    <ul class="footer-links">
+                        <li><a href="product_totem.html">图腾平台</a></li>
+                        <li><a href="product_oa.html">协同办公</a></li>
+                        <li><a href="product_bigdata.html">大数据产品</a></li>
+                        <li><a href="product_portal.html">企业门户</a></li>
+                    </ul>
+                </div>
+                
+                <div class="footer-column">
+                    <h4 class="footer-title">关于公司</h4>
+                    <ul class="footer-links">
+                        <li><a href="about.html">公司简介</a></li>
+                        <li><a href="about_certificate.html">资质荣誉</a></li>
+                        <li><a href="about_member.html">团队成员</a></li>
+                        <li><a href="news.html">新闻动态</a></li>
+                    </ul>
+                </div>
+                
+                <div class="footer-column footer-contact">
+                    <h4 class="footer-title">联系我们</h4>
+                    <p>电话:010-58733188</p>
+                    <p>地址:北京市海淀区盈都大厦C座4单元21E</p>
+                    <p>邮箱:contact@iwintrue.com</p>
+                </div>
+            </div>
+            
+            <div class="footer-bottom">
+                <p>Copyright © 2015-2025 安盈创卓 京ICP备14061870号-1</p>
+                <div>
+                    <a href="https://beian.miit.gov.cn" target="_blank">备案查询</a>
+                </div>
+            </div>
+        </div>
+    </footer>
+
+    <script>
+        function save() {
+            const messageEl = document.getElementById('formMessage');
+            messageEl.innerHTML = '';
+            
+            const name = document.getElementById('name').value;
+            const phone = document.getElementById('phone').value;
+            const email = document.getElementById('email').value;
+            const content = document.getElementById('content').value;
+            
+            if (!name) {
+                messageEl.innerHTML = '<div class="form-error">请输入联系人!</div>';
+                document.getElementById('name').focus();
+                return;
+            }
+            
+            if (!phone && !email) {
+                messageEl.innerHTML = '<div class="form-error">电话和邮箱至少输入一个!</div>';
+                return;
+            }
+            
+            if (!content) {
+                messageEl.innerHTML = '<div class="form-error">请输入要咨询的内容!</div>';
+                document.getElementById('content').focus();
+                return;
+            }
+            
+            // Simulate form submission
+            messageEl.innerHTML = '<div class="form-success">提交成功!</div>';
+            
+            // Clear form
+            document.getElementById('name').value = '';
+            document.getElementById('phone').value = '';
+            document.getElementById('email').value = '';
+            document.getElementById('content').value = '';
+        }
+
+        // Navigation scroll effect
+        window.addEventListener('scroll', function() {
+            const nav = document.getElementById('nav');
+            if (window.scrollY > 50) {
+                nav.classList.add('scrolled');
+            } else {
+                nav.classList.remove('scrolled');
+            }
+        });
+
+        // Mobile menu toggle
+        function toggleMobileMenu() {
+            const navLinks = document.getElementById('navLinks');
+            const menuBtn = document.getElementById('mobileMenuBtn');
+            navLinks.classList.toggle('active');
+            menuBtn.classList.toggle('active');
+        }
+
+        document.querySelectorAll('.nav-dropdown > a').forEach(function(dropdown) {
+            dropdown.addEventListener('click', function(e) {
+                if (window.innerWidth <= 768) {
+                    e.preventDefault();
+                    this.parentElement.classList.toggle('active');
+                }
+            });
+        });
+
+        document.addEventListener('click', function(e) {
+            const navLinks = document.getElementById('navLinks');
+            const menuBtn = document.getElementById('mobileMenuBtn');
+            if (window.innerWidth <= 768 && navLinks.classList.contains('active')) {
+                if (!navLinks.contains(e.target) && !menuBtn.contains(e.target)) {
+                    navLinks.classList.remove('active');
+                    menuBtn.classList.remove('active');
+                }
+            }
+        });
+    </script>
+</body>
+</html>

+ 369 - 0
css/css.css

@@ -0,0 +1,369 @@
+@charset "utf-8";
+html {
+	height: 100%;
+}
+body {
+	height: 100%;
+	margin: 0;
+	font-family: "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif;
+	font-size: 14px;
+	line-height: 20px;
+	color: #333333;
+	background-color: #ffffff;
+}
+h1, h2, h3, h4, h5, h6 {
+	font-weight: 400;
+	margin: 0;
+}
+a {
+	text-decoration: none;
+	cursor: pointer;
+}
+p {
+	margin: 0;
+	overflow: hidden;
+	text-overflow: ellipsis;
+}
+ul, li {
+	margin: 0;
+	padding: 0;
+}
+.triangle {
+	display: block;
+	width: 0;
+	height: 0;
+	border-left: solid 6px #003a62;
+	border-top: solid 6px transparent;
+	border-bottom: solid 6px transparent;
+	vertical-align: middle;
+}
+.clearfix {
+ *zoom: 1;
+}
+.clearfix:before, .clearfix:after {
+	display: table;
+	line-height: 0;
+	content: "";
+}
+.clearfix:after {
+	clear: both;
+	font-size: 0;
+}
+.header {
+	width: 100%;
+	height: 83px;
+	background-color: #f7ad16;
+	border-bottom: 2px solid #000;
+}
+.header_wrap {
+	width: 80%;
+	height: 83px;
+	margin: 0 auto;
+	position: relative;
+}
+.header span {
+	display: block;
+}
+.header .logo {
+	box-sizing: border-box;
+	padding: 10px 0 0 0px;
+	float: left;
+}
+.header ul {
+	min-width: 286px;
+	list-style: none;
+}
+.header .link {
+	position: absolute;
+	bottom: 0;
+	right: 0;
+}
+.header .link ul li {
+	cursor: pointer;
+	float: left;
+	padding: 6px 12px;
+	color: #000;
+	margin: 0 0 0 5px;
+}
+.header .link ul li.active {
+	color: #fff;
+	background-color: #003a62;
+}
+.header .link ul li:hover {
+	color: #fff;
+	background-color: #003a62;
+	padding: 6px 12px;
+}
+.nav {
+	background-color: #f7ad16;
+	width: 100%;
+	height: 80px;
+}
+.nav .active {
+	background-color: #f48a02;
+	color: #fff;
+}
+.nav ul {
+	list-style: none;
+	width: 80%;
+	margin: 0 auto;
+}
+.nav ul li {
+	font-size: 16px;
+	display: block;
+	float: left;
+	width: 16.6%;
+	height: 80px;
+	text-align: center;
+	color: #000;
+	line-height: 80px;
+	font-weight: 700;
+	letter-spacing: 2px;
+}
+.nav ul li:hover {
+	background-color: #f48a02;
+	cursor: pointer;
+	color: #fff;
+} 
+.banner {
+	height: 100%;
+	background-color: #f7ad16;
+	background-image: url(../img/mymax.jpg);
+	background-repeat: no-repeat;
+	background-position: center 80px;
+	background-size: cover;
+	border-bottom: 2px solid #000;
+}
+.banner .imgspan {
+	height: 100%;
+	position: relative;
+	display: block;
+	width: 80%;
+	margin: 0 auto;
+}
+.banner span img {
+	position: absolute;
+	left: 0;
+	top: 28%
+}
+@media (min-width:1400px) and (max-width:1199px) {
+}
+/*.cont {
+	position: absolute;
+	bottom: 20px;
+	width:100%;
+}
+.cont_wrap {
+	width: 80%;
+	margin: 0 auto;
+	clear:both;
+}*/
+.cont {
+	padding: 40px 0 0 0;
+	background-color: #f7ad16;
+}
+.cont_wrap {
+	width: 80%;
+	margin: 0 auto;
+	clear: both;
+}
+.pack {
+	background-color: #003a62;
+	filter: alpha(opacity=90);
+	-moz-opacity: 0.9;
+	-khtml-opacity: 0.9;
+	opacity: 0.9;
+	color: #fff;
+	position: relative;
+	height: 220px;
+	float: left;
+	box-sizing: border-box;
+	margin-top: -88px;
+}
+.pack_left {
+	width: 32%;
+	padding: 20px;
+}
+.pack_mid {
+	width: 36%;
+	padding: 20px;
+	border-left: 1px solid #f7ad16;
+	border-right: 1px solid #f7ad16;
+}
+.pack_right {
+	width: 32%;
+	padding: 20px;
+}
+.lead {
+	display: block;
+	font-weight: 700;
+	margin: 0 0 10px;
+	color: #f7ad16;
+	padding-bottom: 10px;
+	border-bottom: 1px solid #f7ad16;
+}
+.lead img {
+	display: block;
+	float: left;
+}
+.lead p {
+	display: block;
+	padding: 0 0 0 30px;
+	line-height: 17px;
+}
+.more {
+	display: block;
+	position: absolute;
+	right: 20px;
+	bottom: 20px;
+	width: 100%;
+}
+.more p {
+	color: #f7ad16;
+	float: right;
+	padding-right: 8px;
+}
+button {
+	float: right;
+	width: 20px;
+	height: 20px;
+	border-radius: 50px;
+	background-color: #f7ad16;
+	border: none;
+	cursor: pointer;
+	color: #fff;
+}
+.pack_river {
+	background-color: #f7ad16;
+	padding: 40px 0 0 0;
+	width: 100%;
+}
+.pack_river .cont_wrap {
+	border-bottom: dashed 1px #000;
+	padding-bottom: 40px;
+}
+.col-left {
+	width: 189px;
+	float: left;
+}
+.col-right {
+	color: #000;
+	padding-left: 189px;
+}
+.button_red {
+	filter: alpha(opacity=90);
+	-moz-opacity: 0.9;
+	-khtml-opacity: 0.9;
+	opacity: 0.9;
+	display: block;
+	background-color: #003a62;
+	width: 169px;
+	height: 60px;
+	line-height: 60px;
+	text-align: center;
+	color: #f7ad16;
+	font-weight: 700;
+	font-size: 24px;
+	letter-spacing: 2px;
+}
+.footer {
+	background-color: #f7ad16;
+	padding: 40px 0;
+	border-bottom: 2px solid #000;
+}
+.footer ul {
+	height: 22px;
+	line-height: 22px;
+	display: block;
+	width: 100%;
+	clear: both;
+	list-style: none;
+	margin-bottom: 20px;
+}
+.footer ul li {
+	padding: 0 6px;
+	float: left;
+	text-align: right;
+	color: #000;
+}
+.footer span {
+	width: 33.333333%;
+	display: block;
+	float: left;
+	color: #000;
+}
+.footer span img {
+	display: block;
+	float: left;
+}
+.footer span p {
+	display: block;
+	padding: 0 0 0 20px;
+	line-height: 17px;
+}
+/*-----------------------------以下是二级页面样式-----------------------------------------*/
+.sencond_cont {
+}
+.sencond_cont .cont_wrap {
+	position: relative;
+	padding: 40px 0;
+}
+.SenC_box {
+	padding-left: 240px;
+	width: 100%;
+	box-sizing: border-box;
+	height: 100%;
+}
+.SenC_container {
+	background-color: #fff;
+	padding: 0 5px;
+}
+.sencond_cont .menu {
+	float: left;
+	background-color: #fff;
+}
+.second_list {
+	color: #000;
+	list-style: none;
+}
+.second_list li {
+	min-width: 180px;
+	font-weight: 700;
+	padding: 3px 15px;
+	letter-spacing: 1px;
+}
+.second_list li span {
+	padding: 0 5px;
+	display: block;
+	line-height: 61px;
+	border-bottom: 1px dashed #a76e14;
+}
+.second_list li:hover {
+	background-color: #f7ad16;
+}
+.second_list li:last-child span {
+	border-bottom: none;
+}
+.second_list .active {
+	background-color: #f7ad16;
+	}
+.SenC_header {
+	border-bottom: 1px solid #e4e4e4;
+}
+.SenC_lead {
+	font-size: 18px;
+	color: #000;
+	font-weight: 700;
+	letter-spacing: 2px;
+	line-height: 75px;
+	text-align: center;
+}
+.SenC_header small span {
+	padding: 0 12px;
+}
+.SenC_body {
+	text-indent:2em;
+	font-size: 12px;
+	color: #000;
+	text-align:left;
+}

+ 122 - 0
css/forms.css

@@ -0,0 +1,122 @@
+/* --- Envie Para um Amigo/Send Mail --- */
+
+#sendmail { padding: 12px; }
+#sendmail h1 { margin: 0 0 15px 0; }
+
+#sendmail p a { color:#046E50 }
+#sendmail p a:hover { text-decoration:none }
+
+#sendmail form#sendMail {
+	font-size:12px;
+	color:#999;
+	width:300px;
+}
+
+#sendmail .container {
+	float:left;
+	margin-bottom:10px
+}
+
+#sendmail .container label { 
+	width:95px;
+	text-align:left;
+	float:left
+}
+
+#sendmail .container input,
+#sendmail .container textarea {
+	border:1px solid #999;
+	width:180px;
+	padding:2px;
+	font-size:12px;
+	color:#999
+}
+
+#sendmail .containerButtons {
+	float: left;
+	clear: both;
+}
+#sendmail .containerButtons button {
+	background:#FFF;
+	border:1px solid #999;
+	color:#999
+}
+#sendmail .containerButtons .enviar {
+	float: left;
+	margin: 0 0 0 95px;
+}
+
+/* --- Fale com RI/Fale Conosco --- */
+
+.faleri {
+	margin: 20px 0 20px 0px;
+	width: 350px;
+	overflow: hidden;
+}
+
+.faleri .obrigatorio {
+	color: red!important;
+	font-size: 11px!important;
+	padding: 0 0 10px 0!important;
+	margin: 0!important;
+	text-align: left;
+	font-style: italic;
+}
+
+.faleri label {
+	display:block;
+	margin-bottom:6px;
+}
+
+.faleri label span.textoform {
+	display:block;
+	float:left;
+	font-size:11px;
+	text-align:right;
+	width: 100px;
+	margin: 0 10px 0 0;
+	color: #AD2623;
+	font-weight: bold;
+}
+
+.faleri label input,
+.faleri label textarea {
+	color:#666;
+	font-size:12px;
+	padding:2px;
+	border:1px solid #999;
+	width:217px;
+	background-color: transparent;
+}
+
+.faleri label textarea {
+	overflow:auto;
+}
+
+.faleri .divbotoes {
+	clear: both;
+	margin: 0 0 0 110px;
+}
+
+.faleri .botao {
+	border: 1px solid green;
+	color: #FFF;
+	background-color: #00BE5E;
+	font-size: 11px;
+	width: auto;
+	overflow: visible;
+	padding: 2px 4px;
+	cursor: pointer;
+	text-align: center;
+	float: left;
+}
+
+.divbotoes .enviar {}
+
+	#pt .divbotoes .enviar { }
+	#en .divbotoes .enviar { }
+	
+	#pt .divbotoes .limpar { }
+	#en .divbotoes .limpar { }
+
+.divbotoes .limpar { margin: 0 0 0 10px; }

+ 623 - 0
css/main.css

@@ -0,0 +1,623 @@
+/* GERAL */
+body { font-family: Arial, Helvetica, sans-serif; }
+
+#site { background:url(../images/bg_site.gif) repeat-x 0 0; }
+/*body {
+	font-family: Arial, Helvetica, sans-serif;
+	background:url(../images/bg_site.gif) repeat-x 0 0;
+}*/
+* {
+	margin: 0;
+	padding: 0;
+}
+.clear {
+	clear: both;
+	height: 0px;
+	line-height: 0px;
+	font-size: 0px;
+	overlfow: hidden;
+}
+.ancora {
+	height: 1px;
+	line-height: 1px;
+	font-size: 1px;
+	float: left;
+}
+
+/* FILE LIST (CONTENT) */
+#periodo {
+	clear: both;
+	background-color: red;
+}
+	#periodo h4 {
+		float: left;
+		color: #000;
+		font-size: 0.94em;
+		margin: 0 0 10px 0;
+		font-weight: bold;
+	}
+	#periodo #lano {
+		float: right;
+		margin: 0 0 10px 0;
+	}
+	#periodo #lano .campo {
+		font-size: 0.94em;
+		color: #000;
+		font-weight: bold;
+		vertical-align: middle;
+	}
+	#periodo #lano select {
+		width: 134px;
+		font-size: 0.75em;
+		color: #000;
+
+	}
+
+.arquivos { clear: both; }
+
+	.arquivos h3 {
+		color: #000;
+		font-size: 0.94em;
+		font-weight: bold;
+		margin: 0 0 12px 0;
+	}
+
+	.arquivos table {
+		margin: 0 0 15px 0;
+	}
+	.arquivos td {
+		padding-top: 2px;
+		padding-bottom: 5px;
+	}
+	.arquivos .data,
+	.arquivos .link,
+	.arquivos .tamanho {
+		color: #000;
+		font-size: 0.69em;
+	}
+	.arquivos .data a,
+	.arquivos .link a,
+	.arquivos .tamanho a {
+		font-size: 1em;
+		color: #666!important;
+		text-decoration: none;
+	}
+		.arquivos a:hover {
+			text-decoration: underline!important;
+		}
+	.arquivos .icone {
+		width: 58px;
+		vertical-align: top;
+	}
+	.arquivos .data {
+		width: 83px;
+		padding-left: 20px;
+		background: url(../images/ico_bullet1.gif) no-repeat 0 7px;
+		vertical-align: top;
+	}
+	.arquivos .link {
+		vertical-align: top;
+	}
+	.arquivos .link a:hover {
+		text-decoration: none;
+	}
+	.arquivos .tamanho {
+		width: 100px;
+		text-align: right;
+	}
+
+
+/* ATUALIZACAO */
+
+.update {
+	margin: 0 0 10px 0;
+}
+	.update p {
+		font-size: 11px;
+		color: #7AAC0C;
+	}
+	a.goTop {
+		display: block;
+		text-indent: -9999px;
+		overflow: hidden;
+		float: right;
+		height: 19px;
+		line-height: 19px;
+		background: no-repeat 0 0;
+	}
+	#pt a.goTop { background-image: url(../images/btn_topo_pt.gif); width: 44px; }
+	#en a.goTop { background-image: url(../images/btn_topo_en.gif); width: 38px; }
+
+	.update .goTop:hover {}
+
+
+/*TABELAS*/
+.tabela {}
+
+.tabelatt,
+.tabelatx {
+	padding: 3px 2px 3px 6px;
+}
+
+.tabelatt {
+	font-size: 12px;
+	font-weight: bold;
+	color: #fff;
+	background-color: #026034; /* fundo do cabecalho */
+}
+
+.tabelatx {
+	font-size: 12px;
+	color: #828282;}
+
+.tabelatx a {
+	text-decoration: none;
+	color: #828282;
+}
+
+.tabelatx a:hover {
+	text-decoration: underline;
+}
+
+.zebra {
+	background-color: #F7F6F8;
+} /* cor da lista */
+
+
+
+/* CONTENT */
+#conteudo {
+	width: 959px;
+	margin: 22px auto 20px auto;
+}
+#conteudo #breadcrumb,
+#conteudo #breadcrumb a {
+	font-size: 11px;
+	color: #004698;
+	text-decoration: none;
+	margin-bottom: 15px;
+}
+	#conteudo #breadcrumb a {
+		text-decoration: underline;
+	}
+#conteudo .header {
+	position: relative;
+	padding: 0 0 0 23px;
+}
+
+#conteudo .header h2 {
+	margin: 0 0 12px 0;
+}
+
+#conteudo #sidemenu {
+	float: right;
+	background-color: #F3F3F3;
+	width: 165px;
+	padding: 14px 18px 14px 21px;
+	margin-top: -40px;
+}
+	#sidemenu h2 {
+		height: 21px;
+		width: 165px;
+		display: block;
+		text-indent: -9999px;
+		overflow: hidden;
+		color: #004798;
+		font-size: 15px;
+		background-position: 0 0;
+		background-repeat: no-repeat;
+		margin: 0 0 10px 0;
+	}
+	#sidemenu li {
+		list-style: none;
+		font-size: 0.75em;
+		line-height: 1.15em;
+		float: left;
+		width: 165px;
+	}
+	#sidemenu li,
+	#sidemenu li a {
+		color: #ED7700;
+		font-size: 0.75em;
+		text-decoration: none;
+	}
+	#sidemenu li a {
+		display: block;
+		font-size: 1em;
+		margin: 0 0 8px 0;
+		padding: 0 0 0 15px;
+	}
+		#sidemenu li a:hover {
+			text-decoration: underline;
+		}
+
+	#sidemenu a:hover,
+	#sidemenu .active a {
+		background: url(../images/ico_bullet1.gif) no-repeat 1px 3px;
+	}
+
+	#en #sidemenu h2.menu1 { background-image: url(../images/menu/sidemenu_1_en.gif); }
+	#en #sidemenu h2.menu2 { background-image: url(../images/menu/sidemenu_2_en.gif); }
+	#en #sidemenu h2.menu3 { background-image: url(../images/menu/sidemenu_3_en.gif); }
+	#en #sidemenu h2.menu4 { background-image: url(../images/menu/sidemenu_4_en.gif); }
+	#en #sidemenu h2.menu5 { background-image: url(../images/menu/sidemenu_5_en.gif); }
+	#en #sidemenu h2.menu6 { background-image: url(../images/menu/sidemenu_6_en.gif); }
+	#en #sidemenu h2.menu7 { background-image: url(../images/menu/sidemenu_7_en.gif); }
+	#en #sidemenu h2.menu8 { background-image: url(../images/menu/sidemenu_8_en.gif); }
+	#en #sidemenu h2.menu9 { background-image: url(../images/menu/sidemenu_9_en.gif); }
+	#en #sidemenu h2.menu10 { background-image: url(../images/menu/sidemenu_10_en.gif); }
+	#en #sidemenu h2.menu11 { background-image: url(../images/menu/sidemenu_11_en.gif); }
+	#en #sidemenu h2.menu12 { background-image: url(../images/menu/sidemenu_12_en.gif); }
+
+.float_d {
+	float: right;
+	margin: 0 0 15px 45px;
+	display: inline; /* IE double-margin bug */
+}
+.float_e {
+	float: left;
+	margin: 0 45px 15px 0;
+	display: inline; /* IE double-margin bug */
+}
+
+#texto {
+	float: left;
+	width: 700px;
+	font-size: 1em;
+	margin: 0 0 0 23px;
+	display: inline;
+}
+#texto a {
+	color: #1A75BB;
+}
+	#texto a:hover {
+		text-decoration: none;
+	}
+#texto p,
+#texto li {
+	font-size: 0.75em;
+	line-height: 1.31em;
+	color: #7F7F7F;
+	line-height: 16px;
+	margin: 0 0 17px 0;
+}
+#texto ul,
+#texto ol {
+	margin: 0 0 0 15px;
+}
+	#texto ul ul,
+	#texto ul ol,
+	#texto ol ol,
+	#texto ol ul {
+		margin-top: 12px;
+	}
+#texto li {
+	list-style-position: oustide;
+}
+	#texto li li {
+		font-size: 1em;
+	}
+
+
+
+#siteMap {
+	margin: 0 0 20px 0;
+}
+	#siteMap li {
+		background-image: url(../images/ico_bullet1.gif);
+	}
+	#siteMap li,
+	#siteMap li a {
+		font-weight: bold;
+		color: #666!important;
+	}
+	#siteMap ul {
+		margin: 10px 0 0 0;
+	}
+		#siteMap ul li {
+			background-image: url(../images/ico_bullet2.gif);
+		}
+		#siteMap ul li,
+		#siteMap ul li a {
+			font-weight: normal;
+			color: #1A75BB!important;
+		}
+
+/* HEADER */
+#header {
+	width: 959px;
+	height: 114px;
+	margin: 0 auto;
+	position: relative;
+	z-index: 1;
+	background: url(../images/bg_menu.png) no-repeat 0 bottom;
+}
+	#header h2 { display: none; }
+
+	#logo {
+	display: block;
+	text-indent: -9999px;
+	overflow: hidden;
+	background: url("../images/logo.png") no-repeat scroll 0 0 / 100% 100% rgba(0, 0, 0, 0);
+	width: 100px;
+	height: 44px;
+	position: absolute;
+	left: 20px;
+	top: 23px;
+	background-image: url(../images/logo.png);
+	}
+	#header .logos {
+		display: block;
+		text-indent: -9999px;
+		background: url(../images/img_louis_logos.gif) no-repeat 0 0;
+		width: 198px;
+		height: 23px;
+		position: absolute;
+		top: 26px;
+		right: 0;
+	}
+
+#navbar {
+	position: absolute;
+	top: 25px;
+	right: -7px;
+	z-index: 2;
+}
+#navbar li {
+	list-style: none;
+	float: left;
+	height: 11px;
+	line-height: 11px;
+	border-left: 1px solid #004698;
+	font-size: 12px;
+	margin: 0;
+	padding: 0 7px;
+}
+#navbar .first {
+	border: 0!important;
+}
+#navbar li a {
+	float: left;
+	height: 12px;
+	line-height: 12px;
+	text-decoration: none;
+}
+	#navbar a:hover {
+		text-decoration: bottom;
+	}
+
+#navbar .links {
+	float: right;
+	position: relative;
+	vertical-align: bottom;
+}
+#navbar .links li {
+	border-left: 1px solid #004698;
+}
+#navbar .links a {
+	color: #004698;
+}
+
+#navbar .languages {
+	clear: both;
+	margin: 10px 0 0 0;
+	float: right;
+	position: relative;
+}
+#navbar .languages li {
+	border-left: 1px solid #ED7700;
+}
+#navbar .languages a {
+	color: #ED7700;
+}
+
+
+/* FLASH */
+#flash {
+	width: 959px;
+	margin: 0 auto;
+}
+	.content #flash {}
+
+/* FOOTER */
+#footer {
+	margin: 0 0 0 0;
+	background-color: #F3F3F3;
+	height: 231px;
+	position: relative;
+}
+	.wrapper {
+		width: 959px;
+		height: 231px;
+		margin: 0 auto;
+		position: relative;
+		background: url(../images/bg_footer.gif) no-repeat 0 0;
+	}
+	#footer #copyright {
+		position: absolute;
+		left: 4px;
+		bottom: 13px;
+		font-size: 11px;
+		color: #004798;
+	}
+	#footer .links {
+		position: absolute;
+		bottom: 13px;
+		right: -5px;
+	}
+	#footer .links li {
+		float: left;
+		list-style: none;
+		border-left: 1px solid #004798;
+		height: 11px;
+	}
+	#footer .links .first {
+		border: 0;
+	}
+	#footer .links a {
+		float: left;
+		font-size: 11px;
+		color: #004798;
+		margin: 0 7px;
+		display: inline;
+		height: 10px;
+		line-height: 11px;
+		text-decoration: none;
+	}
+		#footer .links a:hover {
+			text-decoration: underline;
+		}
+
+	#footer .box {
+		background-color: #D8D8D8;
+		width: 300px;
+		height: 172px;
+		float: left;
+		display: inline;
+		position: relative;
+		margin-top: 19px;
+	}
+	#footer .box2 {
+	background-color: #D8D8D8;
+	width: 225px;
+	height: 154px;
+	float: left;
+	display: inline;
+	position: relative;
+	margin-top: 19px;
+	text-align: center;
+	}
+		#footer .box2 div {
+			font-size: 11px;
+			color: #666;
+			width: 225px;
+			margin: -10px 0 0 0px;
+			display: block;
+		}
+		#footer .box2 p {
+			font-size: 11px;
+			color: #666;
+			width: 225px;
+			margin: 0px 0 0 0px;
+			display: block;
+		}
+		#footer .box p {
+			font-size: 11px;
+			color: #666;
+			width: 270px;
+			margin: 0 0 0 20px;
+			display: block;
+		}
+		#footer .box h2 {
+			margin: 5px 0 0 10px;
+			display: block;
+			text-indent: -9999px;
+			width: 201px;
+			height: 50px;
+		}
+		#footer .box .readmore {
+			display: block;
+			float: right;
+			height: 28px;
+			line-height: 28px;
+			padding: 0 38px 0 0;
+			background: url(../images/ico_readmore.gif) no-repeat right 0;
+			font-size: 11px;
+			color: #ED7700;
+			text-decoration: none;
+			text-transform: uppercase;
+			position: absolute;
+			right: 14px;
+			bottom: 14px;
+		}
+			#footer .box a.readmore:hover {
+				text-decoration: underline;
+			}
+	#footer #about {
+		margin-right: 19px;
+	}
+	#footer #about1 {
+		margin-right: 19px;
+	}
+	#en #footer #about h2 {
+		background: url(../images/tit_about_en.png) no-repeat 0 0;
+	}
+	#en #footer #about1 h2 {
+		background: url(../images/tit_about_cn1.png) no-repeat 0 0;
+	}
+	#footer #eas {
+		margin-right: 20px;
+	}
+		#en #footer #eas h2 {
+			background: url(../images/tit_eas_en.png) no-repeat 0 0;
+		}
+	#footer #fis {
+		margin-right: 20px;
+	}
+		#en #footer #fis h2 {
+			background: url(../images/tit_fis_en.png) no-repeat 0 0;
+		}
+	#footer #new {
+		margin-right: 0;
+	}
+		#en #footer #new h2 {
+			background: url(../images/tit_new_en.png) no-repeat 0 0;
+		}
+
+/* FOOTER2 */
+#footer2 {
+	margin: 0 0 0 0;
+	background-color: #F3F3F3;
+	height: 40px;
+	position: relative;
+}
+	.wrapper2 {
+		width: 959px;
+		height: 40px;
+		margin: 0 auto;
+		position: relative;
+		background: url(../images/bg_footer.gif) no-repeat 0 0;
+	}
+	#footer2 #copyright2 {
+		position: absolute;
+		left: 4px;
+		bottom: 13px;
+		font-size: 11px;
+		color: #004798;
+	}
+	#footer2 .links {
+		position: absolute;
+		bottom: 13px;
+		right: -5px;
+	}
+	#footer2 .links li {
+		float: left;
+		list-style: none;
+		border-left: 1px solid #004798;
+		height: 11px;
+	}
+	#footer2 .links .first {
+		border: 0;
+	}
+	#footer2 .links a {
+		float: left;
+		font-size: 11px;
+		color: #004798;
+		margin: 0 7px;
+		display: inline;
+		height: 10px;
+		line-height: 11px;
+		text-decoration: none;
+	}
+		#footer2 .links a:hover {
+			text-decoration: underline;
+		}
+
+
+
+
+.pagetitle {
+	font-family: Arial, Helvetica, sans-serif;
+	font-size: 24px;
+	color: #EE7700;
+}

+ 93 - 0
css/menu.css

@@ -0,0 +1,93 @@
+/* Menu */
+#menu {
+	width:959px;
+	height:32px;
+	z-index:1;
+	position:absolute;
+	left: 0;
+	bottom: 0;
+}
+
+#menu ul li {
+	float:left;
+	display:inline;
+	position:relative;
+	width:auto;
+}
+
+#menu .link {
+	display: block;
+	text-indent: -9999px;
+	overflow: hidden;
+	height: 32px;
+}
+		
+		#menu ul li a:hover, #menu ul li a.active { background-position:left -42px }
+				
+			#btn_menu5 ul {
+				left:-60px !important;
+			}
+			
+			#menu ul ul {
+				display:none;
+				left:10px;
+				top:32px;
+				position:absolute;
+				background:#F3F3F3;
+				font-size:12px;
+				padding: 15px 15px 5px 15px;
+			}
+			
+				#menu ul ul li {
+					width:120px;
+					margin: 0 0 6px 0;
+					background:url(../images/bullet_submenu.gif) no-repeat scroll 4px 9px;
+				}
+				
+					#menu ul ul li a {
+						background:none;
+						color:#EC7700;
+						font-weight:normal;
+						height:auto;
+						text-indent:0;
+						text-decoration:none;
+						display: block;
+					}
+					
+					#menu ul ul li.first { border-top:none }
+					
+					#menu ul ul li a:hover,
+					#menu ul ul li a.active {
+						text-decoration: underline;
+					}
+					
+						#menu ul ul ul {
+							border:1px solid #999;
+							border-bottom:none;
+							left:150px;
+							top:0
+						}
+						
+							#menu ul ul ul li {
+								border-bottom:1px solid #999;
+								border-top:none;
+								height:27px;
+								line-height:27px
+							}
+
+								#menu ul ul ul.terceiroMenu3 li { width:160px }
+							
+								#menu ul ul ul a {
+									background:#D7D7D7;
+									color:#000
+								}
+								
+#en #menu #menu1 .link { width: 104px; background:url(../images/about.png) no-repeat scroll center center; }
+#en #menu #menu2 .link { width: 80px; background:url(../images/product.png) no-repeat scroll center center; }
+#en #menu #menu3 .link { width: 78px; background:url(../images/service.png) no-repeat scroll center center; }
+#en #menu #menu4 .link { width: 80px; background:url(../images/solutions.png) no-repeat scroll center center; }
+#en #menu #menu5 .link { width: 86px; background:url(../images/newsroom.png) no-repeat scroll center center; }
+#en #menu #menu6 .link { width: 77px; background:url(../images/menu_6_en.gif) no-repeat scroll center center; }
+#en #menu #menu7 .link { width: 78px; background:url(../images/menu_7_en.gif) no-repeat scroll center center; }
+#en #menu #menu8 .link { width: 78px; background:url(../images/menu_8_en.gif) no-repeat scroll center center; }
+#en #menu #menu9 .link { width: 82px; background:url(../images/contect.png) no-repeat scroll center center; }

+ 45 - 0
footer.html

@@ -0,0 +1,45 @@
+			<div class="foot_banner">
+				<img src="style/images/foot_banner.png">
+			</div>
+			<div class="foot_link">
+				<ul class="foot_link_ul">
+					<li class="foot_link_li">友情链接:</li>
+					<li class="foot_link_li"><a class="foot_link_a" target="blank" href="https://code.iwintrue.com/code/">图腾社区</a></li>
+					<li class="foot_link_li"><a class="foot_link_a" href="http://www.iwintrue.com/admin" target="blank">内部管理</a></li>
+					<div class="jo_clear"></div>
+				</ul>
+			</div>
+			<div class="foot_map">
+				<div class="foot_map_addr">
+					<div class="foot_addr_email">电话:010-58733188</div>
+					<div class="foot_addr_addr">地址:北京市海淀区盈都大厦C座4单元21E</div>
+				</div>
+				<div class="foot_map_nav">
+					<ul class="foot_nav_ul">
+						<li class="foot_nav_li"><a class="foot_nav_a" href="product_totem.html">企业产品</a></li>
+						<li class="foot_nav_li"><a class="foot_nav_a" href="about.html">关于我们</a></li>
+						<li class="foot_nav_li"><a class="foot_nav_a" href="serve.html">企业服务</a></li>
+						<li class="foot_nav_li"><a class="foot_nav_a" href="contact.html">联系我们</a></li>
+						<li class="foot_nav_li"><a class="foot_nav_a" href="news.html">新闻中心</a></li>
+						<li class="foot_nav_li"><a class="foot_nav_a" href="jobs.html">企业招聘</a></li>
+						<div class="jo_clear"></div>
+					</ul>
+				</div>
+				<div class="foot_map_chat">
+					<div class="foot_chat_tit">社交平台</div>
+					<div class="foot_chat_lin">
+						<ul class="foot_lin_ul">
+							<li class="foot_lin_li"><a class="foot_lin_a foot_wechat"></a></li>
+							<li class="foot_lin_li"><a class="foot_lin_a foot_qq"></a></li>
+							<li class="foot_lin_li"><a class="foot_lin_a foot_weibo"></a></li>
+							<div class="jo_clear"></div>
+						</ul>
+					</div>
+				</div>
+				<div class="foot_map_logo"><a class="logoA" href="index.html"><img class="logoImg" src="style/images/index_logo.png"></a></div>
+				<div class="jo_clear"></div>
+			</div>
+			<!--<div class="foot_copyright">Copyright@2015-2021 iwinture 京ICP备14061870号</div>-->
+                        <a class="foot_nav_a" href="https://beian.miit.gov.cn" target="_blank" style="display: block; text-align: center;"><span class="foot_copyright">Copyright&nbsp;©&nbsp;2015-2025&nbsp;安盈创卓&nbsp;京ICP备14061870号-1</span></a>
+		</div>
+

+ 3 - 0
ggk/.gitignore

@@ -0,0 +1,3 @@
+test/uploads/wPaint-*
+node_modules/
+npm-debug.txt

+ 88 - 0
ggk/README.md

@@ -0,0 +1,88 @@
+# wScratchPad.js
+
+A jQuery plugin to mimic a scratch card or pad behaviour.  Allowing you to scratch off an overlay as either a color or image.
+
+* [View the wScratchPad demo](http://wscratchpad.websanova.com)
+* [Download the lastest version of wScratchPad](https://github.com/websanova/wScratchPad/tags)
+
+
+## Related Plugins
+
+* [wPaint](http://wpaint.websanova.com) - Simple paint drawing plugin.
+* [wColorPicker](http://wcolorpicker.websanova.com) - Color pallette seleciton plugin.
+
+
+## Settings
+
+Available options with notes, the values here are the defaults.
+
+```js
+$('#elem').wScratchPad({
+  size        : 5,          // The size of the brush/scratch.
+  bg          : '#cacaca',  // Background (image path or hex color).
+  fg          : '#6699ff',  // Foreground (image path or hex color).
+  realtime    : true,       // Calculates percentage in realitime.
+  scratchDown : null,       // Set scratchDown callback.
+  scratchUp   : null,       // Set scratchUp callback.
+  scratchMove : null,       // Set scratcMove callback.
+  cursor      : 'crosshair' // Set cursor.
+});
+```
+
+Note on `realtime`, if set to `false` this will only send percentage calculations to the `scratchUp` and should be used to increase performance.
+
+Note on `bg` and `fg`, these can be eitehr a valid hex color beginning with `#` otherwise it will default to trying to set an image.
+
+## Examples
+
+Include the following files:
+
+```js
+<script type="text/javascript" src="./wScratchPad.min.js"></script>
+```
+
+### Percent scratched
+
+```js
+$("#elem").wScratchPad({
+  scratchDown: function(e, percent){ console.log(percent); },
+  scratchMove: function(e, percent){ console.log(percent); },
+  scratchUp: function(e, percent){ console.log(percent); }
+});
+```
+
+### Update on the Fly
+
+```js
+var sp = $("#elem").wScratchPad();
+
+sp.wScratchPad('size', 5);
+sp.wScratchPad('cursor', 'url("./cursors/coin.png") 5 5, default');
+
+// Or directly with element.
+
+$("#elem").wScratchPad('image', './images/winner.png');
+```
+
+### Methods
+
+```js
+$('#elem').wScratchPad('reset');
+$('#elem').wScratchPad('clear');
+$('#elem').wScratchPad('enabled', <boolean>);
+```
+
+
+## Resources
+
+* [More jQuery plugins by Websanova](http://websanova.com/plugins)
+* [Websanova JavaScript Extensions Project](http://websanova.com/extensions)
+* [jQuery Plugin Development Boilerplate](http://wboiler.websanova.com)
+* [The Ultimate Guide to Writing jQuery Plugins](http://www.websanova.com/blog/jquery/the-ultimate-guide-to-writing-jquery-plugins)
+
+
+## License
+
+MIT licensed
+
+Copyright (C) 2011-2012 Websanova http://www.websanova.com

TEMPAT SAMPAH
ggk/cursors/bird.png


TEMPAT SAMPAH
ggk/cursors/coin.png


TEMPAT SAMPAH
ggk/cursors/god-sword.png


TEMPAT SAMPAH
ggk/cursors/leaf.png


TEMPAT SAMPAH
ggk/cursors/mario.png


+ 267 - 0
ggk/demo/demo.css

@@ -0,0 +1,267 @@
+/*** layout ***/
+
+body, html {
+    font-family: verdana;
+    font-size: 11px;
+    line-height:20px;
+    color: #333;
+    background-color: #FEFEFE;
+    margin: 0;
+    text-rendering: optimizeLegibility;
+    background-image: url('http://res.eqh5.com/group1/M00/CB/22/yq0KXVbLxByAHYd-AABNIFqL3Rc349.svg');
+}
+a {
+    color: #3399FF;
+    text-decoration: none;
+}
+code {
+    padding: 1px 3px;
+    color: #D14;
+    background-color: #F7F7F9;
+    border: 1px solid #E1E1E8;
+    border-radius: 5px;
+}
+
+h2 {
+    display: inline-block;
+}
+
+.no-margin-top {
+    margin-top: 0px;
+}
+
+/*** header ***/
+
+header {
+    position: fixed;
+    left: 0px;
+    top: 0px;
+    width: 100%;
+    height: 40px;
+    line-height: 40px;
+    background-color: #1B1B1B;
+    background-image: linear-gradient(to bottom, #222222, #111111);
+    background-repeat: repeat-x;
+    border-color: #252525;
+    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
+    border-width: 0 0 1px;
+    color: #FFF;
+    font-size: 10px;
+    text-align: left;
+    vertical-align: middle;
+    z-index: 100;
+}
+.header-logo {
+    position: absolute;
+    display: block;
+    width: 100%;
+    height: 100%;
+    left: 10px;
+    top: 10px;
+    background-image:url('./images/logo.png');
+}
+#header-links {
+    display: none;
+    position: absolute;
+    width: 100%;
+    left: 0px;
+    top: 40px;
+}
+#header-links a {
+    display: block;
+    font-size: 9px;
+    font-weight: bold;
+    font-family: Verdana;
+    color: #FAFAFA;
+    text-transform: uppercase;
+    margin-left: 0px;
+    text-align: center;
+    background-color: #1B1B1B;
+    border-top: solid 1px #CACACA;
+    line-height: 14px;
+    padding: 10px;
+}
+#header-links a:hover {
+    color: #636363;
+}
+
+/*** menu ***/
+
+#header-menu-button {
+    position: absolute;
+    right: 6px;
+    top: 6px;
+    display: block;
+    color: #757575;
+    background-color: #e1e1e1;
+    background-repeat: repeat-x;
+    background-image: -moz-linear-gradient(top, #ebebeb, #e1e1e1);
+    background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1);
+    background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1);
+    background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1);
+    background-image: linear-gradient(top, #ebebeb, #e1e1e1);
+    box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4;
+    border: none;
+    border-radius: 3px;
+    -webkit-border-radius: 3px;
+    padding: 6px 10px;
+    font-size: 11px;
+    line-height: 16px;
+    cursor: pointer;
+}
+
+/*** content ***/
+
+#plugin-name {
+    padding-bottom: 30px;
+    font-size: 24px;
+    border-bottom: solid #CACACA 1px;
+}
+#github-button {
+    display: block;
+    float: left;
+    margin-right: 2px;
+    width: 16px;
+    height: 16px;
+    cursor: pointer;
+    background-image: url('./img/addthis-github.png');
+}
+#addthis-toolbox {
+    position: absolute;
+    right: 15px;
+    top: 40px;
+}
+#content {
+    position: relative;
+    background: #FEFEFE;
+    max-width: 728px;
+    padding: 20px;
+    margin: 30px auto;
+}
+.content-box {
+    padding-left: 10px;
+}
+#content ul {
+    padding-left: 30px;
+}
+/*** footer ***/
+
+footer {
+    position: fixed;
+    left: 0px;
+    bottom: -1px;
+    width: 100%;
+    height: 40px;
+    line-height: 40px;
+    background-color: #1B1B1B;
+    background-image: linear-gradient(to bottom, #222222, #111111);
+    background-repeat: repeat-x;
+    border-color: #252525;
+    box-shadow: 10px 1px 10px rgba(0, 0, 0, 0.5);
+    border-width: 0 0 1px;
+    color: #FFF;
+    font-size: 10px;
+    text-align: left;
+    vertical-align: middle;
+    z-index: 100;
+}
+#footer-icons {
+    position: absolute;
+    right: 10px;
+    top: 0px;
+}
+#footer-icons a {
+    display: inline-block;
+    *display: inline;
+    zoom: 1;
+    width: 17px;
+    height: 17px;
+    margin: 12px 0 0 10px;
+    background-repeat: no-repeat;
+    background-position: center center;
+}
+#linkedin-icon { background-image: url('./img/linkedin-icon.png'); width: 18px; }
+#stumbleupon-icon { background-image: url('./img/stumbleupon-icon.png'); }
+#googleplus-icon { background-image: url('./img/googleplus-icon.png'); }
+#youtube-icon { background-image: url('./img/youtube-icon.png'); width: 17px; height: 18px; }
+#facebook-icon { background-image: url('./img/facebook-icon.png'); width: 8px; }
+#twitter-icon { background-image: url('./img/twitter-icon.png'); width: 20px; }
+#github-icon { background-image: url('./img/github-icon.png'); width: 20px; }
+#rss-icon { background-image: url('./img/rss-icon.png'); }
+
+
+/*** media ***/
+
+@media screen and (min-width: 600px) {
+    #header-logo {
+        left: 50px;
+    }
+    #footer-icons {
+        left: auto;
+        right: 50px;
+    }
+    #header-links {
+        display: block !important;
+        width: auto;
+        top: 0px;
+        left: auto;
+        right: 50px;
+    }
+    #header-links a {
+        display: inline;
+        font-size: 10px;
+        margin-left: 20px;
+        text-align: left;
+        background-color: none;
+        border-top: 0px;
+        margin-left: 10px;
+        line-height: inherit;
+        padding: 0px;
+    }
+    #header-menu-button {
+        display: none;
+    }
+    #plugin-name {
+        font-size: 30px;
+    }
+    #addthis-toolbox {
+        top: 44px;
+    }
+}
+
+/*** ads ***/
+
+.websanova-plugins-page-horizontal-responsive { display:block; margin:0 auto; width: 320px; height: 50px; }
+@media(min-width: 520px) { .websanova-plugins-page-horizontal-responsive { width: 468px; height: 60px; } }
+@media(min-width: 800px) { .websanova-plugins-page-horizontal-responsive { width: 728px; height: 90px; } }
+
+.adsblock {
+    position: relative;
+    margin: 0 auto;
+}
+.ads2block {
+    margin-top: 20px;
+}
+.adsblock-mobile-banner {
+    width: 320px;
+    height: 50px;
+}
+.adsblock-banner {
+    display: none;
+    width: 468px;
+    height: 60px;
+}
+.adsblock-leaderboard {
+    display: none;
+    width: 728px;
+    height: 90px;
+}
+@media (min-width:520px) {
+    .adsblock-mobile-banner { display: none; }
+    .adsblock-banner { display: block; }
+}
+@media (min-width:800px) {
+    .adsblock-mobile-banner { display: none; }
+    .adsblock-banner { display: none; }
+    .adsblock-leaderboard { display: block; }
+}

TEMPAT SAMPAH
ggk/demo/img/facebook-icon.png


TEMPAT SAMPAH
ggk/demo/img/favicon.ico


TEMPAT SAMPAH
ggk/demo/img/forkme_right_darkblue.png


TEMPAT SAMPAH
ggk/demo/img/github-icon.png


TEMPAT SAMPAH
ggk/demo/img/googleplus-icon.png


TEMPAT SAMPAH
ggk/demo/img/linkedin-icon.png


TEMPAT SAMPAH
ggk/demo/img/rss-icon.png


TEMPAT SAMPAH
ggk/demo/img/stumbleupon-icon.png


TEMPAT SAMPAH
ggk/demo/img/twitter-icon.png


TEMPAT SAMPAH
ggk/demo/img/websanova-logo-small-full-black.png


TEMPAT SAMPAH
ggk/demo/img/youtube-icon.png


+ 54 - 0
ggk/gruntfile.js

@@ -0,0 +1,54 @@
+module.exports = function(grunt) {
+  grunt.initConfig({
+    pkg: grunt.file.readJSON('package.json'),
+    jshint: {
+      options: {
+        bitwise: true,
+        camelcase: true,
+        indent: 2,
+        curly: true,
+        eqeqeq: true,
+        immed: true,
+        latedef: true,
+        newcap: true,
+        noarg: true,
+        sub: true,
+        undef: true,
+        unused: true,
+        boss: true,
+        eqnull: true,
+        white: true,
+        validthis: true,
+        quotmark: 'single',
+        globals: {
+          'window': true,
+          'jQuery': true,
+          'document': true,
+          'Image': true,
+          'setTimeout': true,
+          'clearTimeout': true,
+          'event': true,
+          'CanvasRenderingContext2D': true
+        }
+      },
+      files: {
+        src: ['./src/wScratchPad.js']
+      }
+    },
+    uglify: {
+      options: {
+        banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> */'
+      },
+      my_target: {
+        files: {
+          './wScratchPad.min.js': ['./src/wScratchPad.js']
+       }
+      }
+    }
+  });
+
+  grunt.loadNpmTasks('grunt-contrib-jshint');
+  grunt.loadNpmTasks('grunt-contrib-uglify');
+
+  grunt.registerTask('default', ['jshint', 'uglify']);
+};

TEMPAT SAMPAH
ggk/images/flw.jpg


TEMPAT SAMPAH
ggk/images/flw1.jpg


TEMPAT SAMPAH
ggk/images/hzh.jpg


TEMPAT SAMPAH
ggk/images/hzh1.jpg


TEMPAT SAMPAH
ggk/images/logo.png


TEMPAT SAMPAH
ggk/images/scratch-to-win.png


TEMPAT SAMPAH
ggk/images/slide1.jpg


TEMPAT SAMPAH
ggk/images/slide2.jpg


TEMPAT SAMPAH
ggk/images/slide3.jpg


TEMPAT SAMPAH
ggk/images/winner.png


TEMPAT SAMPAH
ggk/images/xiaoyuan.jpg


TEMPAT SAMPAH
ggk/images/xiaoyuan1.jpg


TEMPAT SAMPAH
ggk/images/xinran.jpg


TEMPAT SAMPAH
ggk/images/xinran1.jpg


TEMPAT SAMPAH
ggk/images/zhangsong.jpg


TEMPAT SAMPAH
ggk/images/zhangsong1.jpg


+ 136 - 0
ggk/index.html

@@ -0,0 +1,136 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="utf-8">
+  <meta name="viewport" content="width=device-width" />
+  
+  <title>明星荐股</title>
+
+  <!-- filestart -->
+  <link rel="icon" type="image/vnd.microsoft.icon"  href="./demo/img/favicon.ico" />
+  <link rel="Stylesheet" type="text/css" href="./demo/demo.css" />
+  <script type="text/javascript" src="./lib/jquery.1.11.0.min.js"></script>
+  <!-- fileend -->
+</head>
+<body>
+  <div id="content">
+	<div style="font-size:16px">使用说明:</div>
+	<div>可直接在您中意的投顾照片上划,选择投顾推荐的股票,一经选择即从您当前帐户扣除相应积分,请您及时了解帐户积分情况,积分不足将无法获取推荐股票。</div>
+    <div class="content-box">
+	<table align="center"><tr><td>
+      <div id="zhangsong" class="scratchpad"></div>
+	  <div id="zhangsong-percent" align=center>昨日推荐:300240</br>当日涨幅:3.6%</br>消费积分:100点</div>
+ 	</td><td>
+      <div id="xiaoyuan" class="scratchpad"></div>
+	  <div id="xiaoyuan-percent" align=center>昨日推荐:600111</br>当日涨幅:5.5%</br>消费积分:100点</div>
+    </td></tr></table>
+
+	<table align="center"><tr><td>
+      <div id="xinran" class="scratch"></div>
+	  <div id="xinran-percent" align=center>昨日推荐:000271</br>当日涨幅:-1.6%</br>消费积分:50点</div>
+ 	</td><td>
+      <div id="hzh" class="scratch"></div>
+	  <div id="hzh-percent" align=center>昨日推荐:600051</br>当日涨幅:4.1%</br>消费积分:50点</div>
+    </td>
+    <td>
+      <div id="flw" class="scratch"></div>
+	  <div id="flw-percent" align=center>昨日推荐:000311</br>当日涨幅:-7.6%</br>消费积分:50点</div>
+    </td>
+    </tr></table>
+
+      <style>
+        .scratchpad{
+          width: 144px;
+          height: 144px;
+          border: solid 0px;
+        }
+
+        .scratch{
+          width: 95px;
+          height: 95px;
+          border: solid 0px;
+        }
+
+        .zrtj{
+          width: 154px;
+          height: 154px;
+          border: solid 0px;
+        }
+
+
+        }
+      </style>
+
+      <script type="text/javascript" src="./wScratchPad.min.js"></script>
+      <script type="text/javascript">
+        $('#zhangsong').wScratchPad({
+          bg: './images/zhangsong1.jpg',
+          fg: './images/zhangsong.jpg',
+          'cursor': 'url("./cursors/coin.png") 15 15, default',
+          scratchMove: function (e, percent) {
+            if (percent > 2) {
+                this.clear();
+                $('#zhangsong-percent').html("定阅成功</br>本次消费100点");
+              }
+          }
+        });
+
+        $('#xiaoyuan').wScratchPad({
+          bg: './images/xiaoyuan1.jpg',
+          fg: './images/xiaoyuan.jpg',
+          'cursor': 'url("./cursors/coin.png") 5 5, default',
+          scratchMove: function (e, percent) {
+ 
+            if (percent > 2) {
+              this.clear();
+              $('#xiaoyuan-percent').html("定阅成功</br>本次消费100点");
+}
+          }
+        });
+ 
+        $('#xinran').wScratchPad({
+            bg: './images/xinran1.jpg',
+            fg: './images/xinran.jpg',
+            'cursor': 'url("./cursors/coin.png") 5 5, default',
+            scratchMove: function (e, percent) {
+   
+              if (percent > 2) {
+                this.clear();
+                $('#xinran-percent').html("定阅成功</br>本次消费50点");
+             }
+            }
+          });
+
+        $('#flw').wScratchPad({
+            bg: './images/flw1.jpg',
+            fg: './images/flw.jpg',
+            'cursor': 'url("./cursors/coin.png") 5 5, default',
+            scratchMove: function (e, percent) {
+   
+              if (percent > 2) {
+                this.clear();
+                $('#flw-percent').html("定阅成功</br>本次消费50点");
+              }
+            }
+          });
+
+        $('#hzh').wScratchPad({
+            bg: './images/hzh1.jpg',
+            fg: './images/hzh.jpg',
+            'cursor': 'url("./cursors/coin.png") 5 5, default',
+            scratchMove: function (e, percent) {
+   
+              if (percent > 5) {
+                this.clear();
+                $('#hzh-percent').html("定阅成功</br>本次消费50点");
+              }
+            }
+          });
+        
+        </script>
+      
+    </div>
+  </div>
+
+</body>
+</html>

File diff ditekan karena terlalu besar
+ 1 - 0
ggk/lib/jquery.1.11.0.min.js


+ 22 - 0
ggk/package.json

@@ -0,0 +1,22 @@
+{
+  "name": "wScratchPad",
+  "title": "wScratchPad jQuery Plugin",
+  "version": "2.1.0",
+  "description": "A jQuery plugin to mimic a scratch card or pad behaviour.  Allowing you to scratch off an overlay as either a color or image.",
+  "main": "wScratchPad.js",
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/websanova/wScratchPad"
+  },
+  "author": {
+    "name": "Websanova",
+    "email": "rob@websanova.com",
+    "url": "http://websanova.com"
+  },
+  "homepage" : "http://wscratchpad.websanova.com",
+  "license": "MIT, GPL",
+  "dependencies": {
+    "grunt-contrib-uglify": "",
+    "grunt-contrib-jshint": ""
+  }
+}

+ 320 - 0
ggk/src/wScratchPad.js

@@ -0,0 +1,320 @@
+(function ($) {
+  'use strict';
+
+  function ScratchPad(el, options) {
+    this.$el = $(el);
+    this.options = options;
+
+    this.init = false;
+    this.enabled = true;
+
+    this._generate();
+  }
+
+  ScratchPad.prototype = {
+    _generate: function () {
+
+      // Throw message if canvas is not supported.
+      if (!$.support.canvas) {
+        this.$el.append('Canvas is not supported in this browser.');
+        return true;
+      }
+
+      // Setup canvas and context.
+      this.canvas = document.createElement('canvas');
+      this.ctx = this.canvas.getContext('2d');
+
+      // Make sure it's at least relative.
+      if (this.$el.css('position') === 'static') {
+        this.$el.css('position', 'relative');
+      }
+
+      this.$img = $('<img src=""/>').attr('crossOrigin', '').css({position: 'absolute', width: '100%', height: '100%'});
+
+      // Make sure we sett style width height here for elastic stretch
+      // and better support for mobile if we are resizing the scratch pad.
+      this.$scratchpad = $(this.canvas).css({position: 'absolute', width: '100%', height: '100%'});
+      
+      this.$scratchpad.bindMobileEvents();
+
+      // Setup event handlers.
+      this.$scratchpad
+      .mousedown($.proxy(function (e) {
+
+        // If disabled we just return true which menas
+        // our our this.scratch will remain as false.
+        if (!this.enabled) {
+          return true;
+        }
+
+        this.canvasOffset = $(this.canvas).offset();
+        
+        this.scratch = true;
+        this._scratchFunc(e, 'Down');
+      }, this))
+      .mousemove($.proxy(function (e) {
+        if (this.scratch) {
+          this._scratchFunc(e, 'Move');
+        }
+      }, this))
+      .mouseup($.proxy(function (e) {
+        if (this.scratch) {
+          this.scratch = false;
+          this._scratchFunc(e, 'Up');
+        }
+      }, this));
+
+      // Run options
+      this._setOptions();
+
+      // Apepnd items
+      this.$el.append(this.$img).append(this.$scratchpad);
+
+      // Initialize and reset
+      this.init = true;
+      this.reset();
+    },
+
+    reset: function () {
+      var _this = this,
+          width = Math.ceil(this.$el.innerWidth()),
+          height = Math.ceil(this.$el.innerHeight()),
+          devicePixelRatio = window.devicePixelRatio || 1;
+
+      // Set number of pixels required for getting scratch percentage.
+      this.pixels = width * height;
+
+      // We'll do a hard reset for the height here in case
+      // we need to run this at differnt sizes.
+      this.$scratchpad.attr('width', width).attr('height', height);
+
+      this.canvas.setAttribute('width', width * devicePixelRatio);
+      this.canvas.setAttribute('height', height * devicePixelRatio);
+      this.ctx.scale(devicePixelRatio, devicePixelRatio);
+
+      this.pixels = width * devicePixelRatio * height * devicePixelRatio;
+
+      // Default to image hidden in case no bg or color is set.
+      this.$img.hide();
+
+      // Set bg.
+      if (this.options.bg) {
+        if (this.options.bg.charAt(0) === '#') {
+          this.$el.css('backgroundColor', this.options.bg);
+        }
+        else {
+          this.$el.css('backgroundColor', '');
+          this.$img.attr('src', this.options.bg);
+        }
+      }
+
+      // Set fg.
+      if (this.options.fg) {
+        if (this.options.fg.charAt(0) === '#') {
+          this.ctx.fillStyle = this.options.fg;
+          this.ctx.beginPath();
+          this.ctx.rect(0, 0, width, height);
+          this.ctx.fill();
+          this.$img.show();
+        }
+        else {
+          // Have to load image before we can use it.
+          $(new Image())
+          .attr('crossOrigin', '')
+          .attr('src', this.options.fg)
+          .load(function () {
+            _this.ctx.drawImage(this, 0, 0, width, height);
+            _this.$img.show();
+          });
+        }
+      }
+    },
+
+    clear: function () {
+      this.ctx.clearRect(0, 0, Math.ceil(this.$el.innerWidth()), Math.ceil(this.$el.innerHeight()));
+    },
+
+    enable: function (enabled) {
+      this.enabled = enabled === true ? true : false;
+    },
+
+    destroy: function () {
+      this.$el.children().remove();
+      $.removeData(this.$el, 'wScratchPad');
+    },
+
+    _setOptions: function () {
+      var opt, func;
+
+      for (opt in this.options) {
+        this.options[opt] = this.$el.attr('data-' + opt) || this.options[opt];
+        func = 'set' + opt.charAt(0).toUpperCase() + opt.substring(1);
+
+        if (this[func]) {
+          this[func](this.options[opt]);
+        }
+      }
+    },
+
+    setBg: function () {
+      if (this.init) {
+        this.reset();
+      }
+    },
+
+    setFg: function () {
+      this.setBg();
+    },
+
+    setCursor: function (cursor) {
+      this.$el.css('cursor', cursor);
+    },
+
+    _scratchFunc: function (e, event) {
+      e.pageX = Math.floor(e.pageX - this.canvasOffset.left);
+      e.pageY = Math.floor(e.pageY - this.canvasOffset.top);
+      
+      this['_scratch' + event](e);
+      
+      if (this.options.realtime || event === 'Up') {
+        if (this.options['scratch' + event]) {
+          this.options['scratch' + event].apply(this, [e, this._scratchPercent()]);
+        }
+      }
+    },
+
+    _scratchPercent: function() {
+      var hits = 0,
+          imageData = this.ctx.getImageData(0,0, this.canvas.width, this.canvas.height);
+      
+      for (var i=0, ii=imageData.data.length; i<ii; i=i+4) {
+        if (imageData.data[i] === 0 && imageData.data[i+1] === 0 && imageData.data[i+2] === 0 && imageData.data[i+3] === 0) {
+          hits++;
+        }
+      }
+      
+      return (hits / this.pixels) * 100;
+    },
+
+    _scratchDown: function (e) {
+      this.ctx.globalCompositeOperation = 'destination-out';
+      this.ctx.lineJoin = 'round';
+      this.ctx.lineCap = 'round';
+      this.ctx.strokeStyle = this.options.color;
+      this.ctx.lineWidth = this.options.size;
+      
+      //draw single dot in case of a click without a move
+      this.ctx.beginPath();
+      this.ctx.arc(e.pageX, e.pageY, this.options.size/2, 0, Math.PI*2, true);
+      this.ctx.closePath();
+      this.ctx.fill();
+      
+      //start the path for a drag
+      this.ctx.beginPath();
+      this.ctx.moveTo(e.pageX, e.pageY);
+    },
+    
+    _scratchMove: function (e) {
+      this.ctx.lineTo(e.pageX, e.pageY);
+      this.ctx.stroke();
+    },
+    
+    _scratchUp: function () {
+      this.ctx.closePath();
+    }
+  };
+
+  $.support.canvas = (document.createElement('canvas')).getContext;
+
+  $.fn.wScratchPad = function (options, value) {
+    function get() {
+      var wScratchPad = $.data(this, 'wScratchPad');
+
+      if (!wScratchPad) {
+        wScratchPad = new ScratchPad(this, $.extend(true, {}, options));
+        $.data(this, 'wScratchPad', wScratchPad);
+      }
+
+      return wScratchPad;
+    }
+
+    if (typeof options === 'string') {
+      var wScratchPad,
+          values = [],
+          func = (value !== undefined ? 'set' : 'get') + options.charAt(0).toUpperCase() + options.substring(1),
+
+          setOpt = function () {
+            if (wScratchPad.options[options]) { wScratchPad.options[options] = value; }
+            if (wScratchPad[func]) { wScratchPad[func].apply(wScratchPad, [value]); }
+          },
+
+          getOpt = function () {
+            if (wScratchPad[func]) { return wScratchPad[func].apply(wScratchPad, [value]); }
+            else if (wScratchPad.options[options]) { return wScratchPad.options[options]; }
+            else { return undefined; }
+          },
+
+          runOpt = function () {
+            wScratchPad = $.data(this, 'wScratchPad');
+
+            if (wScratchPad) {
+              if (wScratchPad[options]) { wScratchPad[options].apply(wScratchPad, [value]); }
+              else if (value !== undefined) { setOpt(); }
+              else {  values.push(getOpt()); }
+            }
+          };
+
+      this.each(runOpt);
+
+      return values.length ? (values.length === 1 ? values[0] : values) : this;
+    }
+
+    options = $.extend({}, $.fn.wScratchPad.defaults, options);
+
+    return this.each(get);
+  };
+
+  $.fn.wScratchPad.defaults = {
+    size        : 5,          // The size of the brush/scratch.
+    bg          : '#cacaca',  // Background (image path or hex color).
+    fg          : '#6699ff',  // Foreground (image path or hex color).
+    realtime    : true,       // Calculates percentage in realitime
+    scratchDown : null,       // Set scratchDown callback.
+    scratchUp   : null,       // Set scratchUp callback.
+    scratchMove : null,       // Set scratcMove callback.
+    cursor      : 'crosshair' // Set cursor.
+  };
+
+  $.fn.bindMobileEvents = function () {
+    $(this).on('touchstart touchmove touchend touchcancel', function (event) {
+      var touches = (event.changedTouches || event.originalEvent.targetTouches),
+          first = touches[0],
+          type = '';
+
+      switch (event.type) {
+      case 'touchstart':
+        type = 'mousedown';
+        break;
+      case 'touchmove':
+        type = 'mousemove';
+        event.preventDefault();
+        break;
+      case 'touchend':
+        type = 'mouseup';
+        break;
+      default:
+        return;
+      }
+
+      var simulatedEvent = document.createEvent('MouseEvent'); 
+
+      simulatedEvent.initMouseEvent(
+        type, true, true, window, 1, 
+        first.screenX, first.screenY, first.clientX, first.clientY, 
+        false, false, false, false, 0/*left*/, null
+      );
+
+      first.target.dispatchEvent(simulatedEvent);
+    });
+  };
+})(jQuery);

+ 70 - 0
ggk/test/dev.html

@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="utf-8">
+  <meta name="viewport" content="width=device-width" />
+  
+  <title>Websanova :: wScratchPad</title>
+
+  <link rel="icon" type="image/vnd.microsoft.icon"  href="./demo/img/favicon.ico" />
+  <script type="text/javascript" src="../lib/jquery.1.11.0.min.js"></script>
+</head>
+<body>
+
+  <div id="demo1" class="scratchpad"></div>
+  <div id="demo2" class="scratchpad"></div>
+  <div id="demo3" class="scratchpad"></div>
+
+  <br/>
+  <input type="button" value="Reset" onclick="$('.scratchpad').wScratchPad('reset');"/>
+  <input type="button" value="Clear" onclick="$('.scratchpad').wScratchPad('clear');"/>
+  <input type="button" value="Enable" onclick="$('.scratchpad').wScratchPad('enable', true);"/>
+  <input type="button" value="Disable" onclick="$('.scratchpad').wScratchPad('enable', false);"/>
+  
+  <style>
+    #demo1, #demo2, #demo3 {
+      width: 25%;
+      height: 100px;
+      border: solid 1px;
+      display: inline-block;
+    }
+  </style>
+
+  <script type="text/javascript" src="../src/wScratchPad.js"></script>
+  <script type="text/javascript">
+
+    // Test 1
+    $('#demo1').wScratchPad({
+      scratchMove: function (e, percent) {
+        console.log(percent);
+      }
+    });
+
+    // Test 2
+    $('#demo2').wScratchPad({
+      bg: '../images/slide1.jpg',
+      fg: '#ff0000',
+      scratchMove: function (e, percent) {
+        console.log(percent);
+
+        if (percent > 70) {
+          this.clear();
+        }
+      }
+    });
+    $('#demo2').wScratchPad('cursor', 'url("../cursors/coin.png") 5 5, default');
+
+    // Test 3
+    $('#demo3').wScratchPad({
+      cursor: 'url("../cursors/mario.png") 5 5, default',
+      scratchMove: function (e, percent) {
+        console.log(percent);
+      }
+    });
+    $('#demo3').wScratchPad('bg', '../images/winner.png');
+    $('#demo3').wScratchPad('fg', '../images/scratch-to-win.png');
+    $('#demo3').wScratchPad('size', 10);
+  </script>
+
+</body>
+</html>

+ 38 - 0
ggk/wScratchPad.jquery.json

@@ -0,0 +1,38 @@
+{
+  "name": "wScratchPad",
+  "title": "wScratchPad jQuery Plugin",
+  "description": "A jQuery plugin to mimic a scratch card or pad behaviour.  Allowing you to scratch off an overlay as either a color or image.",
+  "keywords": [
+    "websanova",
+    "wScratchPad",
+    "scratch",
+    "canvas",
+    "html5"
+  ],
+  "version": "2.1.0",
+  "author": {
+    "name": "Websanova",
+    "email": "rob@websanova.com",
+    "url": "http://websanova.com"
+  },
+  "maintainers": [
+    {
+      "name": "Websanova",
+      "email": "rob@websanova.com",
+      "url": "http://websanova.com"
+    }
+  ],
+  "licenses": [
+    {
+      "type": "MIT",
+      "url": "https://github.com/websanova/wScratchPad#license"
+    }
+  ],
+  "bugs": "https://github.com/websanova/wScratchPad/issues",
+  "homepage": "http://wscratchpad.websanova.com",
+  "docs": "https://github.com/websanova/wScratchPad#wscratchpadjs",
+  "download": "https://github.com/websanova/wScratchPad/tags",
+  "dependencies": {
+    "jquery": ">=1.5"
+  }
+}

File diff ditekan karena terlalu besar
+ 0 - 0
ggk/wScratchPad.min.js


+ 279 - 0
h5/alignpat.js

@@ -0,0 +1,279 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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 AlignmentPattern(posX, posY,  estimatedModuleSize)
+{
+	this.x=posX;
+	this.y=posY;
+	this.count = 1;
+	this.estimatedModuleSize = estimatedModuleSize;
+	
+	this.__defineGetter__("EstimatedModuleSize", function()
+	{
+		return this.estimatedModuleSize;
+	}); 
+	this.__defineGetter__("Count", function()
+	{
+		return this.count;
+	});
+	this.__defineGetter__("X", function()
+	{
+		return Math.floor(this.x);
+	});
+	this.__defineGetter__("Y", function()
+	{
+		return Math.floor(this.y);
+	});
+	this.incrementCount = function()
+	{
+		this.count++;
+	}
+	this.aboutEquals=function( moduleSize,  i,  j)
+		{
+			if (Math.abs(i - this.y) <= moduleSize && Math.abs(j - this.x) <= moduleSize)
+			{
+				var moduleSizeDiff = Math.abs(moduleSize - this.estimatedModuleSize);
+				return moduleSizeDiff <= 1.0 || moduleSizeDiff / this.estimatedModuleSize <= 1.0;
+			}
+			return false;
+		}
+	
+}
+
+function AlignmentPatternFinder( image,  startX,  startY,  width,  height,  moduleSize,  resultPointCallback)
+{
+	this.image = image;
+	this.possibleCenters = new Array();
+	this.startX = startX;
+	this.startY = startY;
+	this.width = width;
+	this.height = height;
+	this.moduleSize = moduleSize;
+	this.crossCheckStateCount = new Array(0,0,0);
+	this.resultPointCallback = resultPointCallback;
+	
+	this.centerFromEnd=function(stateCount,  end)
+		{
+			return  (end - stateCount[2]) - stateCount[1] / 2.0;
+		}
+	this.foundPatternCross = function(stateCount)
+		{
+			var moduleSize = this.moduleSize;
+			var maxVariance = moduleSize / 2.0;
+			for (var i = 0; i < 3; i++)
+			{
+				if (Math.abs(moduleSize - stateCount[i]) >= maxVariance)
+				{
+					return false;
+				}
+			}
+			return true;
+		}
+
+	this.crossCheckVertical=function( startI,  centerJ,  maxCount,  originalStateCountTotal)
+		{
+			var image = this.image;
+			
+			var maxI = qrcode.height;
+			var stateCount = this.crossCheckStateCount;
+			stateCount[0] = 0;
+			stateCount[1] = 0;
+			stateCount[2] = 0;
+			
+			// Start counting up from center
+			var i = startI;
+			while (i >= 0 && image[centerJ + i*qrcode.width] && stateCount[1] <= maxCount)
+			{
+				stateCount[1]++;
+				i--;
+			}
+			// If already too many modules in this state or ran off the edge:
+			if (i < 0 || stateCount[1] > maxCount)
+			{
+				return NaN;
+			}
+			while (i >= 0 && !image[centerJ + i*qrcode.width] && stateCount[0] <= maxCount)
+			{
+				stateCount[0]++;
+				i--;
+			}
+			if (stateCount[0] > maxCount)
+			{
+				return NaN;
+			}
+			
+			// Now also count down from center
+			i = startI + 1;
+			while (i < maxI && image[centerJ + i*qrcode.width] && stateCount[1] <= maxCount)
+			{
+				stateCount[1]++;
+				i++;
+			}
+			if (i == maxI || stateCount[1] > maxCount)
+			{
+				return NaN;
+			}
+			while (i < maxI && !image[centerJ + i*qrcode.width] && stateCount[2] <= maxCount)
+			{
+				stateCount[2]++;
+				i++;
+			}
+			if (stateCount[2] > maxCount)
+			{
+				return NaN;
+			}
+			
+			var stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2];
+			if (5 * Math.abs(stateCountTotal - originalStateCountTotal) >= 2 * originalStateCountTotal)
+			{
+				return NaN;
+			}
+			
+			return this.foundPatternCross(stateCount)?this.centerFromEnd(stateCount, i):NaN;
+		}
+		
+	this.handlePossibleCenter=function( stateCount,  i,  j)
+		{
+			var stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2];
+			var centerJ = this.centerFromEnd(stateCount, j);
+			var centerI = this.crossCheckVertical(i, Math.floor (centerJ), 2 * stateCount[1], stateCountTotal);
+			if (!isNaN(centerI))
+			{
+				var estimatedModuleSize = (stateCount[0] + stateCount[1] + stateCount[2]) / 3.0;
+				var max = this.possibleCenters.length;
+				for (var index = 0; index < max; index++)
+				{
+					var center =  this.possibleCenters[index];
+					// Look for about the same center and module size:
+					if (center.aboutEquals(estimatedModuleSize, centerI, centerJ))
+					{
+						return new AlignmentPattern(centerJ, centerI, estimatedModuleSize);
+					}
+				}
+				// Hadn't found this before; save it
+				var point = new AlignmentPattern(centerJ, centerI, estimatedModuleSize);
+				this.possibleCenters.push(point);
+				if (this.resultPointCallback != null)
+				{
+					this.resultPointCallback.foundPossibleResultPoint(point);
+				}
+			}
+			return null;
+		}
+		
+	this.find = function()
+	{
+			var startX = this.startX;
+			var height = this.height;
+			var maxJ = startX + width;
+			var middleI = startY + (height >> 1);
+			// We are looking for black/white/black modules in 1:1:1 ratio;
+			// this tracks the number of black/white/black modules seen so far
+			var stateCount = new Array(0,0,0);
+			for (var iGen = 0; iGen < height; iGen++)
+			{
+				// Search from middle outwards
+				var i = middleI + ((iGen & 0x01) == 0?((iGen + 1) >> 1):- ((iGen + 1) >> 1));
+				stateCount[0] = 0;
+				stateCount[1] = 0;
+				stateCount[2] = 0;
+				var j = startX;
+				// Burn off leading white pixels before anything else; if we start in the middle of
+				// a white run, it doesn't make sense to count its length, since we don't know if the
+				// white run continued to the left of the start point
+				while (j < maxJ && !image[j + qrcode.width* i])
+				{
+					j++;
+				}
+				var currentState = 0;
+				while (j < maxJ)
+				{
+					if (image[j + i*qrcode.width])
+					{
+						// Black pixel
+						if (currentState == 1)
+						{
+							// Counting black pixels
+							stateCount[currentState]++;
+						}
+						else
+						{
+							// Counting white pixels
+							if (currentState == 2)
+							{
+								// A winner?
+								if (this.foundPatternCross(stateCount))
+								{
+									// Yes
+									var confirmed = this.handlePossibleCenter(stateCount, i, j);
+									if (confirmed != null)
+									{
+										return confirmed;
+									}
+								}
+								stateCount[0] = stateCount[2];
+								stateCount[1] = 1;
+								stateCount[2] = 0;
+								currentState = 1;
+							}
+							else
+							{
+								stateCount[++currentState]++;
+							}
+						}
+					}
+					else
+					{
+						// White pixel
+						if (currentState == 1)
+						{
+							// Counting black pixels
+							currentState++;
+						}
+						stateCount[currentState]++;
+					}
+					j++;
+				}
+				if (this.foundPatternCross(stateCount))
+				{
+					var confirmed = this.handlePossibleCenter(stateCount, i, maxJ);
+					if (confirmed != null)
+					{
+						return confirmed;
+					}
+				}
+			}
+			
+			// Hmm, nothing we saw was observed and confirmed twice. If we had
+			// any guess at all, return it.
+			if (!(this.possibleCenters.length == 0))
+			{
+				return  this.possibleCenters[0];
+			}
+			
+			throw "Couldn't find enough alignment patterns";
+		}
+	
+}

+ 111 - 0
h5/bitmat.js

@@ -0,0 +1,111 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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 BitMatrix( width,  height)
+{
+	if(!height)
+		height=width;
+	if (width < 1 || height < 1)
+	{
+		throw "Both dimensions must be greater than 0";
+	}
+	this.width = width;
+	this.height = height;
+	var rowSize = width >> 5;
+	if ((width & 0x1f) != 0)
+	{
+		rowSize++;
+	}
+	this.rowSize = rowSize;
+	this.bits = new Array(rowSize * height);
+	for(var i=0;i<this.bits.length;i++)
+		this.bits[i]=0;
+	
+	this.__defineGetter__("Width", function()
+	{
+		return this.width;
+	});
+	this.__defineGetter__("Height", function()
+	{
+		return this.height;
+	});
+	this.__defineGetter__("Dimension", function()
+	{
+		if (this.width != this.height)
+		{
+			throw "Can't call getDimension() on a non-square matrix";
+		}
+		return this.width;
+	});
+	
+	this.get_Renamed=function( x,  y)
+		{
+			var offset = y * this.rowSize + (x >> 5);
+			return ((URShift(this.bits[offset], (x & 0x1f))) & 1) != 0;
+		}
+	this.set_Renamed=function( x,  y)
+		{
+			var offset = y * this.rowSize + (x >> 5);
+			this.bits[offset] |= 1 << (x & 0x1f);
+		}
+	this.flip=function( x,  y)
+		{
+			var offset = y * this.rowSize + (x >> 5);
+			this.bits[offset] ^= 1 << (x & 0x1f);
+		}
+	this.clear=function()
+		{
+			var max = this.bits.length;
+			for (var i = 0; i < max; i++)
+			{
+				this.bits[i] = 0;
+			}
+		}
+	this.setRegion=function( left,  top,  width,  height)
+		{
+			if (top < 0 || left < 0)
+			{
+				throw "Left and top must be nonnegative";
+			}
+			if (height < 1 || width < 1)
+			{
+				throw "Height and width must be at least 1";
+			}
+			var right = left + width;
+			var bottom = top + height;
+			if (bottom > this.height || right > this.width)
+			{
+				throw "The region must fit inside the matrix";
+			}
+			for (var y = top; y < bottom; y++)
+			{
+				var offset = y * this.rowSize;
+				for (var x = left; x < right; x++)
+				{
+					this.bits[offset + (x >> 5)] |= 1 << (x & 0x1f);
+				}
+			}
+		}
+}

+ 203 - 0
h5/bmparser.js

@@ -0,0 +1,203 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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 BitMatrixParser(bitMatrix)
+{
+	var dimension = bitMatrix.Dimension;
+	if (dimension < 21 || (dimension & 0x03) != 1)
+	{
+		throw "Error BitMatrixParser";
+	}
+	this.bitMatrix = bitMatrix;
+	this.parsedVersion = null;
+	this.parsedFormatInfo = null;
+	
+	this.copyBit=function( i,  j,  versionBits)
+	{
+		return this.bitMatrix.get_Renamed(i, j)?(versionBits << 1) | 0x1:versionBits << 1;
+	}
+	
+	this.readFormatInformation=function()
+	{
+			if (this.parsedFormatInfo != null)
+			{
+				return this.parsedFormatInfo;
+			}
+			
+			// Read top-left format info bits
+			var formatInfoBits = 0;
+			for (var i = 0; i < 6; i++)
+			{
+				formatInfoBits = this.copyBit(i, 8, formatInfoBits);
+			}
+			// .. and skip a bit in the timing pattern ...
+			formatInfoBits = this.copyBit(7, 8, formatInfoBits);
+			formatInfoBits = this.copyBit(8, 8, formatInfoBits);
+			formatInfoBits = this.copyBit(8, 7, formatInfoBits);
+			// .. and skip a bit in the timing pattern ...
+			for (var j = 5; j >= 0; j--)
+			{
+				formatInfoBits = this.copyBit(8, j, formatInfoBits);
+			}
+			
+			this.parsedFormatInfo = FormatInformation.decodeFormatInformation(formatInfoBits);
+			if (this.parsedFormatInfo != null)
+			{
+				return this.parsedFormatInfo;
+			}
+			
+			// Hmm, failed. Try the top-right/bottom-left pattern
+			var dimension = this.bitMatrix.Dimension;
+			formatInfoBits = 0;
+			var iMin = dimension - 8;
+			for (var i = dimension - 1; i >= iMin; i--)
+			{
+				formatInfoBits = this.copyBit(i, 8, formatInfoBits);
+			}
+			for (var j = dimension - 7; j < dimension; j++)
+			{
+				formatInfoBits = this.copyBit(8, j, formatInfoBits);
+			}
+			
+			this.parsedFormatInfo = FormatInformation.decodeFormatInformation(formatInfoBits);
+			if (this.parsedFormatInfo != null)
+			{
+				return this.parsedFormatInfo;
+			}
+			throw "Error readFormatInformation";	
+	}
+	this.readVersion=function()
+		{
+			
+			if (this.parsedVersion != null)
+			{
+				return this.parsedVersion;
+			}
+			
+			var dimension = this.bitMatrix.Dimension;
+			
+			var provisionalVersion = (dimension - 17) >> 2;
+			if (provisionalVersion <= 6)
+			{
+				return Version.getVersionForNumber(provisionalVersion);
+			}
+			
+			// Read top-right version info: 3 wide by 6 tall
+			var versionBits = 0;
+			var ijMin = dimension - 11;
+			for (var j = 5; j >= 0; j--)
+			{
+				for (var i = dimension - 9; i >= ijMin; i--)
+				{
+					versionBits = this.copyBit(i, j, versionBits);
+				}
+			}
+			
+			this.parsedVersion = Version.decodeVersionInformation(versionBits);
+			if (this.parsedVersion != null && this.parsedVersion.DimensionForVersion == dimension)
+			{
+				return this.parsedVersion;
+			}
+			
+			// Hmm, failed. Try bottom left: 6 wide by 3 tall
+			versionBits = 0;
+			for (var i = 5; i >= 0; i--)
+			{
+				for (var j = dimension - 9; j >= ijMin; j--)
+				{
+					versionBits = this.copyBit(i, j, versionBits);
+				}
+			}
+			
+			this.parsedVersion = Version.decodeVersionInformation(versionBits);
+			if (this.parsedVersion != null && this.parsedVersion.DimensionForVersion == dimension)
+			{
+				return this.parsedVersion;
+			}
+			throw "Error readVersion";
+		}
+	this.readCodewords=function()
+		{
+			
+			var formatInfo = this.readFormatInformation();
+			var version = this.readVersion();
+			
+			// Get the data mask for the format used in this QR Code. This will exclude
+			// some bits from reading as we wind through the bit matrix.
+			var dataMask = DataMask.forReference( formatInfo.DataMask);
+			var dimension = this.bitMatrix.Dimension;
+			dataMask.unmaskBitMatrix(this.bitMatrix, dimension);
+			
+			var functionPattern = version.buildFunctionPattern();
+			
+			var readingUp = true;
+			var result = new Array(version.TotalCodewords);
+			var resultOffset = 0;
+			var currentByte = 0;
+			var bitsRead = 0;
+			// Read columns in pairs, from right to left
+			for (var j = dimension - 1; j > 0; j -= 2)
+			{
+				if (j == 6)
+				{
+					// Skip whole column with vertical alignment pattern;
+					// saves time and makes the other code proceed more cleanly
+					j--;
+				}
+				// Read alternatingly from bottom to top then top to bottom
+				for (var count = 0; count < dimension; count++)
+				{
+					var i = readingUp?dimension - 1 - count:count;
+					for (var col = 0; col < 2; col++)
+					{
+						// Ignore bits covered by the function pattern
+						if (!functionPattern.get_Renamed(j - col, i))
+						{
+							// Read a bit
+							bitsRead++;
+							currentByte <<= 1;
+							if (this.bitMatrix.get_Renamed(j - col, i))
+							{
+								currentByte |= 1;
+							}
+							// If we've made a whole byte, save it off
+							if (bitsRead == 8)
+							{
+								result[resultOffset++] =  currentByte;
+								bitsRead = 0;
+								currentByte = 0;
+							}
+						}
+					}
+				}
+				readingUp ^= true; // readingUp = !readingUp; // switch directions
+			}
+			if (resultOffset != version.TotalCodewords)
+			{
+				throw "Error readCodewords";
+			}
+			return result;
+		}
+}

+ 117 - 0
h5/datablock.js

@@ -0,0 +1,117 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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 DataBlock(numDataCodewords,  codewords)
+{
+	this.numDataCodewords = numDataCodewords;
+	this.codewords = codewords;
+	
+	this.__defineGetter__("NumDataCodewords", function()
+	{
+		return this.numDataCodewords;
+	});
+	this.__defineGetter__("Codewords", function()
+	{
+		return this.codewords;
+	});
+}	
+	
+DataBlock.getDataBlocks=function(rawCodewords,  version,  ecLevel)
+{
+	
+	if (rawCodewords.length != version.TotalCodewords)
+	{
+		throw "ArgumentException";
+	}
+	
+	// Figure out the number and size of data blocks used by this version and
+	// error correction level
+	var ecBlocks = version.getECBlocksForLevel(ecLevel);
+	
+	// First count the total number of data blocks
+	var totalBlocks = 0;
+	var ecBlockArray = ecBlocks.getECBlocks();
+	for (var i = 0; i < ecBlockArray.length; i++)
+	{
+		totalBlocks += ecBlockArray[i].Count;
+	}
+	
+	// Now establish DataBlocks of the appropriate size and number of data codewords
+	var result = new Array(totalBlocks);
+	var numResultBlocks = 0;
+	for (var j = 0; j < ecBlockArray.length; j++)
+	{
+		var ecBlock = ecBlockArray[j];
+		for (var i = 0; i < ecBlock.Count; i++)
+		{
+			var numDataCodewords = ecBlock.DataCodewords;
+			var numBlockCodewords = ecBlocks.ECCodewordsPerBlock + numDataCodewords;
+			result[numResultBlocks++] = new DataBlock(numDataCodewords, new Array(numBlockCodewords));
+		}
+	}
+	
+	// All blocks have the same amount of data, except that the last n
+	// (where n may be 0) have 1 more byte. Figure out where these start.
+	var shorterBlocksTotalCodewords = result[0].codewords.length;
+	var longerBlocksStartAt = result.length - 1;
+	while (longerBlocksStartAt >= 0)
+	{
+		var numCodewords = result[longerBlocksStartAt].codewords.length;
+		if (numCodewords == shorterBlocksTotalCodewords)
+		{
+			break;
+		}
+		longerBlocksStartAt--;
+	}
+	longerBlocksStartAt++;
+	
+	var shorterBlocksNumDataCodewords = shorterBlocksTotalCodewords - ecBlocks.ECCodewordsPerBlock;
+	// The last elements of result may be 1 element longer;
+	// first fill out as many elements as all of them have
+	var rawCodewordsOffset = 0;
+	for (var i = 0; i < shorterBlocksNumDataCodewords; i++)
+	{
+		for (var j = 0; j < numResultBlocks; j++)
+		{
+			result[j].codewords[i] = rawCodewords[rawCodewordsOffset++];
+		}
+	}
+	// Fill out the last data block in the longer ones
+	for (var j = longerBlocksStartAt; j < numResultBlocks; j++)
+	{
+		result[j].codewords[shorterBlocksNumDataCodewords] = rawCodewords[rawCodewordsOffset++];
+	}
+	// Now add in error correction blocks
+	var max = result[0].codewords.length;
+	for (var i = shorterBlocksNumDataCodewords; i < max; i++)
+	{
+		for (var j = 0; j < numResultBlocks; j++)
+		{
+			var iOffset = j < longerBlocksStartAt?i:i + 1;
+			result[j].codewords[iOffset] = rawCodewords[rawCodewordsOffset++];
+		}
+	}
+	return result;
+}

+ 325 - 0
h5/databr.js

@@ -0,0 +1,325 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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 QRCodeDataBlockReader(blocks,  version,  numErrorCorrectionCode)
+{
+	this.blockPointer = 0;
+	this.bitPointer = 7;
+	this.dataLength = 0;
+	this.blocks = blocks;
+	this.numErrorCorrectionCode = numErrorCorrectionCode;
+	if (version <= 9)
+		this.dataLengthMode = 0;
+	else if (version >= 10 && version <= 26)
+		this.dataLengthMode = 1;
+	else if (version >= 27 && version <= 40)
+		this.dataLengthMode = 2;
+		
+	this.getNextBits = function( numBits)
+		{			
+			var bits = 0;
+			if (numBits < this.bitPointer + 1)
+			{
+				// next word fits into current data block
+				var mask = 0;
+				for (var i = 0; i < numBits; i++)
+				{
+					mask += (1 << i);
+				}
+				mask <<= (this.bitPointer - numBits + 1);
+				
+				bits = (this.blocks[this.blockPointer] & mask) >> (this.bitPointer - numBits + 1);
+				this.bitPointer -= numBits;
+				return bits;
+			}
+			else if (numBits < this.bitPointer + 1 + 8)
+			{
+				// next word crosses 2 data blocks
+				var mask1 = 0;
+				for (var i = 0; i < this.bitPointer + 1; i++)
+				{
+					mask1 += (1 << i);
+				}
+				bits = (this.blocks[this.blockPointer] & mask1) << (numBits - (this.bitPointer + 1));
+                this.blockPointer++;
+				bits += ((this.blocks[this.blockPointer]) >> (8 - (numBits - (this.bitPointer + 1))));
+				
+				this.bitPointer = this.bitPointer - numBits % 8;
+				if (this.bitPointer < 0)
+				{
+					this.bitPointer = 8 + this.bitPointer;
+				}
+				return bits;
+			}
+			else if (numBits < this.bitPointer + 1 + 16)
+			{
+				// next word crosses 3 data blocks
+				var mask1 = 0; // mask of first block
+				var mask3 = 0; // mask of 3rd block
+				//bitPointer + 1 : number of bits of the 1st block
+				//8 : number of the 2nd block (note that use already 8bits because next word uses 3 data blocks)
+				//numBits - (bitPointer + 1 + 8) : number of bits of the 3rd block 
+				for (var i = 0; i < this.bitPointer + 1; i++)
+				{
+					mask1 += (1 << i);
+				}
+				var bitsFirstBlock = (this.blocks[this.blockPointer] & mask1) << (numBits - (this.bitPointer + 1));
+				this.blockPointer++;
+				
+				var bitsSecondBlock = this.blocks[this.blockPointer] << (numBits - (this.bitPointer + 1 + 8));
+				this.blockPointer++;
+				
+				for (var i = 0; i < numBits - (this.bitPointer + 1 + 8); i++)
+				{
+					mask3 += (1 << i);
+				}
+				mask3 <<= 8 - (numBits - (this.bitPointer + 1 + 8));
+				var bitsThirdBlock = (this.blocks[this.blockPointer] & mask3) >> (8 - (numBits - (this.bitPointer + 1 + 8)));
+				
+				bits = bitsFirstBlock + bitsSecondBlock + bitsThirdBlock;
+				this.bitPointer = this.bitPointer - (numBits - 8) % 8;
+				if (this.bitPointer < 0)
+				{
+					this.bitPointer = 8 + this.bitPointer;
+				}
+				return bits;
+			}
+			else
+			{
+				return 0;
+			}
+		}
+	this.NextMode=function()
+	{
+		if ((this.blockPointer > this.blocks.length - this.numErrorCorrectionCode - 2))
+			return 0;
+		else
+			return this.getNextBits(4);
+	}
+	this.getDataLength=function( modeIndicator)
+		{
+			var index = 0;
+			while (true)
+			{
+				if ((modeIndicator >> index) == 1)
+					break;
+				index++;
+			}
+			
+			return this.getNextBits(qrcode.sizeOfDataLengthInfo[this.dataLengthMode][index]);
+		}
+	this.getRomanAndFigureString=function( dataLength)
+		{
+			var length = dataLength;
+			var intData = 0;
+			var strData = "";
+			var tableRomanAndFigure = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ' ', '$', '%', '*', '+', '-', '.', '/', ':');
+			do 
+			{
+				if (length > 1)
+				{
+					intData = this.getNextBits(11);
+					var firstLetter = Math.floor(intData / 45);
+					var secondLetter = intData % 45;
+					strData += tableRomanAndFigure[firstLetter];
+					strData += tableRomanAndFigure[secondLetter];
+					length -= 2;
+				}
+				else if (length == 1)
+				{
+					intData = this.getNextBits(6);
+					strData += tableRomanAndFigure[intData];
+					length -= 1;
+				}
+			}
+			while (length > 0);
+			
+			return strData;
+		}
+	this.getFigureString=function( dataLength)
+		{
+			var length = dataLength;
+			var intData = 0;
+			var strData = "";
+			do 
+			{
+				if (length >= 3)
+				{
+					intData = this.getNextBits(10);
+					if (intData < 100)
+						strData += "0";
+					if (intData < 10)
+						strData += "0";
+					length -= 3;
+				}
+				else if (length == 2)
+				{
+					intData = this.getNextBits(7);
+					if (intData < 10)
+						strData += "0";
+					length -= 2;
+				}
+				else if (length == 1)
+				{
+					intData = this.getNextBits(4);
+					length -= 1;
+				}
+				strData += intData;
+			}
+			while (length > 0);
+			
+			return strData;
+		}
+	this.get8bitByteArray=function( dataLength)
+		{
+			var length = dataLength;
+			var intData = 0;
+			var output = new Array();
+			
+			do 
+			{
+				intData = this.getNextBits(8);
+				output.push( intData);
+				length--;
+			}
+			while (length > 0);
+			return output;
+		}
+    this.getKanjiString=function( dataLength)
+		{
+			var length = dataLength;
+			var intData = 0;
+			var unicodeString = "";
+			do 
+			{
+				intData = getNextBits(13);
+				var lowerByte = intData % 0xC0;
+				var higherByte = intData / 0xC0;
+				
+				var tempWord = (higherByte << 8) + lowerByte;
+				var shiftjisWord = 0;
+				if (tempWord + 0x8140 <= 0x9FFC)
+				{
+					// between 8140 - 9FFC on Shift_JIS character set
+					shiftjisWord = tempWord + 0x8140;
+				}
+				else
+				{
+					// between E040 - EBBF on Shift_JIS character set
+					shiftjisWord = tempWord + 0xC140;
+				}
+				
+				//var tempByte = new Array(0,0);
+				//tempByte[0] = (sbyte) (shiftjisWord >> 8);
+				//tempByte[1] = (sbyte) (shiftjisWord & 0xFF);
+				//unicodeString += new String(SystemUtils.ToCharArray(SystemUtils.ToByteArray(tempByte)));
+                unicodeString += String.fromCharCode(shiftjisWord);
+				length--;
+			}
+			while (length > 0);
+			
+			
+			return unicodeString;
+		}
+
+	this.__defineGetter__("DataByte", function()
+	{
+		var output = new Array();
+		var MODE_NUMBER = 1;
+	    var MODE_ROMAN_AND_NUMBER = 2;
+	    var MODE_8BIT_BYTE = 4;
+	    var MODE_KANJI = 8;
+		do 
+					{
+						var mode = this.NextMode();
+						//canvas.println("mode: " + mode);
+						if (mode == 0)
+						{
+							if (output.length > 0)
+								break;
+							else
+								throw "Empty data block";
+						}
+						//if (mode != 1 && mode != 2 && mode != 4 && mode != 8)
+						//	break;
+						//}
+						if (mode != MODE_NUMBER && mode != MODE_ROMAN_AND_NUMBER && mode != MODE_8BIT_BYTE && mode != MODE_KANJI)
+						{
+							/*					canvas.println("Invalid mode: " + mode);
+							mode = guessMode(mode);
+							canvas.println("Guessed mode: " + mode); */
+							throw "Invalid mode: " + mode + " in (block:" + this.blockPointer + " bit:" + this.bitPointer + ")";
+						}
+						dataLength = this.getDataLength(mode);
+						if (dataLength < 1)
+							throw "Invalid data length: " + dataLength;
+						//canvas.println("length: " + dataLength);
+						switch (mode)
+						{
+							
+							case MODE_NUMBER: 
+								//canvas.println("Mode: Figure");
+								var temp_str = this.getFigureString(dataLength);
+								var ta = new Array(temp_str.length);
+								for(var j=0;j<temp_str.length;j++)
+									ta[j]=temp_str.charCodeAt(j);
+								output.push(ta);
+								break;
+							
+							case MODE_ROMAN_AND_NUMBER: 
+								//canvas.println("Mode: Roman&Figure");
+								var temp_str = this.getRomanAndFigureString(dataLength);
+								var ta = new Array(temp_str.length);
+								for(var j=0;j<temp_str.length;j++)
+									ta[j]=temp_str.charCodeAt(j);
+								output.push(ta );
+								//output.Write(SystemUtils.ToByteArray(temp_sbyteArray2), 0, temp_sbyteArray2.Length);
+								break;
+							
+							case MODE_8BIT_BYTE: 
+								//canvas.println("Mode: 8bit Byte");
+								//sbyte[] temp_sbyteArray3;
+								var temp_sbyteArray3 = this.get8bitByteArray(dataLength);
+								output.push(temp_sbyteArray3);
+								//output.Write(SystemUtils.ToByteArray(temp_sbyteArray3), 0, temp_sbyteArray3.Length);
+								break;
+							
+							case MODE_KANJI: 
+								//canvas.println("Mode: Kanji");
+								//sbyte[] temp_sbyteArray4;
+								//temp_sbyteArray4 = SystemUtils.ToSByteArray(SystemUtils.ToByteArray(getKanjiString(dataLength)));
+								//output.Write(SystemUtils.ToByteArray(temp_sbyteArray4), 0, temp_sbyteArray4.Length);
+                                var temp_str = this.getKanjiString(dataLength);
+								output.push(temp_str);
+								break;
+							}
+						//			
+						//canvas.println("DataLength: " + dataLength);
+						//Console.out.println(dataString);
+					}
+					while (true);
+		return output;
+	});
+}

+ 207 - 0
h5/datamask.js

@@ -0,0 +1,207 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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.
+*/
+
+
+DataMask = {};
+
+DataMask.forReference = function(reference)
+{
+	if (reference < 0 || reference > 7)
+	{
+		throw "System.ArgumentException";
+	}
+	return DataMask.DATA_MASKS[reference];
+}
+
+function DataMask000()
+{
+	this.unmaskBitMatrix=function(bits,  dimension)
+	{
+		for (var i = 0; i < dimension; i++)
+		{
+			for (var j = 0; j < dimension; j++)
+			{
+				if (this.isMasked(i, j))
+				{
+					bits.flip(j, i);
+				}
+			}
+		}
+	}
+	this.isMasked=function( i,  j)
+	{
+		return ((i + j) & 0x01) == 0;
+	}
+}
+
+function DataMask001()
+{
+	this.unmaskBitMatrix=function(bits,  dimension)
+	{
+		for (var i = 0; i < dimension; i++)
+		{
+			for (var j = 0; j < dimension; j++)
+			{
+				if (this.isMasked(i, j))
+				{
+					bits.flip(j, i);
+				}
+			}
+		}
+	}
+	this.isMasked=function( i,  j)
+	{
+		return (i & 0x01) == 0;
+	}
+}
+
+function DataMask010()
+{
+	this.unmaskBitMatrix=function(bits,  dimension)
+	{
+		for (var i = 0; i < dimension; i++)
+		{
+			for (var j = 0; j < dimension; j++)
+			{
+				if (this.isMasked(i, j))
+				{
+					bits.flip(j, i);
+				}
+			}
+		}
+	}
+	this.isMasked=function( i,  j)
+	{
+		return j % 3 == 0;
+	}
+}
+
+function DataMask011()
+{
+	this.unmaskBitMatrix=function(bits,  dimension)
+	{
+		for (var i = 0; i < dimension; i++)
+		{
+			for (var j = 0; j < dimension; j++)
+			{
+				if (this.isMasked(i, j))
+				{
+					bits.flip(j, i);
+				}
+			}
+		}
+	}
+	this.isMasked=function( i,  j)
+	{
+		return (i + j) % 3 == 0;
+	}
+}
+
+function DataMask100()
+{
+	this.unmaskBitMatrix=function(bits,  dimension)
+	{
+		for (var i = 0; i < dimension; i++)
+		{
+			for (var j = 0; j < dimension; j++)
+			{
+				if (this.isMasked(i, j))
+				{
+					bits.flip(j, i);
+				}
+			}
+		}
+	}
+	this.isMasked=function( i,  j)
+	{
+		return (((URShift(i, 1)) + (j / 3)) & 0x01) == 0;
+	}
+}
+
+function DataMask101()
+{
+	this.unmaskBitMatrix=function(bits,  dimension)
+	{
+		for (var i = 0; i < dimension; i++)
+		{
+			for (var j = 0; j < dimension; j++)
+			{
+				if (this.isMasked(i, j))
+				{
+					bits.flip(j, i);
+				}
+			}
+		}
+	}
+	this.isMasked=function( i,  j)
+	{
+		var temp = i * j;
+		return (temp & 0x01) + (temp % 3) == 0;
+	}
+}
+
+function DataMask110()
+{
+	this.unmaskBitMatrix=function(bits,  dimension)
+	{
+		for (var i = 0; i < dimension; i++)
+		{
+			for (var j = 0; j < dimension; j++)
+			{
+				if (this.isMasked(i, j))
+				{
+					bits.flip(j, i);
+				}
+			}
+		}
+	}
+	this.isMasked=function( i,  j)
+	{
+		var temp = i * j;
+		return (((temp & 0x01) + (temp % 3)) & 0x01) == 0;
+	}
+}
+function DataMask111()
+{
+	this.unmaskBitMatrix=function(bits,  dimension)
+	{
+		for (var i = 0; i < dimension; i++)
+		{
+			for (var j = 0; j < dimension; j++)
+			{
+				if (this.isMasked(i, j))
+				{
+					bits.flip(j, i);
+				}
+			}
+		}
+	}
+	this.isMasked=function( i,  j)
+	{
+		return ((((i + j) & 0x01) + ((i * j) % 3)) & 0x01) == 0;
+	}
+}
+
+DataMask.DATA_MASKS = new Array(new DataMask000(), new DataMask001(), new DataMask010(), new DataMask011(), new DataMask100(), new DataMask101(), new DataMask110(), new DataMask111());
+

+ 95 - 0
h5/decoder.js

@@ -0,0 +1,95 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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.
+*/
+
+
+Decoder={};
+Decoder.rsDecoder = new ReedSolomonDecoder(GF256.QR_CODE_FIELD);
+
+Decoder.correctErrors=function( codewordBytes,  numDataCodewords)
+{
+	var numCodewords = codewordBytes.length;
+	// First read into an array of ints
+	var codewordsInts = new Array(numCodewords);
+	for (var i = 0; i < numCodewords; i++)
+	{
+		codewordsInts[i] = codewordBytes[i] & 0xFF;
+	}
+	var numECCodewords = codewordBytes.length - numDataCodewords;
+	try
+	{
+		Decoder.rsDecoder.decode(codewordsInts, numECCodewords);
+		//var corrector = new ReedSolomon(codewordsInts, numECCodewords);
+		//corrector.correct();
+	}
+	catch ( rse)
+	{
+		throw rse;
+	}
+	// Copy back into array of bytes -- only need to worry about the bytes that were data
+	// We don't care about errors in the error-correction codewords
+	for (var i = 0; i < numDataCodewords; i++)
+	{
+		codewordBytes[i] =  codewordsInts[i];
+	}
+}
+
+Decoder.decode=function(bits)
+{
+	var parser = new BitMatrixParser(bits);
+	var version = parser.readVersion();
+	var ecLevel = parser.readFormatInformation().ErrorCorrectionLevel;
+	
+	// Read codewords
+	var codewords = parser.readCodewords();
+
+	// Separate into data blocks
+	var dataBlocks = DataBlock.getDataBlocks(codewords, version, ecLevel);
+	
+	// Count total number of data bytes
+	var totalBytes = 0;
+	for (var i = 0; i < dataBlocks.length; i++)
+	{
+		totalBytes += dataBlocks[i].NumDataCodewords;
+	}
+	var resultBytes = new Array(totalBytes);
+	var resultOffset = 0;
+	
+	// Error-correct and copy data blocks together into a stream of bytes
+	for (var j = 0; j < dataBlocks.length; j++)
+	{
+		var dataBlock = dataBlocks[j];
+		var codewordBytes = dataBlock.Codewords;
+		var numDataCodewords = dataBlock.NumDataCodewords;
+		Decoder.correctErrors(codewordBytes, numDataCodewords);
+		for (var i = 0; i < numDataCodewords; i++)
+		{
+			resultBytes[resultOffset++] = codewordBytes[i];
+		}
+	}
+	
+	// Decode the contents of that stream of bytes
+	var reader = new QRCodeDataBlockReader(resultBytes, version.VersionNumber, ecLevel.Bits);
+	return reader;
+	//return DecodedBitStreamParser.decode(resultBytes, version, ecLevel);
+}

+ 413 - 0
h5/detector.js

@@ -0,0 +1,413 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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 PerspectiveTransform( a11,  a21,  a31,  a12,  a22,  a32,  a13,  a23,  a33)
+{
+	this.a11 = a11;
+	this.a12 = a12;
+	this.a13 = a13;
+	this.a21 = a21;
+	this.a22 = a22;
+	this.a23 = a23;
+	this.a31 = a31;
+	this.a32 = a32;
+	this.a33 = a33;
+	this.transformPoints1=function( points)
+		{
+			var max = points.length;
+			var a11 = this.a11;
+			var a12 = this.a12;
+			var a13 = this.a13;
+			var a21 = this.a21;
+			var a22 = this.a22;
+			var a23 = this.a23;
+			var a31 = this.a31;
+			var a32 = this.a32;
+			var a33 = this.a33;
+			for (var i = 0; i < max; i += 2)
+			{
+				var x = points[i];
+				var y = points[i + 1];
+				var denominator = a13 * x + a23 * y + a33;
+				points[i] = (a11 * x + a21 * y + a31) / denominator;
+				points[i + 1] = (a12 * x + a22 * y + a32) / denominator;
+			}
+		}
+	this. transformPoints2=function(xValues, yValues)
+		{
+			var n = xValues.length;
+			for (var i = 0; i < n; i++)
+			{
+				var x = xValues[i];
+				var y = yValues[i];
+				var denominator = this.a13 * x + this.a23 * y + this.a33;
+				xValues[i] = (this.a11 * x + this.a21 * y + this.a31) / denominator;
+				yValues[i] = (this.a12 * x + this.a22 * y + this.a32) / denominator;
+			}
+		}
+
+	this.buildAdjoint=function()
+		{
+			// Adjoint is the transpose of the cofactor matrix:
+			return new PerspectiveTransform(this.a22 * this.a33 - this.a23 * this.a32, this.a23 * this.a31 - this.a21 * this.a33, this.a21 * this.a32 - this.a22 * this.a31, this.a13 * this.a32 - this.a12 * this.a33, this.a11 * this.a33 - this.a13 * this.a31, this.a12 * this.a31 - this.a11 * this.a32, this.a12 * this.a23 - this.a13 * this.a22, this.a13 * this.a21 - this.a11 * this.a23, this.a11 * this.a22 - this.a12 * this.a21);
+		}
+	this.times=function( other)
+		{
+			return new PerspectiveTransform(this.a11 * other.a11 + this.a21 * other.a12 + this.a31 * other.a13, this.a11 * other.a21 + this.a21 * other.a22 + this.a31 * other.a23, this.a11 * other.a31 + this.a21 * other.a32 + this.a31 * other.a33, this.a12 * other.a11 + this.a22 * other.a12 + this.a32 * other.a13, this.a12 * other.a21 + this.a22 * other.a22 + this.a32 * other.a23, this.a12 * other.a31 + this.a22 * other.a32 + this.a32 * other.a33, this.a13 * other.a11 + this.a23 * other.a12 +this.a33 * other.a13, this.a13 * other.a21 + this.a23 * other.a22 + this.a33 * other.a23, this.a13 * other.a31 + this.a23 * other.a32 + this.a33 * other.a33);
+		}
+
+}
+
+PerspectiveTransform.quadrilateralToQuadrilateral=function( x0,  y0,  x1,  y1,  x2,  y2,  x3,  y3,  x0p,  y0p,  x1p,  y1p,  x2p,  y2p,  x3p,  y3p)
+{
+	
+	var qToS = this.quadrilateralToSquare(x0, y0, x1, y1, x2, y2, x3, y3);
+	var sToQ = this.squareToQuadrilateral(x0p, y0p, x1p, y1p, x2p, y2p, x3p, y3p);
+	return sToQ.times(qToS);
+}
+
+PerspectiveTransform.squareToQuadrilateral=function( x0,  y0,  x1,  y1,  x2,  y2,  x3,  y3)
+{
+	 dy2 = y3 - y2;
+	 dy3 = y0 - y1 + y2 - y3;
+	if (dy2 == 0.0 && dy3 == 0.0)
+	{
+		return new PerspectiveTransform(x1 - x0, x2 - x1, x0, y1 - y0, y2 - y1, y0, 0.0, 0.0, 1.0);
+	}
+	else
+	{
+		 dx1 = x1 - x2;
+		 dx2 = x3 - x2;
+		 dx3 = x0 - x1 + x2 - x3;
+		 dy1 = y1 - y2;
+		 denominator = dx1 * dy2 - dx2 * dy1;
+		 a13 = (dx3 * dy2 - dx2 * dy3) / denominator;
+		 a23 = (dx1 * dy3 - dx3 * dy1) / denominator;
+		return new PerspectiveTransform(x1 - x0 + a13 * x1, x3 - x0 + a23 * x3, x0, y1 - y0 + a13 * y1, y3 - y0 + a23 * y3, y0, a13, a23, 1.0);
+	}
+}
+
+PerspectiveTransform.quadrilateralToSquare=function( x0,  y0,  x1,  y1,  x2,  y2,  x3,  y3)
+{
+	// Here, the adjoint serves as the inverse:
+	return this.squareToQuadrilateral(x0, y0, x1, y1, x2, y2, x3, y3).buildAdjoint();
+}
+
+function DetectorResult(bits,  points)
+{
+	this.bits = bits;
+	this.points = points;
+}
+
+
+function Detector(image)
+{
+	this.image=image;
+	this.resultPointCallback = null;
+	
+	this.sizeOfBlackWhiteBlackRun=function( fromX,  fromY,  toX,  toY)
+		{
+			// Mild variant of Bresenham's algorithm;
+			// see http://en.wikipedia.org/wiki/Bresenham's_line_algorithm
+			var steep = Math.abs(toY - fromY) > Math.abs(toX - fromX);
+			if (steep)
+			{
+				var temp = fromX;
+				fromX = fromY;
+				fromY = temp;
+				temp = toX;
+				toX = toY;
+				toY = temp;
+			}
+			
+			var dx = Math.abs(toX - fromX);
+			var dy = Math.abs(toY - fromY);
+			var error = - dx >> 1;
+			var ystep = fromY < toY?1:- 1;
+			var xstep = fromX < toX?1:- 1;
+			var state = 0; // In black pixels, looking for white, first or second time
+			for (var x = fromX, y = fromY; x != toX; x += xstep)
+			{
+				
+				var realX = steep?y:x;
+				var realY = steep?x:y;
+				if (state == 1)
+				{
+					// In white pixels, looking for black
+					if (this.image[realX + realY*qrcode.width])
+					{
+						state++;
+					}
+				}
+				else
+				{
+					if (!this.image[realX + realY*qrcode.width])
+					{
+						state++;
+					}
+				}
+				
+				if (state == 3)
+				{
+					// Found black, white, black, and stumbled back onto white; done
+					var diffX = x - fromX;
+					var diffY = y - fromY;
+					return  Math.sqrt( (diffX * diffX + diffY * diffY));
+				}
+				error += dy;
+				if (error > 0)
+				{
+					if (y == toY)
+					{
+						break;
+					}
+					y += ystep;
+					error -= dx;
+				}
+			}
+			var diffX2 = toX - fromX;
+			var diffY2 = toY - fromY;
+			return  Math.sqrt( (diffX2 * diffX2 + diffY2 * diffY2));
+		}
+
+	
+	this.sizeOfBlackWhiteBlackRunBothWays=function( fromX,  fromY,  toX,  toY)
+		{
+			
+			var result = this.sizeOfBlackWhiteBlackRun(fromX, fromY, toX, toY);
+			
+			// Now count other way -- don't run off image though of course
+			var scale = 1.0;
+			var otherToX = fromX - (toX - fromX);
+			if (otherToX < 0)
+			{
+				scale =  fromX /  (fromX - otherToX);
+				otherToX = 0;
+			}
+			else if (otherToX >= qrcode.width)
+			{
+				scale =  (qrcode.width - 1 - fromX) /  (otherToX - fromX);
+				otherToX = qrcode.width - 1;
+			}
+			var otherToY = Math.floor (fromY - (toY - fromY) * scale);
+			
+			scale = 1.0;
+			if (otherToY < 0)
+			{
+				scale =  fromY /  (fromY - otherToY);
+				otherToY = 0;
+			}
+			else if (otherToY >= qrcode.height)
+			{
+				scale =  (qrcode.height - 1 - fromY) /  (otherToY - fromY);
+				otherToY = qrcode.height - 1;
+			}
+			otherToX = Math.floor (fromX + (otherToX - fromX) * scale);
+			
+			result += this.sizeOfBlackWhiteBlackRun(fromX, fromY, otherToX, otherToY);
+			return result - 1.0; // -1 because we counted the middle pixel twice
+		}
+		
+
+	
+	this.calculateModuleSizeOneWay=function( pattern,  otherPattern)
+		{
+			var moduleSizeEst1 = this.sizeOfBlackWhiteBlackRunBothWays(Math.floor( pattern.X), Math.floor( pattern.Y), Math.floor( otherPattern.X), Math.floor(otherPattern.Y));
+			var moduleSizeEst2 = this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(otherPattern.X), Math.floor(otherPattern.Y), Math.floor( pattern.X), Math.floor(pattern.Y));
+			if (isNaN(moduleSizeEst1))
+			{
+				return moduleSizeEst2 / 7.0;
+			}
+			if (isNaN(moduleSizeEst2))
+			{
+				return moduleSizeEst1 / 7.0;
+			}
+			// Average them, and divide by 7 since we've counted the width of 3 black modules,
+			// and 1 white and 1 black module on either side. Ergo, divide sum by 14.
+			return (moduleSizeEst1 + moduleSizeEst2) / 14.0;
+		}
+
+	
+	this.calculateModuleSize=function( topLeft,  topRight,  bottomLeft)
+		{
+			// Take the average
+			return (this.calculateModuleSizeOneWay(topLeft, topRight) + this.calculateModuleSizeOneWay(topLeft, bottomLeft)) / 2.0;
+		}
+
+	this.distance=function( pattern1,  pattern2)
+	{
+		xDiff = pattern1.X - pattern2.X;
+		yDiff = pattern1.Y - pattern2.Y;
+		return  Math.sqrt( (xDiff * xDiff + yDiff * yDiff));
+	}
+	this.computeDimension=function( topLeft,  topRight,  bottomLeft,  moduleSize)
+		{
+			
+			var tltrCentersDimension = Math.round(this.distance(topLeft, topRight) / moduleSize);
+			var tlblCentersDimension = Math.round(this.distance(topLeft, bottomLeft) / moduleSize);
+			var dimension = ((tltrCentersDimension + tlblCentersDimension) >> 1) + 7;
+			switch (dimension & 0x03)
+			{
+				
+				// mod 4
+				case 0: 
+					dimension++;
+					break;
+					// 1? do nothing
+				
+				case 2: 
+					dimension--;
+					break;
+				
+				case 3: 
+					throw "Error";
+				}
+			return dimension;
+		}
+
+	this.findAlignmentInRegion=function( overallEstModuleSize,  estAlignmentX,  estAlignmentY,  allowanceFactor)
+		{
+			// Look for an alignment pattern (3 modules in size) around where it
+			// should be
+			var allowance = Math.floor (allowanceFactor * overallEstModuleSize);
+			var alignmentAreaLeftX = Math.max(0, estAlignmentX - allowance);
+			var alignmentAreaRightX = Math.min(qrcode.width - 1, estAlignmentX + allowance);
+			if (alignmentAreaRightX - alignmentAreaLeftX < overallEstModuleSize * 3)
+			{
+				throw "Error";
+			}
+			
+			var alignmentAreaTopY = Math.max(0, estAlignmentY - allowance);
+			var alignmentAreaBottomY = Math.min(qrcode.height - 1, estAlignmentY + allowance);
+			
+			var alignmentFinder = new AlignmentPatternFinder(this.image, alignmentAreaLeftX, alignmentAreaTopY, alignmentAreaRightX - alignmentAreaLeftX, alignmentAreaBottomY - alignmentAreaTopY, overallEstModuleSize, this.resultPointCallback);
+			return alignmentFinder.find();
+		}
+		
+	this.createTransform=function( topLeft,  topRight,  bottomLeft, alignmentPattern, dimension)
+		{
+			var dimMinusThree =  dimension - 3.5;
+			var bottomRightX;
+			var bottomRightY;
+			var sourceBottomRightX;
+			var sourceBottomRightY;
+			if (alignmentPattern != null)
+			{
+				bottomRightX = alignmentPattern.X;
+				bottomRightY = alignmentPattern.Y;
+				sourceBottomRightX = sourceBottomRightY = dimMinusThree - 3.0;
+			}
+			else
+			{
+				// Don't have an alignment pattern, just make up the bottom-right point
+				bottomRightX = (topRight.X - topLeft.X) + bottomLeft.X;
+				bottomRightY = (topRight.Y - topLeft.Y) + bottomLeft.Y;
+				sourceBottomRightX = sourceBottomRightY = dimMinusThree;
+			}
+			
+			var transform = PerspectiveTransform.quadrilateralToQuadrilateral(3.5, 3.5, dimMinusThree, 3.5, sourceBottomRightX, sourceBottomRightY, 3.5, dimMinusThree, topLeft.X, topLeft.Y, topRight.X, topRight.Y, bottomRightX, bottomRightY, bottomLeft.X, bottomLeft.Y);
+			
+			return transform;
+		}		
+	
+	this.sampleGrid=function( image,  transform,  dimension)
+		{
+			
+			var sampler = GridSampler;
+			return sampler.sampleGrid3(image, dimension, transform);
+		}
+	
+	this.processFinderPatternInfo = function( info)
+		{
+			
+			var topLeft = info.TopLeft;
+			var topRight = info.TopRight;
+			var bottomLeft = info.BottomLeft;
+			
+			var moduleSize = this.calculateModuleSize(topLeft, topRight, bottomLeft);
+			if (moduleSize < 1.0)
+			{
+				throw "Error";
+			}
+			var dimension = this.computeDimension(topLeft, topRight, bottomLeft, moduleSize);
+			var provisionalVersion = Version.getProvisionalVersionForDimension(dimension);
+			var modulesBetweenFPCenters = provisionalVersion.DimensionForVersion - 7;
+			
+			var alignmentPattern = null;
+			// Anything above version 1 has an alignment pattern
+			if (provisionalVersion.AlignmentPatternCenters.length > 0)
+			{
+				
+				// Guess where a "bottom right" finder pattern would have been
+				var bottomRightX = topRight.X - topLeft.X + bottomLeft.X;
+				var bottomRightY = topRight.Y - topLeft.Y + bottomLeft.Y;
+				
+				// Estimate that alignment pattern is closer by 3 modules
+				// from "bottom right" to known top left location
+				var correctionToTopLeft = 1.0 - 3.0 /  modulesBetweenFPCenters;
+				var estAlignmentX = Math.floor (topLeft.X + correctionToTopLeft * (bottomRightX - topLeft.X));
+				var estAlignmentY = Math.floor (topLeft.Y + correctionToTopLeft * (bottomRightY - topLeft.Y));
+				
+				// Kind of arbitrary -- expand search radius before giving up
+				for (var i = 4; i <= 16; i <<= 1)
+				{
+					//try
+					//{
+						alignmentPattern = this.findAlignmentInRegion(moduleSize, estAlignmentX, estAlignmentY,  i);
+						break;
+					//}
+					//catch (re)
+					//{
+						// try next round
+					//}
+				}
+				// If we didn't find alignment pattern... well try anyway without it
+			}
+			
+			var transform = this.createTransform(topLeft, topRight, bottomLeft, alignmentPattern, dimension);
+			
+			var bits = this.sampleGrid(this.image, transform, dimension);
+			
+			var points;
+			if (alignmentPattern == null)
+			{
+				points = new Array(bottomLeft, topLeft, topRight);
+			}
+			else
+			{
+				points = new Array(bottomLeft, topLeft, topRight, alignmentPattern);
+			}
+			return new DetectorResult(bits, points);
+		}
+		
+
+	
+	this.detect=function()
+	{
+		var info =  new FinderPatternFinder().findFinderPattern(this.image);
+			
+		return this.processFinderPatternInfo(info); 
+	}
+}

+ 58 - 0
h5/errorlevel.js

@@ -0,0 +1,58 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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 ErrorCorrectionLevel(ordinal,  bits, name)
+{
+	this.ordinal_Renamed_Field = ordinal;
+	this.bits = bits;
+	this.name = name;
+	this.__defineGetter__("Bits", function()
+	{
+		return this.bits;
+	});
+	this.__defineGetter__("Name", function()
+	{
+		return this.name;
+	});
+	this.ordinal=function()
+	{
+		return this.ordinal_Renamed_Field;
+	}
+}
+
+ErrorCorrectionLevel.forBits=function( bits)
+{
+	if (bits < 0 || bits >= FOR_BITS.length)
+	{
+		throw "ArgumentException";
+	}
+	return FOR_BITS[bits];
+}
+
+var L = new ErrorCorrectionLevel(0, 0x01, "L");
+var M = new ErrorCorrectionLevel(1, 0x00, "M");
+var Q = new ErrorCorrectionLevel(2, 0x03, "Q");
+var H = new ErrorCorrectionLevel(3, 0x02, "H");
+var FOR_BITS = new Array( M, L, H, Q);

+ 649 - 0
h5/findpat.js

@@ -0,0 +1,649 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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.
+*/
+
+
+var MIN_SKIP = 3;
+var MAX_MODULES = 57;
+var INTEGER_MATH_SHIFT = 8;
+var CENTER_QUORUM = 2;
+
+qrcode.orderBestPatterns=function(patterns)
+		{
+			
+			function distance( pattern1,  pattern2)
+			{
+				xDiff = pattern1.X - pattern2.X;
+				yDiff = pattern1.Y - pattern2.Y;
+				return  Math.sqrt( (xDiff * xDiff + yDiff * yDiff));
+			}
+			
+			/// <summary> Returns the z component of the cross product between vectors BC and BA.</summary>
+			function crossProductZ( pointA,  pointB,  pointC)
+			{
+				var bX = pointB.x;
+				var bY = pointB.y;
+				return ((pointC.x - bX) * (pointA.y - bY)) - ((pointC.y - bY) * (pointA.x - bX));
+			}
+
+			
+			// Find distances between pattern centers
+			var zeroOneDistance = distance(patterns[0], patterns[1]);
+			var oneTwoDistance = distance(patterns[1], patterns[2]);
+			var zeroTwoDistance = distance(patterns[0], patterns[2]);
+			
+			var pointA, pointB, pointC;
+			// Assume one closest to other two is B; A and C will just be guesses at first
+			if (oneTwoDistance >= zeroOneDistance && oneTwoDistance >= zeroTwoDistance)
+			{
+				pointB = patterns[0];
+				pointA = patterns[1];
+				pointC = patterns[2];
+			}
+			else if (zeroTwoDistance >= oneTwoDistance && zeroTwoDistance >= zeroOneDistance)
+			{
+				pointB = patterns[1];
+				pointA = patterns[0];
+				pointC = patterns[2];
+			}
+			else
+			{
+				pointB = patterns[2];
+				pointA = patterns[0];
+				pointC = patterns[1];
+			}
+			
+			// Use cross product to figure out whether A and C are correct or flipped.
+			// This asks whether BC x BA has a positive z component, which is the arrangement
+			// we want for A, B, C. If it's negative, then we've got it flipped around and
+			// should swap A and C.
+			if (crossProductZ(pointA, pointB, pointC) < 0.0)
+			{
+				var temp = pointA;
+				pointA = pointC;
+				pointC = temp;
+			}
+			
+			patterns[0] = pointA;
+			patterns[1] = pointB;
+			patterns[2] = pointC;
+		}
+
+
+function FinderPattern(posX, posY,  estimatedModuleSize)
+{
+	this.x=posX;
+	this.y=posY;
+	this.count = 1;
+	this.estimatedModuleSize = estimatedModuleSize;
+	
+	this.__defineGetter__("EstimatedModuleSize", function()
+	{
+		return this.estimatedModuleSize;
+	}); 
+	this.__defineGetter__("Count", function()
+	{
+		return this.count;
+	});
+	this.__defineGetter__("X", function()
+	{
+		return this.x;
+	});
+	this.__defineGetter__("Y", function()
+	{
+		return this.y;
+	});
+	this.incrementCount = function()
+	{
+		this.count++;
+	}
+	this.aboutEquals=function( moduleSize,  i,  j)
+		{
+			if (Math.abs(i - this.y) <= moduleSize && Math.abs(j - this.x) <= moduleSize)
+			{
+				var moduleSizeDiff = Math.abs(moduleSize - this.estimatedModuleSize);
+				return moduleSizeDiff <= 1.0 || moduleSizeDiff / this.estimatedModuleSize <= 1.0;
+			}
+			return false;
+		}
+	
+}
+
+function FinderPatternInfo(patternCenters)
+{
+	this.bottomLeft = patternCenters[0];
+	this.topLeft = patternCenters[1];
+	this.topRight = patternCenters[2];
+	this.__defineGetter__("BottomLeft", function()
+	{
+		return this.bottomLeft;
+	}); 
+	this.__defineGetter__("TopLeft", function()
+	{
+		return this.topLeft;
+	}); 
+	this.__defineGetter__("TopRight", function()
+	{
+		return this.topRight;
+	}); 
+}
+
+function FinderPatternFinder()
+{
+	this.image=null;
+	this.possibleCenters = [];
+	this.hasSkipped = false;
+	this.crossCheckStateCount = new Array(0,0,0,0,0);
+	this.resultPointCallback = null;
+	
+	this.__defineGetter__("CrossCheckStateCount", function()
+	{
+		this.crossCheckStateCount[0] = 0;
+		this.crossCheckStateCount[1] = 0;
+		this.crossCheckStateCount[2] = 0;
+		this.crossCheckStateCount[3] = 0;
+		this.crossCheckStateCount[4] = 0;
+		return this.crossCheckStateCount;
+	}); 
+	
+	this.foundPatternCross=function( stateCount)
+		{
+			var totalModuleSize = 0;
+			for (var i = 0; i < 5; i++)
+			{
+				var count = stateCount[i];
+				if (count == 0)
+				{
+					return false;
+				}
+				totalModuleSize += count;
+			}
+			if (totalModuleSize < 7)
+			{
+				return false;
+			}
+			var moduleSize = Math.floor((totalModuleSize << INTEGER_MATH_SHIFT) / 7);
+			var maxVariance = Math.floor(moduleSize / 2);
+			// Allow less than 50% variance from 1-1-3-1-1 proportions
+			return Math.abs(moduleSize - (stateCount[0] << INTEGER_MATH_SHIFT)) < maxVariance && Math.abs(moduleSize - (stateCount[1] << INTEGER_MATH_SHIFT)) < maxVariance && Math.abs(3 * moduleSize - (stateCount[2] << INTEGER_MATH_SHIFT)) < 3 * maxVariance && Math.abs(moduleSize - (stateCount[3] << INTEGER_MATH_SHIFT)) < maxVariance && Math.abs(moduleSize - (stateCount[4] << INTEGER_MATH_SHIFT)) < maxVariance;
+		}
+	this.centerFromEnd=function( stateCount,  end)
+		{
+			return  (end - stateCount[4] - stateCount[3]) - stateCount[2] / 2.0;
+		}
+	this.crossCheckVertical=function( startI,  centerJ,  maxCount,  originalStateCountTotal)
+		{
+			var image = this.image;
+			
+			var maxI = qrcode.height;
+			var stateCount = this.CrossCheckStateCount;
+			
+			// Start counting up from center
+			var i = startI;
+			while (i >= 0 && image[centerJ + i*qrcode.width])
+			{
+				stateCount[2]++;
+				i--;
+			}
+			if (i < 0)
+			{
+				return NaN;
+			}
+			while (i >= 0 && !image[centerJ +i*qrcode.width] && stateCount[1] <= maxCount)
+			{
+				stateCount[1]++;
+				i--;
+			}
+			// If already too many modules in this state or ran off the edge:
+			if (i < 0 || stateCount[1] > maxCount)
+			{
+				return NaN;
+			}
+			while (i >= 0 && image[centerJ + i*qrcode.width] && stateCount[0] <= maxCount)
+			{
+				stateCount[0]++;
+				i--;
+			}
+			if (stateCount[0] > maxCount)
+			{
+				return NaN;
+			}
+			
+			// Now also count down from center
+			i = startI + 1;
+			while (i < maxI && image[centerJ +i*qrcode.width])
+			{
+				stateCount[2]++;
+				i++;
+			}
+			if (i == maxI)
+			{
+				return NaN;
+			}
+			while (i < maxI && !image[centerJ + i*qrcode.width] && stateCount[3] < maxCount)
+			{
+				stateCount[3]++;
+				i++;
+			}
+			if (i == maxI || stateCount[3] >= maxCount)
+			{
+				return NaN;
+			}
+			while (i < maxI && image[centerJ + i*qrcode.width] && stateCount[4] < maxCount)
+			{
+				stateCount[4]++;
+				i++;
+			}
+			if (stateCount[4] >= maxCount)
+			{
+				return NaN;
+			}
+			
+			// If we found a finder-pattern-like section, but its size is more than 40% different than
+			// the original, assume it's a false positive
+			var stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2] + stateCount[3] + stateCount[4];
+			if (5 * Math.abs(stateCountTotal - originalStateCountTotal) >= 2 * originalStateCountTotal)
+			{
+				return NaN;
+			}
+			
+			return this.foundPatternCross(stateCount)?this.centerFromEnd(stateCount, i):NaN;
+		}
+	this.crossCheckHorizontal=function( startJ,  centerI,  maxCount, originalStateCountTotal)
+		{
+			var image = this.image;
+			
+			var maxJ = qrcode.width;
+			var stateCount = this.CrossCheckStateCount;
+			
+			var j = startJ;
+			while (j >= 0 && image[j+ centerI*qrcode.width])
+			{
+				stateCount[2]++;
+				j--;
+			}
+			if (j < 0)
+			{
+				return NaN;
+			}
+			while (j >= 0 && !image[j+ centerI*qrcode.width] && stateCount[1] <= maxCount)
+			{
+				stateCount[1]++;
+				j--;
+			}
+			if (j < 0 || stateCount[1] > maxCount)
+			{
+				return NaN;
+			}
+			while (j >= 0 && image[j+ centerI*qrcode.width] && stateCount[0] <= maxCount)
+			{
+				stateCount[0]++;
+				j--;
+			}
+			if (stateCount[0] > maxCount)
+			{
+				return NaN;
+			}
+			
+			j = startJ + 1;
+			while (j < maxJ && image[j+ centerI*qrcode.width])
+			{
+				stateCount[2]++;
+				j++;
+			}
+			if (j == maxJ)
+			{
+				return NaN;
+			}
+			while (j < maxJ && !image[j+ centerI*qrcode.width] && stateCount[3] < maxCount)
+			{
+				stateCount[3]++;
+				j++;
+			}
+			if (j == maxJ || stateCount[3] >= maxCount)
+			{
+				return NaN;
+			}
+			while (j < maxJ && image[j+ centerI*qrcode.width] && stateCount[4] < maxCount)
+			{
+				stateCount[4]++;
+				j++;
+			}
+			if (stateCount[4] >= maxCount)
+			{
+				return NaN;
+			}
+			
+			// If we found a finder-pattern-like section, but its size is significantly different than
+			// the original, assume it's a false positive
+			var stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2] + stateCount[3] + stateCount[4];
+			if (5 * Math.abs(stateCountTotal - originalStateCountTotal) >= originalStateCountTotal)
+			{
+				return NaN;
+			}
+			
+			return this.foundPatternCross(stateCount)?this.centerFromEnd(stateCount, j):NaN;
+		}
+	this.handlePossibleCenter=function( stateCount,  i,  j)
+		{
+			var stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2] + stateCount[3] + stateCount[4];
+			var centerJ = this.centerFromEnd(stateCount, j); //float
+			var centerI = this.crossCheckVertical(i, Math.floor( centerJ), stateCount[2], stateCountTotal); //float
+			if (!isNaN(centerI))
+			{
+				// Re-cross check
+				centerJ = this.crossCheckHorizontal(Math.floor( centerJ), Math.floor( centerI), stateCount[2], stateCountTotal);
+				if (!isNaN(centerJ))
+				{
+					var estimatedModuleSize =   stateCountTotal / 7.0;
+					var found = false;
+					var max = this.possibleCenters.length;
+					for (var index = 0; index < max; index++)
+					{
+						var center = this.possibleCenters[index];
+						// Look for about the same center and module size:
+						if (center.aboutEquals(estimatedModuleSize, centerI, centerJ))
+						{
+							center.incrementCount();
+							found = true;
+							break;
+						}
+					}
+					if (!found)
+					{
+						var point = new FinderPattern(centerJ, centerI, estimatedModuleSize);
+						this.possibleCenters.push(point);
+						if (this.resultPointCallback != null)
+						{
+							this.resultPointCallback.foundPossibleResultPoint(point);
+						}
+					}
+					return true;
+				}
+			}
+			return false;
+		}
+		
+	this.selectBestPatterns=function()
+		{
+			
+			var startSize = this.possibleCenters.length;
+			if (startSize < 3)
+			{
+				// Couldn't find enough finder patterns
+				throw "Couldn't find enough finder patterns";
+			}
+			
+			// Filter outlier possibilities whose module size is too different
+			if (startSize > 3)
+			{
+				// But we can only afford to do so if we have at least 4 possibilities to choose from
+				var totalModuleSize = 0.0;
+                var square = 0.0;
+				for (var i = 0; i < startSize; i++)
+				{
+					//totalModuleSize +=  this.possibleCenters[i].EstimatedModuleSize;
+                    var	centerValue=this.possibleCenters[i].EstimatedModuleSize;
+					totalModuleSize += centerValue;
+					square += (centerValue * centerValue);
+				}
+				var average = totalModuleSize /  startSize;
+                this.possibleCenters.sort(function(center1,center2) {
+				      var dA=Math.abs(center2.EstimatedModuleSize - average);
+				      var dB=Math.abs(center1.EstimatedModuleSize - average);
+				      if (dA < dB) {
+				    	  return (-1);
+				      } else if (dA == dB) {
+				    	  return 0;
+				      } else {
+				    	  return 1;
+				      }
+					});
+
+				var stdDev = Math.sqrt(square / startSize - average * average);
+				var limit = Math.max(0.2 * average, stdDev);
+				for (var i = 0; i < this.possibleCenters.length && this.possibleCenters.length > 3; i++)
+				{
+					var pattern =  this.possibleCenters[i];
+					//if (Math.abs(pattern.EstimatedModuleSize - average) > 0.2 * average)
+                    if (Math.abs(pattern.EstimatedModuleSize - average) > limit)
+					{
+						this.possibleCenters.remove(i);
+						i--;
+					}
+				}
+			}
+			
+			if (this.possibleCenters.length > 3)
+			{
+				// Throw away all but those first size candidate points we found.
+				this.possibleCenters.sort(function(a, b){
+					if (a.count > b.count){return -1;}
+					if (a.count < b.count){return 1;}
+					return 0;
+				});
+			}
+			
+			return new Array( this.possibleCenters[0],  this.possibleCenters[1],  this.possibleCenters[2]);
+		}
+		
+	this.findRowSkip=function()
+		{
+			var max = this.possibleCenters.length;
+			if (max <= 1)
+			{
+				return 0;
+			}
+			var firstConfirmedCenter = null;
+			for (var i = 0; i < max; i++)
+			{
+				var center =  this.possibleCenters[i];
+				if (center.Count >= CENTER_QUORUM)
+				{
+					if (firstConfirmedCenter == null)
+					{
+						firstConfirmedCenter = center;
+					}
+					else
+					{
+						// We have two confirmed centers
+						// How far down can we skip before resuming looking for the next
+						// pattern? In the worst case, only the difference between the
+						// difference in the x / y coordinates of the two centers.
+						// This is the case where you find top left last.
+						this.hasSkipped = true;
+						return Math.floor ((Math.abs(firstConfirmedCenter.X - center.X) - Math.abs(firstConfirmedCenter.Y - center.Y)) / 2);
+					}
+				}
+			}
+			return 0;
+		}
+	
+	this.haveMultiplyConfirmedCenters=function()
+		{
+			var confirmedCount = 0;
+			var totalModuleSize = 0.0;
+			var max = this.possibleCenters.length;
+			for (var i = 0; i < max; i++)
+			{
+				var pattern =  this.possibleCenters[i];
+				if (pattern.Count >= CENTER_QUORUM)
+				{
+					confirmedCount++;
+					totalModuleSize += pattern.EstimatedModuleSize;
+				}
+			}
+			if (confirmedCount < 3)
+			{
+				return false;
+			}
+			// OK, we have at least 3 confirmed centers, but, it's possible that one is a "false positive"
+			// and that we need to keep looking. We detect this by asking if the estimated module sizes
+			// vary too much. We arbitrarily say that when the total deviation from average exceeds
+			// 5% of the total module size estimates, it's too much.
+			var average = totalModuleSize / max;
+			var totalDeviation = 0.0;
+			for (var i = 0; i < max; i++)
+			{
+				pattern = this.possibleCenters[i];
+				totalDeviation += Math.abs(pattern.EstimatedModuleSize - average);
+			}
+			return totalDeviation <= 0.05 * totalModuleSize;
+		}
+		
+	this.findFinderPattern = function(image){
+		var tryHarder = false;
+		this.image=image;
+		var maxI = qrcode.height;
+		var maxJ = qrcode.width;
+		var iSkip = Math.floor((3 * maxI) / (4 * MAX_MODULES));
+		if (iSkip < MIN_SKIP || tryHarder)
+		{
+				iSkip = MIN_SKIP;
+		}
+		
+		var done = false;
+		var stateCount = new Array(5);
+		for (var i = iSkip - 1; i < maxI && !done; i += iSkip)
+		{
+			// Get a row of black/white values
+			stateCount[0] = 0;
+			stateCount[1] = 0;
+			stateCount[2] = 0;
+			stateCount[3] = 0;
+			stateCount[4] = 0;
+			var currentState = 0;
+			for (var j = 0; j < maxJ; j++)
+			{
+				if (image[j+i*qrcode.width] )
+				{
+					// Black pixel
+					if ((currentState & 1) == 1)
+					{
+						// Counting white pixels
+						currentState++;
+					}
+					stateCount[currentState]++;
+				}
+				else
+				{
+					// White pixel
+					if ((currentState & 1) == 0)
+					{
+						// Counting black pixels
+						if (currentState == 4)
+						{
+							// A winner?
+							if (this.foundPatternCross(stateCount))
+							{
+								// Yes
+								var confirmed = this.handlePossibleCenter(stateCount, i, j);
+								if (confirmed)
+								{
+									// Start examining every other line. Checking each line turned out to be too
+									// expensive and didn't improve performance.
+									iSkip = 2;
+									if (this.hasSkipped)
+									{
+										done = this.haveMultiplyConfirmedCenters();
+									}
+									else
+									{
+										var rowSkip = this.findRowSkip();
+										if (rowSkip > stateCount[2])
+										{
+											// Skip rows between row of lower confirmed center
+											// and top of presumed third confirmed center
+											// but back up a bit to get a full chance of detecting
+											// it, entire width of center of finder pattern
+											
+											// Skip by rowSkip, but back off by stateCount[2] (size of last center
+											// of pattern we saw) to be conservative, and also back off by iSkip which
+											// is about to be re-added
+											i += rowSkip - stateCount[2] - iSkip;
+											j = maxJ - 1;
+										}
+									}
+								}
+								else
+								{
+									// Advance to next black pixel
+									do 
+									{
+										j++;
+									}
+									while (j < maxJ && !image[j + i*qrcode.width]);
+									j--; // back up to that last white pixel
+								}
+								// Clear state to start looking again
+								currentState = 0;
+								stateCount[0] = 0;
+								stateCount[1] = 0;
+								stateCount[2] = 0;
+								stateCount[3] = 0;
+								stateCount[4] = 0;
+							}
+							else
+							{
+								// No, shift counts back by two
+								stateCount[0] = stateCount[2];
+								stateCount[1] = stateCount[3];
+								stateCount[2] = stateCount[4];
+								stateCount[3] = 1;
+								stateCount[4] = 0;
+								currentState = 3;
+							}
+						}
+						else
+						{
+							stateCount[++currentState]++;
+						}
+					}
+					else
+					{
+						// Counting white pixels
+						stateCount[currentState]++;
+					}
+				}
+			}
+			if (this.foundPatternCross(stateCount))
+			{
+				var confirmed = this.handlePossibleCenter(stateCount, i, maxJ);
+				if (confirmed)
+				{
+					iSkip = stateCount[0];
+					if (this.hasSkipped)
+					{
+						// Found a third one
+						done = haveMultiplyConfirmedCenters();
+					}
+				}
+			}
+		}
+		
+		var patternInfo = this.selectBestPatterns();
+		qrcode.orderBestPatterns(patternInfo);
+		
+		return new FinderPatternInfo(patternInfo);
+	};
+}

+ 104 - 0
h5/formatinf.js

@@ -0,0 +1,104 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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.
+*/
+
+
+var FORMAT_INFO_MASK_QR = 0x5412;
+var FORMAT_INFO_DECODE_LOOKUP = new Array(new Array(0x5412, 0x00), new Array(0x5125, 0x01), new Array(0x5E7C, 0x02), new Array(0x5B4B, 0x03), new Array(0x45F9, 0x04), new Array(0x40CE, 0x05), new Array(0x4F97, 0x06), new Array(0x4AA0, 0x07), new Array(0x77C4, 0x08), new Array(0x72F3, 0x09), new Array(0x7DAA, 0x0A), new Array(0x789D, 0x0B), new Array(0x662F, 0x0C), new Array(0x6318, 0x0D), new Array(0x6C41, 0x0E), new Array(0x6976, 0x0F), new Array(0x1689, 0x10), new Array(0x13BE, 0x11), new Array(0x1CE7, 0x12), new Array(0x19D0, 0x13), new Array(0x0762, 0x14), new Array(0x0255, 0x15), new Array(0x0D0C, 0x16), new Array(0x083B, 0x17), new Array(0x355F, 0x18), new Array(0x3068, 0x19), new Array(0x3F31, 0x1A), new Array(0x3A06, 0x1B), new Array(0x24B4, 0x1C), new Array(0x2183, 0x1D), new Array(0x2EDA, 0x1E), new Array(0x2BED, 0x1F));
+var BITS_SET_IN_HALF_BYTE = new Array(0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4);
+
+
+function FormatInformation(formatInfo)
+{
+	this.errorCorrectionLevel = ErrorCorrectionLevel.forBits((formatInfo >> 3) & 0x03);
+	this.dataMask =  (formatInfo & 0x07);
+
+	this.__defineGetter__("ErrorCorrectionLevel", function()
+	{
+		return this.errorCorrectionLevel;
+	});
+	this.__defineGetter__("DataMask", function()
+	{
+		return this.dataMask;
+	});
+	this.GetHashCode=function()
+	{
+		return (this.errorCorrectionLevel.ordinal() << 3) |  dataMask;
+	}
+	this.Equals=function( o)
+	{
+		var other =  o;
+		return this.errorCorrectionLevel == other.errorCorrectionLevel && this.dataMask == other.dataMask;
+	}
+}
+
+FormatInformation.numBitsDiffering=function( a,  b)
+{
+	a ^= b; // a now has a 1 bit exactly where its bit differs with b's
+	// Count bits set quickly with a series of lookups:
+	return BITS_SET_IN_HALF_BYTE[a & 0x0F] + BITS_SET_IN_HALF_BYTE[(URShift(a, 4) & 0x0F)] + BITS_SET_IN_HALF_BYTE[(URShift(a, 8) & 0x0F)] + BITS_SET_IN_HALF_BYTE[(URShift(a, 12) & 0x0F)] + BITS_SET_IN_HALF_BYTE[(URShift(a, 16) & 0x0F)] + BITS_SET_IN_HALF_BYTE[(URShift(a, 20) & 0x0F)] + BITS_SET_IN_HALF_BYTE[(URShift(a, 24) & 0x0F)] + BITS_SET_IN_HALF_BYTE[(URShift(a, 28) & 0x0F)];
+}
+
+FormatInformation.decodeFormatInformation=function( maskedFormatInfo)
+{
+	var formatInfo = FormatInformation.doDecodeFormatInformation(maskedFormatInfo);
+	if (formatInfo != null)
+	{
+		return formatInfo;
+	}
+	// Should return null, but, some QR codes apparently
+	// do not mask this info. Try again by actually masking the pattern
+	// first
+	return FormatInformation.doDecodeFormatInformation(maskedFormatInfo ^ FORMAT_INFO_MASK_QR);
+}
+FormatInformation.doDecodeFormatInformation=function( maskedFormatInfo)
+{
+	// Find the int in FORMAT_INFO_DECODE_LOOKUP with fewest bits differing
+	var bestDifference = 0xffffffff;
+	var bestFormatInfo = 0;
+	for (var i = 0; i < FORMAT_INFO_DECODE_LOOKUP.length; i++)
+	{
+		var decodeInfo = FORMAT_INFO_DECODE_LOOKUP[i];
+		var targetInfo = decodeInfo[0];
+		if (targetInfo == maskedFormatInfo)
+		{
+			// Found an exact match
+			return new FormatInformation(decodeInfo[1]);
+		}
+		var bitsDifference = this.numBitsDiffering(maskedFormatInfo, targetInfo);
+		if (bitsDifference < bestDifference)
+		{
+			bestFormatInfo = decodeInfo[1];
+			bestDifference = bitsDifference;
+		}
+	}
+	// Hamming distance of the 32 masked codes is 7, by construction, so <= 3 bits
+	// differing means we found a match
+	if (bestDifference <= 3)
+	{
+		return new FormatInformation(bestFormatInfo);
+	}
+	return null;
+}
+
+		

+ 117 - 0
h5/gf256.js

@@ -0,0 +1,117 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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 GF256( primitive)
+{
+	this.expTable = new Array(256);
+	this.logTable = new Array(256);
+	var x = 1;
+	for (var i = 0; i < 256; i++)
+	{
+		this.expTable[i] = x;
+		x <<= 1; // x = x * 2; we're assuming the generator alpha is 2
+		if (x >= 0x100)
+		{
+			x ^= primitive;
+		}
+	}
+	for (var i = 0; i < 255; i++)
+	{
+		this.logTable[this.expTable[i]] = i;
+	}
+	// logTable[0] == 0 but this should never be used
+	var at0=new Array(1);at0[0]=0;
+	this.zero = new GF256Poly(this, new Array(at0));
+	var at1=new Array(1);at1[0]=1;
+	this.one = new GF256Poly(this, new Array(at1));
+	
+	this.__defineGetter__("Zero", function()
+	{
+		return this.zero;
+	});
+	this.__defineGetter__("One", function()
+	{
+		return this.one;
+	});
+	this.buildMonomial=function( degree,  coefficient)
+		{
+			if (degree < 0)
+			{
+				throw "System.ArgumentException";
+			}
+			if (coefficient == 0)
+			{
+				return zero;
+			}
+			var coefficients = new Array(degree + 1);
+			for(var i=0;i<coefficients.length;i++)coefficients[i]=0;
+			coefficients[0] = coefficient;
+			return new GF256Poly(this, coefficients);
+		}
+	this.exp=function( a)
+		{
+			return this.expTable[a];
+		}
+	this.log=function( a)
+		{
+			if (a == 0)
+			{
+				throw "System.ArgumentException";
+			}
+			return this.logTable[a];
+		}
+	this.inverse=function( a)
+		{
+			if (a == 0)
+			{
+				throw "System.ArithmeticException";
+			}
+			return this.expTable[255 - this.logTable[a]];
+		}
+	this.multiply=function( a,  b)
+		{
+			if (a == 0 || b == 0)
+			{
+				return 0;
+			}
+			if (a == 1)
+			{
+				return b;
+			}
+			if (b == 1)
+			{
+				return a;
+			}
+			return this.expTable[(this.logTable[a] + this.logTable[b]) % 255];
+		}		
+}
+
+GF256.QR_CODE_FIELD = new GF256(0x011D);
+GF256.DATA_MATRIX_FIELD = new GF256(0x012D);
+
+GF256.addOrSubtract=function( a,  b)
+{
+	return a ^ b;
+}

+ 230 - 0
h5/gf256poly.js

@@ -0,0 +1,230 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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 GF256Poly(field,  coefficients)
+{
+	if (coefficients == null || coefficients.length == 0)
+	{
+		throw "System.ArgumentException";
+	}
+	this.field = field;
+	var coefficientsLength = coefficients.length;
+	if (coefficientsLength > 1 && coefficients[0] == 0)
+	{
+		// Leading term must be non-zero for anything except the constant polynomial "0"
+		var firstNonZero = 1;
+		while (firstNonZero < coefficientsLength && coefficients[firstNonZero] == 0)
+		{
+			firstNonZero++;
+		}
+		if (firstNonZero == coefficientsLength)
+		{
+			this.coefficients = field.Zero.coefficients;
+		}
+		else
+		{
+			this.coefficients = new Array(coefficientsLength - firstNonZero);
+			for(var i=0;i<this.coefficients.length;i++)this.coefficients[i]=0;
+			//Array.Copy(coefficients, firstNonZero, this.coefficients, 0, this.coefficients.length);
+			for(var ci=0;ci<this.coefficients.length;ci++)this.coefficients[ci]=coefficients[firstNonZero+ci];
+		}
+	}
+	else
+	{
+		this.coefficients = coefficients;
+	}
+	
+	this.__defineGetter__("Zero", function()
+	{
+		return this.coefficients[0] == 0;
+	});
+	this.__defineGetter__("Degree", function()
+	{
+		return this.coefficients.length - 1;
+	});
+	this.__defineGetter__("Coefficients", function()
+	{
+		return this.coefficients;
+	});
+	
+	this.getCoefficient=function( degree)
+	{
+		return this.coefficients[this.coefficients.length - 1 - degree];
+	}
+	
+	this.evaluateAt=function( a)
+	{
+		if (a == 0)
+		{
+			// Just return the x^0 coefficient
+			return this.getCoefficient(0);
+		}
+		var size = this.coefficients.length;
+		if (a == 1)
+		{
+			// Just the sum of the coefficients
+			var result = 0;
+			for (var i = 0; i < size; i++)
+			{
+				result = GF256.addOrSubtract(result, this.coefficients[i]);
+			}
+			return result;
+		}
+		var result2 = this.coefficients[0];
+		for (var i = 1; i < size; i++)
+		{
+			result2 = GF256.addOrSubtract(this.field.multiply(a, result2), this.coefficients[i]);
+		}
+		return result2;
+	}
+	
+	this.addOrSubtract=function( other)
+		{
+			if (this.field != other.field)
+			{
+				throw "GF256Polys do not have same GF256 field";
+			}
+			if (this.Zero)
+			{
+				return other;
+			}
+			if (other.Zero)
+			{
+				return this;
+			}
+			
+			var smallerCoefficients = this.coefficients;
+			var largerCoefficients = other.coefficients;
+			if (smallerCoefficients.length > largerCoefficients.length)
+			{
+				var temp = smallerCoefficients;
+				smallerCoefficients = largerCoefficients;
+				largerCoefficients = temp;
+			}
+			var sumDiff = new Array(largerCoefficients.length);
+			var lengthDiff = largerCoefficients.length - smallerCoefficients.length;
+			// Copy high-order terms only found in higher-degree polynomial's coefficients
+			//Array.Copy(largerCoefficients, 0, sumDiff, 0, lengthDiff);
+			for(var ci=0;ci<lengthDiff;ci++)sumDiff[ci]=largerCoefficients[ci];
+			
+			for (var i = lengthDiff; i < largerCoefficients.length; i++)
+			{
+				sumDiff[i] = GF256.addOrSubtract(smallerCoefficients[i - lengthDiff], largerCoefficients[i]);
+			}
+			
+			return new GF256Poly(field, sumDiff);
+	}
+	this.multiply1=function( other)
+		{
+			if (this.field!=other.field)
+			{
+				throw "GF256Polys do not have same GF256 field";
+			}
+			if (this.Zero || other.Zero)
+			{
+				return this.field.Zero;
+			}
+			var aCoefficients = this.coefficients;
+			var aLength = aCoefficients.length;
+			var bCoefficients = other.coefficients;
+			var bLength = bCoefficients.length;
+			var product = new Array(aLength + bLength - 1);
+			for (var i = 0; i < aLength; i++)
+			{
+				var aCoeff = aCoefficients[i];
+				for (var j = 0; j < bLength; j++)
+				{
+					product[i + j] = GF256.addOrSubtract(product[i + j], this.field.multiply(aCoeff, bCoefficients[j]));
+				}
+			}
+			return new GF256Poly(this.field, product);
+		}
+	this.multiply2=function( scalar)
+		{
+			if (scalar == 0)
+			{
+				return this.field.Zero;
+			}
+			if (scalar == 1)
+			{
+				return this;
+			}
+			var size = this.coefficients.length;
+			var product = new Array(size);
+			for (var i = 0; i < size; i++)
+			{
+				product[i] = this.field.multiply(this.coefficients[i], scalar);
+			}
+			return new GF256Poly(this.field, product);
+		}
+	this.multiplyByMonomial=function( degree,  coefficient)
+		{
+			if (degree < 0)
+			{
+				throw "System.ArgumentException";
+			}
+			if (coefficient == 0)
+			{
+				return this.field.Zero;
+			}
+			var size = this.coefficients.length;
+			var product = new Array(size + degree);
+			for(var i=0;i<product.length;i++)product[i]=0;
+			for (var i = 0; i < size; i++)
+			{
+				product[i] = this.field.multiply(this.coefficients[i], coefficient);
+			}
+			return new GF256Poly(this.field, product);
+		}
+	this.divide=function( other)
+		{
+			if (this.field!=other.field)
+			{
+				throw "GF256Polys do not have same GF256 field";
+			}
+			if (other.Zero)
+			{
+				throw "Divide by 0";
+			}
+			
+			var quotient = this.field.Zero;
+			var remainder = this;
+			
+			var denominatorLeadingTerm = other.getCoefficient(other.Degree);
+			var inverseDenominatorLeadingTerm = this.field.inverse(denominatorLeadingTerm);
+			
+			while (remainder.Degree >= other.Degree && !remainder.Zero)
+			{
+				var degreeDifference = remainder.Degree - other.Degree;
+				var scale = this.field.multiply(remainder.getCoefficient(remainder.Degree), inverseDenominatorLeadingTerm);
+				var term = other.multiplyByMonomial(degreeDifference, scale);
+				var iterationQuotient = this.field.buildMonomial(degreeDifference, scale);
+				quotient = quotient.addOrSubtract(iterationQuotient);
+				remainder = remainder.addOrSubtract(term);
+			}
+			
+			return new Array(quotient, remainder);
+		}
+}

+ 152 - 0
h5/grid.js

@@ -0,0 +1,152 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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.
+*/
+
+
+GridSampler = {};
+
+GridSampler.checkAndNudgePoints=function( image,  points)
+		{
+			var width = qrcode.width;
+			var height = qrcode.height;
+			// Check and nudge points from start until we see some that are OK:
+			var nudged = true;
+			for (var offset = 0; offset < points.length && nudged; offset += 2)
+			{
+				var x = Math.floor (points[offset]);
+				var y = Math.floor( points[offset + 1]);
+				if (x < - 1 || x > width || y < - 1 || y > height)
+				{
+					throw "Error.checkAndNudgePoints ";
+				}
+				nudged = false;
+				if (x == - 1)
+				{
+					points[offset] = 0.0;
+					nudged = true;
+				}
+				else if (x == width)
+				{
+					points[offset] = width - 1;
+					nudged = true;
+				}
+				if (y == - 1)
+				{
+					points[offset + 1] = 0.0;
+					nudged = true;
+				}
+				else if (y == height)
+				{
+					points[offset + 1] = height - 1;
+					nudged = true;
+				}
+			}
+			// Check and nudge points from end:
+			nudged = true;
+			for (var offset = points.length - 2; offset >= 0 && nudged; offset -= 2)
+			{
+				var x = Math.floor( points[offset]);
+				var y = Math.floor( points[offset + 1]);
+				if (x < - 1 || x > width || y < - 1 || y > height)
+				{
+					throw "Error.checkAndNudgePoints ";
+				}
+				nudged = false;
+				if (x == - 1)
+				{
+					points[offset] = 0.0;
+					nudged = true;
+				}
+				else if (x == width)
+				{
+					points[offset] = width - 1;
+					nudged = true;
+				}
+				if (y == - 1)
+				{
+					points[offset + 1] = 0.0;
+					nudged = true;
+				}
+				else if (y == height)
+				{
+					points[offset + 1] = height - 1;
+					nudged = true;
+				}
+			}
+		}
+	
+
+
+GridSampler.sampleGrid3=function( image,  dimension,  transform)
+		{
+			var bits = new BitMatrix(dimension);
+			var points = new Array(dimension << 1);
+			for (var y = 0; y < dimension; y++)
+			{
+				var max = points.length;
+				var iValue =  y + 0.5;
+				for (var x = 0; x < max; x += 2)
+				{
+					points[x] =  (x >> 1) + 0.5;
+					points[x + 1] = iValue;
+				}
+				transform.transformPoints1(points);
+				// Quick check to see if points transformed to something inside the image;
+				// sufficient to check the endpoints
+				GridSampler.checkAndNudgePoints(image, points);
+				try
+				{
+					for (var x = 0; x < max; x += 2)
+					{
+						var xpoint = (Math.floor( points[x]) * 4) + (Math.floor( points[x + 1]) * qrcode.width * 4);
+                        var bit = image[Math.floor( points[x])+ qrcode.width* Math.floor( points[x + 1])];
+						qrcode.imagedata.data[xpoint] = bit?255:0;
+						qrcode.imagedata.data[xpoint+1] = bit?255:0;
+						qrcode.imagedata.data[xpoint+2] = 0;
+						qrcode.imagedata.data[xpoint+3] = 255;
+						//bits[x >> 1][ y]=bit;
+						if(bit)
+							bits.set_Renamed(x >> 1, y);
+					}
+				}
+				catch ( aioobe)
+				{
+					// This feels wrong, but, sometimes if the finder patterns are misidentified, the resulting
+					// transform gets "twisted" such that it maps a straight line of points to a set of points
+					// whose endpoints are in bounds, but others are not. There is probably some mathematical
+					// way to detect this about the transformation that I don't know yet.
+					// This results in an ugly runtime exception despite our clever checks above -- can't have
+					// that. We could check each point's coordinates but that feels duplicative. We settle for
+					// catching and wrapping ArrayIndexOutOfBoundsException.
+					throw "Error.checkAndNudgePoints";
+				}
+			}
+			return bits;
+		}
+
+GridSampler.sampleGridx=function( image,  dimension,  p1ToX,  p1ToY,  p2ToX,  p2ToY,  p3ToX,  p3ToY,  p4ToX,  p4ToY,  p1FromX,  p1FromY,  p2FromX,  p2FromY,  p3FromX,  p3FromY,  p4FromX,  p4FromY)
+{
+	var transform = PerspectiveTransform.quadrilateralToQuadrilateral(p1ToX, p1ToY, p2ToX, p2ToY, p3ToX, p3ToY, p4ToX, p4ToY, p1FromX, p1FromY, p2FromX, p2FromY, p3FromX, p3FromY, p4FromX, p4FromY);
+			
+	return GridSampler.sampleGrid3(image, dimension, transform);
+}

+ 319 - 0
h5/qrcode.js

@@ -0,0 +1,319 @@
+/*
+   Copyright 2011 Lazar Laszlo (lazarsoft@gmail.com, www.lazarsoft.info)
+   
+   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.
+*/
+
+
+qrcode = {};
+qrcode.imagedata = null;
+qrcode.width = 0;
+qrcode.height = 0;
+qrcode.qrCodeSymbol = null;
+qrcode.debug = false;
+qrcode.maxImgSize = 1024*1024;
+
+qrcode.sizeOfDataLengthInfo =  [  [ 10, 9, 8, 8 ],  [ 12, 11, 16, 10 ],  [ 14, 13, 16, 12 ] ];
+
+qrcode.callback = null;
+
+qrcode.decode = function(src){
+    
+    if(arguments.length==0)
+    {
+        var canvas_qr = document.getElementById("qr-canvas");
+        var context = canvas_qr.getContext('2d');
+        qrcode.width = canvas_qr.width;
+        qrcode.height = canvas_qr.height;
+        qrcode.imagedata = context.getImageData(0, 0, qrcode.width, qrcode.height);
+        qrcode.result = qrcode.process(context);
+        if(qrcode.callback!=null)
+            qrcode.callback(qrcode.result);
+        return qrcode.result;
+    }
+    else
+    {
+        var image = new Image();
+        image.onload=function(){
+            //var canvas_qr = document.getElementById("qr-canvas");
+            var canvas_qr = document.createElement('canvas');
+            var context = canvas_qr.getContext('2d');
+            var nheight = image.height;
+            var nwidth = image.width;
+            if(image.width*image.height>qrcode.maxImgSize)
+            {
+                var ir = image.width / image.height;
+                nheight = Math.sqrt(qrcode.maxImgSize/ir);
+                nwidth=ir*nheight;
+            }
+
+            canvas_qr.width = nwidth;
+            canvas_qr.height = nheight;
+            
+            context.drawImage(image, 0, 0, canvas_qr.width, canvas_qr.height );
+            qrcode.width = canvas_qr.width;
+            qrcode.height = canvas_qr.height;
+            try{
+                qrcode.imagedata = context.getImageData(0, 0, canvas_qr.width, canvas_qr.height);
+            }catch(e){
+                qrcode.result = "Cross domain image reading not supported in your browser! Save it to your computer then drag and drop the file!";
+                if(qrcode.callback!=null)
+                    qrcode.callback(qrcode.result);
+                return;
+            }
+            
+            try
+            {
+                qrcode.result = qrcode.process(context);
+            }
+            catch(e)
+            {
+                console.log(e);
+                qrcode.result = "error decoding QR Code";
+            }
+            if(qrcode.callback!=null)
+                qrcode.callback(qrcode.result);
+        }
+        image.src = src;
+    }
+}
+
+qrcode.isUrl = function(s)
+{
+    var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
+    return regexp.test(s);
+}
+
+qrcode.decode_url = function (s)
+{
+  var escaped = "";
+  try{
+    escaped = escape( s );
+  }
+  catch(e)
+  {
+    console.log(e);
+    escaped = s;
+  }
+  var ret = "";
+  try{
+    ret = decodeURIComponent( escaped );
+  }
+  catch(e)
+  {
+    console.log(e);
+    ret = escaped;
+  }
+  return ret;
+}
+
+qrcode.decode_utf8 = function ( s )
+{
+    if(qrcode.isUrl(s))
+        return qrcode.decode_url(s);
+    else
+        return s;
+}
+
+qrcode.process = function(ctx){
+    
+    var start = new Date().getTime();
+
+    var image = qrcode.grayScaleToBitmap(qrcode.grayscale());
+    //var image = qrcode.binarize(128);
+    
+    if(qrcode.debug)
+    {
+        for (var y = 0; y < qrcode.height; y++)
+        {
+            for (var x = 0; x < qrcode.width; x++)
+            {
+                var point = (x * 4) + (y * qrcode.width * 4);
+                qrcode.imagedata.data[point] = image[x+y*qrcode.width]?0:0;
+                qrcode.imagedata.data[point+1] = image[x+y*qrcode.width]?0:0;
+                qrcode.imagedata.data[point+2] = image[x+y*qrcode.width]?255:0;
+            }
+        }
+        ctx.putImageData(qrcode.imagedata, 0, 0);
+    }
+    
+    //var finderPatternInfo = new FinderPatternFinder().findFinderPattern(image);
+    
+    var detector = new Detector(image);
+
+    var qRCodeMatrix = detector.detect();
+    
+    /*for (var y = 0; y < qRCodeMatrix.bits.Height; y++)
+    {
+        for (var x = 0; x < qRCodeMatrix.bits.Width; x++)
+        {
+            var point = (x * 4*2) + (y*2 * qrcode.width * 4);
+            qrcode.imagedata.data[point] = qRCodeMatrix.bits.get_Renamed(x,y)?0:0;
+            qrcode.imagedata.data[point+1] = qRCodeMatrix.bits.get_Renamed(x,y)?0:0;
+            qrcode.imagedata.data[point+2] = qRCodeMatrix.bits.get_Renamed(x,y)?255:0;
+        }
+    }*/
+    if(qrcode.debug)
+        ctx.putImageData(qrcode.imagedata, 0, 0);
+    
+    var reader = Decoder.decode(qRCodeMatrix.bits);
+    var data = reader.DataByte;
+    var str="";
+    for(var i=0;i<data.length;i++)
+    {
+        for(var j=0;j<data[i].length;j++)
+            str+=String.fromCharCode(data[i][j]);
+    }
+    
+    var end = new Date().getTime();
+    var time = end - start;
+    console.log(time);
+    
+    return qrcode.decode_utf8(str);
+    //alert("Time:" + time + " Code: "+str);
+}
+
+qrcode.getPixel = function(x,y){
+    if (qrcode.width < x) {
+        throw "point error";
+    }
+    if (qrcode.height < y) {
+        throw "point error";
+    }
+    point = (x * 4) + (y * qrcode.width * 4);
+    p = (qrcode.imagedata.data[point]*33 + qrcode.imagedata.data[point + 1]*34 + qrcode.imagedata.data[point + 2]*33)/100;
+    return p;
+}
+
+qrcode.binarize = function(th){
+    var ret = new Array(qrcode.width*qrcode.height);
+    for (var y = 0; y < qrcode.height; y++)
+    {
+        for (var x = 0; x < qrcode.width; x++)
+        {
+            var gray = qrcode.getPixel(x, y);
+            
+            ret[x+y*qrcode.width] = gray<=th?true:false;
+        }
+    }
+    return ret;
+}
+
+qrcode.getMiddleBrightnessPerArea=function(image)
+{
+    var numSqrtArea = 4;
+    //obtain middle brightness((min + max) / 2) per area
+    var areaWidth = Math.floor(qrcode.width / numSqrtArea);
+    var areaHeight = Math.floor(qrcode.height / numSqrtArea);
+    var minmax = new Array(numSqrtArea);
+    for (var i = 0; i < numSqrtArea; i++)
+    {
+        minmax[i] = new Array(numSqrtArea);
+        for (var i2 = 0; i2 < numSqrtArea; i2++)
+        {
+            minmax[i][i2] = new Array(0,0);
+        }
+    }
+    for (var ay = 0; ay < numSqrtArea; ay++)
+    {
+        for (var ax = 0; ax < numSqrtArea; ax++)
+        {
+            minmax[ax][ay][0] = 0xFF;
+            for (var dy = 0; dy < areaHeight; dy++)
+            {
+                for (var dx = 0; dx < areaWidth; dx++)
+                {
+                    var target = image[areaWidth * ax + dx+(areaHeight * ay + dy)*qrcode.width];
+                    if (target < minmax[ax][ay][0])
+                        minmax[ax][ay][0] = target;
+                    if (target > minmax[ax][ay][1])
+                        minmax[ax][ay][1] = target;
+                }
+            }
+            //minmax[ax][ay][0] = (minmax[ax][ay][0] + minmax[ax][ay][1]) / 2;
+        }
+    }
+    var middle = new Array(numSqrtArea);
+    for (var i3 = 0; i3 < numSqrtArea; i3++)
+    {
+        middle[i3] = new Array(numSqrtArea);
+    }
+    for (var ay = 0; ay < numSqrtArea; ay++)
+    {
+        for (var ax = 0; ax < numSqrtArea; ax++)
+        {
+            middle[ax][ay] = Math.floor((minmax[ax][ay][0] + minmax[ax][ay][1]) / 2);
+            //Console.out.print(middle[ax][ay] + ",");
+        }
+        //Console.out.println("");
+    }
+    //Console.out.println("");
+    
+    return middle;
+}
+
+qrcode.grayScaleToBitmap=function(grayScale)
+{
+    var middle = qrcode.getMiddleBrightnessPerArea(grayScale);
+    var sqrtNumArea = middle.length;
+    var areaWidth = Math.floor(qrcode.width / sqrtNumArea);
+    var areaHeight = Math.floor(qrcode.height / sqrtNumArea);
+    var bitmap = new Array(qrcode.height*qrcode.width);
+    
+    for (var ay = 0; ay < sqrtNumArea; ay++)
+    {
+        for (var ax = 0; ax < sqrtNumArea; ax++)
+        {
+            for (var dy = 0; dy < areaHeight; dy++)
+            {
+                for (var dx = 0; dx < areaWidth; dx++)
+                {
+                    bitmap[areaWidth * ax + dx+ (areaHeight * ay + dy)*qrcode.width] = (grayScale[areaWidth * ax + dx+ (areaHeight * ay + dy)*qrcode.width] < middle[ax][ay])?true:false;
+                }
+            }
+        }
+    }
+    return bitmap;
+}
+
+qrcode.grayscale = function(){
+    var ret = new Array(qrcode.width*qrcode.height);
+    for (var y = 0; y < qrcode.height; y++)
+    {
+        for (var x = 0; x < qrcode.width; x++)
+        {
+            var gray = qrcode.getPixel(x, y);
+            
+            ret[x+y*qrcode.width] = gray;
+        }
+    }
+    return ret;
+}
+
+
+
+
+function URShift( number,  bits)
+{
+    if (number >= 0)
+        return number >> bits;
+    else
+        return (number >> bits) + (2 << ~bits);
+}
+
+
+Array.prototype.remove = function(from, to) {
+  var rest = this.slice((to || from) + 1 || this.length);
+  this.length = from < 0 ? this.length + from : from;
+  return this.push.apply(this, rest);
+};

+ 178 - 0
h5/rsdecoder.js

@@ -0,0 +1,178 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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 ReedSolomonDecoder(field)
+{
+	this.field = field;
+	this.decode=function(received,  twoS)
+	{
+			var poly = new GF256Poly(this.field, received);
+			var syndromeCoefficients = new Array(twoS);
+			for(var i=0;i<syndromeCoefficients.length;i++)syndromeCoefficients[i]=0;
+			var dataMatrix = false;//this.field.Equals(GF256.DATA_MATRIX_FIELD);
+			var noError = true;
+			for (var i = 0; i < twoS; i++)
+			{
+				// Thanks to sanfordsquires for this fix:
+				var eval = poly.evaluateAt(this.field.exp(dataMatrix?i + 1:i));
+				syndromeCoefficients[syndromeCoefficients.length - 1 - i] = eval;
+				if (eval != 0)
+				{
+					noError = false;
+				}
+			}
+			if (noError)
+			{
+				return ;
+			}
+			var syndrome = new GF256Poly(this.field, syndromeCoefficients);
+			var sigmaOmega = this.runEuclideanAlgorithm(this.field.buildMonomial(twoS, 1), syndrome, twoS);
+			var sigma = sigmaOmega[0];
+			var omega = sigmaOmega[1];
+			var errorLocations = this.findErrorLocations(sigma);
+			var errorMagnitudes = this.findErrorMagnitudes(omega, errorLocations, dataMatrix);
+			for (var i = 0; i < errorLocations.length; i++)
+			{
+				var position = received.length - 1 - this.field.log(errorLocations[i]);
+				if (position < 0)
+				{
+					throw "ReedSolomonException Bad error location";
+				}
+				received[position] = GF256.addOrSubtract(received[position], errorMagnitudes[i]);
+			}
+	}
+	
+	this.runEuclideanAlgorithm=function( a,  b,  R)
+		{
+			// Assume a's degree is >= b's
+			if (a.Degree < b.Degree)
+			{
+				var temp = a;
+				a = b;
+				b = temp;
+			}
+			
+			var rLast = a;
+			var r = b;
+			var sLast = this.field.One;
+			var s = this.field.Zero;
+			var tLast = this.field.Zero;
+			var t = this.field.One;
+			
+			// Run Euclidean algorithm until r's degree is less than R/2
+			while (r.Degree >= Math.floor(R / 2))
+			{
+				var rLastLast = rLast;
+				var sLastLast = sLast;
+				var tLastLast = tLast;
+				rLast = r;
+				sLast = s;
+				tLast = t;
+				
+				// Divide rLastLast by rLast, with quotient in q and remainder in r
+				if (rLast.Zero)
+				{
+					// Oops, Euclidean algorithm already terminated?
+					throw "r_{i-1} was zero";
+				}
+				r = rLastLast;
+				var q = this.field.Zero;
+				var denominatorLeadingTerm = rLast.getCoefficient(rLast.Degree);
+				var dltInverse = this.field.inverse(denominatorLeadingTerm);
+				while (r.Degree >= rLast.Degree && !r.Zero)
+				{
+					var degreeDiff = r.Degree - rLast.Degree;
+					var scale = this.field.multiply(r.getCoefficient(r.Degree), dltInverse);
+					q = q.addOrSubtract(this.field.buildMonomial(degreeDiff, scale));
+					r = r.addOrSubtract(rLast.multiplyByMonomial(degreeDiff, scale));
+					//r.EXE();
+				}
+				
+				s = q.multiply1(sLast).addOrSubtract(sLastLast);
+				t = q.multiply1(tLast).addOrSubtract(tLastLast);
+			}
+			
+			var sigmaTildeAtZero = t.getCoefficient(0);
+			if (sigmaTildeAtZero == 0)
+			{
+				throw "ReedSolomonException sigmaTilde(0) was zero";
+			}
+			
+			var inverse = this.field.inverse(sigmaTildeAtZero);
+			var sigma = t.multiply2(inverse);
+			var omega = r.multiply2(inverse);
+			return new Array(sigma, omega);
+		}
+	this.findErrorLocations=function( errorLocator)
+		{
+			// This is a direct application of Chien's search
+			var numErrors = errorLocator.Degree;
+			if (numErrors == 1)
+			{
+				// shortcut
+				return new Array(errorLocator.getCoefficient(1));
+			}
+			var result = new Array(numErrors);
+			var e = 0;
+			for (var i = 1; i < 256 && e < numErrors; i++)
+			{
+				if (errorLocator.evaluateAt(i) == 0)
+				{
+					result[e] = this.field.inverse(i);
+					e++;
+				}
+			}
+			if (e != numErrors)
+			{
+				throw "Error locator degree does not match number of roots";
+			}
+			return result;
+		}
+	this.findErrorMagnitudes=function( errorEvaluator,  errorLocations,  dataMatrix)
+		{
+			// This is directly applying Forney's Formula
+			var s = errorLocations.length;
+			var result = new Array(s);
+			for (var i = 0; i < s; i++)
+			{
+				var xiInverse = this.field.inverse(errorLocations[i]);
+				var denominator = 1;
+				for (var j = 0; j < s; j++)
+				{
+					if (i != j)
+					{
+						denominator = this.field.multiply(denominator, GF256.addOrSubtract(1, this.field.multiply(errorLocations[j], xiInverse)));
+					}
+				}
+				result[i] = this.field.multiply(errorEvaluator.evaluateAt(xiInverse), this.field.inverse(denominator));
+				// Thanks to sanfordsquires for this fix:
+				if (dataMatrix)
+				{
+					result[i] = this.field.multiply(result[i], xiInverse);
+				}
+			}
+			return result;
+		}
+}

+ 149 - 0
h5/test.html

@@ -0,0 +1,149 @@
+<html>
+<head>
+<title>QRCODE</title>
+
+<style type="text/css">
+</style>
+
+
+<script type="text/javascript" src="grid.js"></script>
+<script type="text/javascript" src="version.js"></script>
+<script type="text/javascript" src="detector.js"></script>
+<script type="text/javascript" src="formatinf.js"></script>
+<script type="text/javascript" src="errorlevel.js"></script>
+<script type="text/javascript" src="bitmat.js"></script>
+<script type="text/javascript" src="datablock.js"></script>
+<script type="text/javascript" src="bmparser.js"></script>
+<script type="text/javascript" src="datamask.js"></script>
+<script type="text/javascript" src="rsdecoder.js"></script>
+<script type="text/javascript" src="gf256poly.js"></script>
+<script type="text/javascript" src="gf256.js"></script>
+<script type="text/javascript" src="decoder.js"></script>
+<script type="text/javascript" src="qrcode.js"></script>
+<script type="text/javascript" src="findpat.js"></script>
+<script type="text/javascript" src="alignpat.js"></script>
+<script type="text/javascript" src="databr.js"></script>
+
+<script type="text/javascript">
+var gCtx = null;
+	var gCanvas = null;
+
+	var imageData = null;
+	var ii=0;
+	var jj=0;
+	var c=0;
+	
+	
+function dragenter(e) {
+  e.stopPropagation();
+  e.preventDefault();
+}
+
+function dragover(e) {
+  e.stopPropagation();
+  e.preventDefault();
+}
+function drop(e) {
+  e.stopPropagation();
+  e.preventDefault();
+
+  var dt = e.dataTransfer;
+  var files = dt.files;
+
+  handleFiles(files);
+}
+
+function handleFiles(f)
+{
+	var o=[];
+	for(var i =0;i<f.length;i++)
+	{
+	  var reader = new FileReader();
+
+      reader.onload = (function(theFile) {
+        return function(e) {
+          qrcode.decode(e.target.result);
+        };
+      })(f[i]);
+
+      // Read in the image file as a data URL.
+      reader.readAsDataURL(f[i]);	}
+}
+	
+function read(a)
+{
+	alert(a);
+}	
+	
+function load()
+{
+	initCanvas(640,480);
+	qrcode.callback = read;
+	qrcode.decode("meqrthumb.png");
+}
+
+function initCanvas(ww,hh)
+	{
+		gCanvas = document.getElementById("qr-canvas");
+		gCanvas.addEventListener("dragenter", dragenter, false);  
+		gCanvas.addEventListener("dragover", dragover, false);  
+		gCanvas.addEventListener("drop", drop, false);
+		var w = ww;
+		var h = hh;
+		gCanvas.style.width = w + "px";
+		gCanvas.style.height = h + "px";
+		gCanvas.width = w;
+		gCanvas.height = h;
+		gCtx = gCanvas.getContext("2d");
+		gCtx.clearRect(0, 0, w, h);
+		imageData = gCtx.getImageData( 0,0,320,240);
+	}
+
+	function passLine(stringPixels) { 
+		//a = (intVal >> 24) & 0xff;
+
+		var coll = stringPixels.split("-");
+	
+		for(var i=0;i<320;i++) { 
+			var intVal = parseInt(coll[i]);
+			r = (intVal >> 16) & 0xff;
+			g = (intVal >> 8) & 0xff;
+			b = (intVal ) & 0xff;
+			imageData.data[c+0]=r;
+			imageData.data[c+1]=g;
+			imageData.data[c+2]=b;
+			imageData.data[c+3]=255;
+			c+=4;
+		} 
+
+		if(c>=320*240*4) { 
+			c=0;
+      			gCtx.putImageData(imageData, 0,0);
+		} 
+ 	} 
+
+        function captureToCanvas() {
+		flash = document.getElementById("embedflash");
+		flash.ccCapture();
+		qrcode.decode();
+        }
+</script>
+
+</head>
+
+<body onload="load()">
+    <div class="container">
+	
+  	<object  id="iembedflash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240">
+  		<param name="movie" value="camcanvas.swf" />
+  		<param name="quality" value="high" />
+		<param name="allowScriptAccess" value="always" />
+  		<embed  allowScriptAccess="always"  id="embedflash" src="camcanvas.swf" quality="high" width="320" height="240" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" mayscript="true"  />
+    </object>
+	
+    </div>
+<button onclick="captureToCanvas()">Capture</button><br>
+<canvas id="qr-canvas" width="640" height="480"></canvas>
+</body>
+
+</html>

+ 261 - 0
h5/version.js

@@ -0,0 +1,261 @@
+/*
+  Ported to JavaScript by Lazar Laszlo 2011 
+  
+  lazarsoft@gmail.com, www.lazarsoft.info
+  
+*/
+
+/*
+*
+* Copyright 2007 ZXing authors
+*
+* 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 ECB(count,  dataCodewords)
+{
+	this.count = count;
+	this.dataCodewords = dataCodewords;
+	
+	this.__defineGetter__("Count", function()
+	{
+		return this.count;
+	});
+	this.__defineGetter__("DataCodewords", function()
+	{
+		return this.dataCodewords;
+	});
+}
+
+function ECBlocks( ecCodewordsPerBlock,  ecBlocks1,  ecBlocks2)
+{
+	this.ecCodewordsPerBlock = ecCodewordsPerBlock;
+	if(ecBlocks2)
+		this.ecBlocks = new Array(ecBlocks1, ecBlocks2);
+	else
+		this.ecBlocks = new Array(ecBlocks1);
+	
+	this.__defineGetter__("ECCodewordsPerBlock", function()
+	{
+		return this.ecCodewordsPerBlock;
+	});
+	
+	this.__defineGetter__("TotalECCodewords", function()
+	{
+		return  this.ecCodewordsPerBlock * this.NumBlocks;
+	});
+	
+	this.__defineGetter__("NumBlocks", function()
+	{
+		var total = 0;
+		for (var i = 0; i < this.ecBlocks.length; i++)
+		{
+			total += this.ecBlocks[i].length;
+		}
+		return total;
+	});
+	
+	this.getECBlocks=function()
+			{
+				return this.ecBlocks;
+			}
+}
+
+function Version( versionNumber,  alignmentPatternCenters,  ecBlocks1,  ecBlocks2,  ecBlocks3,  ecBlocks4)
+{
+	this.versionNumber = versionNumber;
+	this.alignmentPatternCenters = alignmentPatternCenters;
+	this.ecBlocks = new Array(ecBlocks1, ecBlocks2, ecBlocks3, ecBlocks4);
+	
+	var total = 0;
+	var ecCodewords = ecBlocks1.ECCodewordsPerBlock;
+	var ecbArray = ecBlocks1.getECBlocks();
+	for (var i = 0; i < ecbArray.length; i++)
+	{
+		var ecBlock = ecbArray[i];
+		total += ecBlock.Count * (ecBlock.DataCodewords + ecCodewords);
+	}
+	this.totalCodewords = total;
+	
+	this.__defineGetter__("VersionNumber", function()
+	{
+		return  this.versionNumber;
+	});
+	
+	this.__defineGetter__("AlignmentPatternCenters", function()
+	{
+		return  this.alignmentPatternCenters;
+	});
+	this.__defineGetter__("TotalCodewords", function()
+	{
+		return  this.totalCodewords;
+	});
+	this.__defineGetter__("DimensionForVersion", function()
+	{
+		return  17 + 4 * this.versionNumber;
+	});
+	
+	this.buildFunctionPattern=function()
+		{
+			var dimension = this.DimensionForVersion;
+			var bitMatrix = new BitMatrix(dimension);
+			
+			// Top left finder pattern + separator + format
+			bitMatrix.setRegion(0, 0, 9, 9);
+			// Top right finder pattern + separator + format
+			bitMatrix.setRegion(dimension - 8, 0, 8, 9);
+			// Bottom left finder pattern + separator + format
+			bitMatrix.setRegion(0, dimension - 8, 9, 8);
+			
+			// Alignment patterns
+			var max = this.alignmentPatternCenters.length;
+			for (var x = 0; x < max; x++)
+			{
+				var i = this.alignmentPatternCenters[x] - 2;
+				for (var y = 0; y < max; y++)
+				{
+					if ((x == 0 && (y == 0 || y == max - 1)) || (x == max - 1 && y == 0))
+					{
+						// No alignment patterns near the three finder paterns
+						continue;
+					}
+					bitMatrix.setRegion(this.alignmentPatternCenters[y] - 2, i, 5, 5);
+				}
+			}
+			
+			// Vertical timing pattern
+			bitMatrix.setRegion(6, 9, 1, dimension - 17);
+			// Horizontal timing pattern
+			bitMatrix.setRegion(9, 6, dimension - 17, 1);
+			
+			if (this.versionNumber > 6)
+			{
+				// Version info, top right
+				bitMatrix.setRegion(dimension - 11, 0, 3, 6);
+				// Version info, bottom left
+				bitMatrix.setRegion(0, dimension - 11, 6, 3);
+			}
+			
+			return bitMatrix;
+		}
+	this.getECBlocksForLevel=function( ecLevel)
+	{
+		return this.ecBlocks[ecLevel.ordinal()];
+	}
+}
+
+Version.VERSION_DECODE_INFO = new Array(0x07C94, 0x085BC, 0x09A99, 0x0A4D3, 0x0BBF6, 0x0C762, 0x0D847, 0x0E60D, 0x0F928, 0x10B78, 0x1145D, 0x12A17, 0x13532, 0x149A6, 0x15683, 0x168C9, 0x177EC, 0x18EC4, 0x191E1, 0x1AFAB, 0x1B08E, 0x1CC1A, 0x1D33F, 0x1ED75, 0x1F250, 0x209D5, 0x216F0, 0x228BA, 0x2379F, 0x24B0B, 0x2542E, 0x26A64, 0x27541, 0x28C69);
+
+Version.VERSIONS = buildVersions();
+
+Version.getVersionForNumber=function( versionNumber)
+{
+	if (versionNumber < 1 || versionNumber > 40)
+	{
+		throw "ArgumentException";
+	}
+	return Version.VERSIONS[versionNumber - 1];
+}
+
+Version.getProvisionalVersionForDimension=function(dimension)
+{
+	if (dimension % 4 != 1)
+	{
+		throw "Error getProvisionalVersionForDimension";
+	}
+	try
+	{
+		return Version.getVersionForNumber((dimension - 17) >> 2);
+	}
+	catch ( iae)
+	{
+		throw "Error getVersionForNumber";
+	}
+}
+
+Version.decodeVersionInformation=function( versionBits)
+{
+	var bestDifference = 0xffffffff;
+	var bestVersion = 0;
+	for (var i = 0; i < Version.VERSION_DECODE_INFO.length; i++)
+	{
+		var targetVersion = Version.VERSION_DECODE_INFO[i];
+		// Do the version info bits match exactly? done.
+		if (targetVersion == versionBits)
+		{
+			return this.getVersionForNumber(i + 7);
+		}
+		// Otherwise see if this is the closest to a real version info bit string
+		// we have seen so far
+		var bitsDifference = FormatInformation.numBitsDiffering(versionBits, targetVersion);
+		if (bitsDifference < bestDifference)
+		{
+			bestVersion = i + 7;
+			bestDifference = bitsDifference;
+		}
+	}
+	// We can tolerate up to 3 bits of error since no two version info codewords will
+	// differ in less than 4 bits.
+	if (bestDifference <= 3)
+	{
+		return this.getVersionForNumber(bestVersion);
+	}
+	// If we didn't find a close enough match, fail
+	return null;
+}
+
+function buildVersions()
+{
+	return new Array(new Version(1, new Array(), new ECBlocks(7, new ECB(1, 19)), new ECBlocks(10, new ECB(1, 16)), new ECBlocks(13, new ECB(1, 13)), new ECBlocks(17, new ECB(1, 9))), 
+	new Version(2, new Array(6, 18), new ECBlocks(10, new ECB(1, 34)), new ECBlocks(16, new ECB(1, 28)), new ECBlocks(22, new ECB(1, 22)), new ECBlocks(28, new ECB(1, 16))), 
+	new Version(3, new Array(6, 22), new ECBlocks(15, new ECB(1, 55)), new ECBlocks(26, new ECB(1, 44)), new ECBlocks(18, new ECB(2, 17)), new ECBlocks(22, new ECB(2, 13))), 
+	new Version(4, new Array(6, 26), new ECBlocks(20, new ECB(1, 80)), new ECBlocks(18, new ECB(2, 32)), new ECBlocks(26, new ECB(2, 24)), new ECBlocks(16, new ECB(4, 9))), 
+	new Version(5, new Array(6, 30), new ECBlocks(26, new ECB(1, 108)), new ECBlocks(24, new ECB(2, 43)), new ECBlocks(18, new ECB(2, 15), new ECB(2, 16)), new ECBlocks(22, new ECB(2, 11), new ECB(2, 12))), 
+	new Version(6, new Array(6, 34), new ECBlocks(18, new ECB(2, 68)), new ECBlocks(16, new ECB(4, 27)), new ECBlocks(24, new ECB(4, 19)), new ECBlocks(28, new ECB(4, 15))), 
+	new Version(7, new Array(6, 22, 38), new ECBlocks(20, new ECB(2, 78)), new ECBlocks(18, new ECB(4, 31)), new ECBlocks(18, new ECB(2, 14), new ECB(4, 15)), new ECBlocks(26, new ECB(4, 13), new ECB(1, 14))), 
+	new Version(8, new Array(6, 24, 42), new ECBlocks(24, new ECB(2, 97)), new ECBlocks(22, new ECB(2, 38), new ECB(2, 39)), new ECBlocks(22, new ECB(4, 18), new ECB(2, 19)), new ECBlocks(26, new ECB(4, 14), new ECB(2, 15))), 
+	new Version(9, new Array(6, 26, 46), new ECBlocks(30, new ECB(2, 116)), new ECBlocks(22, new ECB(3, 36), new ECB(2, 37)), new ECBlocks(20, new ECB(4, 16), new ECB(4, 17)), new ECBlocks(24, new ECB(4, 12), new ECB(4, 13))), 
+	new Version(10, new Array(6, 28, 50), new ECBlocks(18, new ECB(2, 68), new ECB(2, 69)), new ECBlocks(26, new ECB(4, 43), new ECB(1, 44)), new ECBlocks(24, new ECB(6, 19), new ECB(2, 20)), new ECBlocks(28, new ECB(6, 15), new ECB(2, 16))), 
+	new Version(11, new Array(6, 30, 54), new ECBlocks(20, new ECB(4, 81)), new ECBlocks(30, new ECB(1, 50), new ECB(4, 51)), new ECBlocks(28, new ECB(4, 22), new ECB(4, 23)), new ECBlocks(24, new ECB(3, 12), new ECB(8, 13))), 
+	new Version(12, new Array(6, 32, 58), new ECBlocks(24, new ECB(2, 92), new ECB(2, 93)), new ECBlocks(22, new ECB(6, 36), new ECB(2, 37)), new ECBlocks(26, new ECB(4, 20), new ECB(6, 21)), new ECBlocks(28, new ECB(7, 14), new ECB(4, 15))), 
+	new Version(13, new Array(6, 34, 62), new ECBlocks(26, new ECB(4, 107)), new ECBlocks(22, new ECB(8, 37), new ECB(1, 38)), new ECBlocks(24, new ECB(8, 20), new ECB(4, 21)), new ECBlocks(22, new ECB(12, 11), new ECB(4, 12))), 
+	new Version(14, new Array(6, 26, 46, 66), new ECBlocks(30, new ECB(3, 115), new ECB(1, 116)), new ECBlocks(24, new ECB(4, 40), new ECB(5, 41)), new ECBlocks(20, new ECB(11, 16), new ECB(5, 17)), new ECBlocks(24, new ECB(11, 12), new ECB(5, 13))), 
+	new Version(15, new Array(6, 26, 48, 70), new ECBlocks(22, new ECB(5, 87), new ECB(1, 88)), new ECBlocks(24, new ECB(5, 41), new ECB(5, 42)), new ECBlocks(30, new ECB(5, 24), new ECB(7, 25)), new ECBlocks(24, new ECB(11, 12), new ECB(7, 13))), 
+	new Version(16, new Array(6, 26, 50, 74), new ECBlocks(24, new ECB(5, 98), new ECB(1, 99)), new ECBlocks(28, new ECB(7, 45), new ECB(3, 46)), new ECBlocks(24, new ECB(15, 19), new ECB(2, 20)), new ECBlocks(30, new ECB(3, 15), new ECB(13, 16))), 
+	new Version(17, new Array(6, 30, 54, 78), new ECBlocks(28, new ECB(1, 107), new ECB(5, 108)), new ECBlocks(28, new ECB(10, 46), new ECB(1, 47)), new ECBlocks(28, new ECB(1, 22), new ECB(15, 23)), new ECBlocks(28, new ECB(2, 14), new ECB(17, 15))), 
+	new Version(18, new Array(6, 30, 56, 82), new ECBlocks(30, new ECB(5, 120), new ECB(1, 121)), new ECBlocks(26, new ECB(9, 43), new ECB(4, 44)), new ECBlocks(28, new ECB(17, 22), new ECB(1, 23)), new ECBlocks(28, new ECB(2, 14), new ECB(19, 15))), 
+	new Version(19, new Array(6, 30, 58, 86), new ECBlocks(28, new ECB(3, 113), new ECB(4, 114)), new ECBlocks(26, new ECB(3, 44), new ECB(11, 45)), new ECBlocks(26, new ECB(17, 21), new ECB(4, 22)), new ECBlocks(26, new ECB(9, 13), new ECB(16, 14))), 
+	new Version(20, new Array(6, 34, 62, 90), new ECBlocks(28, new ECB(3, 107), new ECB(5, 108)), new ECBlocks(26, new ECB(3, 41), new ECB(13, 42)), new ECBlocks(30, new ECB(15, 24), new ECB(5, 25)), new ECBlocks(28, new ECB(15, 15), new ECB(10, 16))), 
+	new Version(21, new Array(6, 28, 50, 72, 94), new ECBlocks(28, new ECB(4, 116), new ECB(4, 117)), new ECBlocks(26, new ECB(17, 42)), new ECBlocks(28, new ECB(17, 22), new ECB(6, 23)), new ECBlocks(30, new ECB(19, 16), new ECB(6, 17))), 
+	new Version(22, new Array(6, 26, 50, 74, 98), new ECBlocks(28, new ECB(2, 111), new ECB(7, 112)), new ECBlocks(28, new ECB(17, 46)), new ECBlocks(30, new ECB(7, 24), new ECB(16, 25)), new ECBlocks(24, new ECB(34, 13))), 
+	new Version(23, new Array(6, 30, 54, 74, 102), new ECBlocks(30, new ECB(4, 121), new ECB(5, 122)), new ECBlocks(28, new ECB(4, 47), new ECB(14, 48)), new ECBlocks(30, new ECB(11, 24), new ECB(14, 25)), new ECBlocks(30, new ECB(16, 15), new ECB(14, 16))), 
+	new Version(24, new Array(6, 28, 54, 80, 106), new ECBlocks(30, new ECB(6, 117), new ECB(4, 118)), new ECBlocks(28, new ECB(6, 45), new ECB(14, 46)), new ECBlocks(30, new ECB(11, 24), new ECB(16, 25)), new ECBlocks(30, new ECB(30, 16), new ECB(2, 17))), 
+	new Version(25, new Array(6, 32, 58, 84, 110), new ECBlocks(26, new ECB(8, 106), new ECB(4, 107)), new ECBlocks(28, new ECB(8, 47), new ECB(13, 48)), new ECBlocks(30, new ECB(7, 24), new ECB(22, 25)), new ECBlocks(30, new ECB(22, 15), new ECB(13, 16))), 
+	new Version(26, new Array(6, 30, 58, 86, 114), new ECBlocks(28, new ECB(10, 114), new ECB(2, 115)), new ECBlocks(28, new ECB(19, 46), new ECB(4, 47)), new ECBlocks(28, new ECB(28, 22), new ECB(6, 23)), new ECBlocks(30, new ECB(33, 16), new ECB(4, 17))), 
+	new Version(27, new Array(6, 34, 62, 90, 118), new ECBlocks(30, new ECB(8, 122), new ECB(4, 123)), new ECBlocks(28, new ECB(22, 45), new ECB(3, 46)), new ECBlocks(30, new ECB(8, 23), new ECB(26, 24)), new ECBlocks(30, new ECB(12, 15), 		new ECB(28, 16))),
+	new Version(28, new Array(6, 26, 50, 74, 98, 122), new ECBlocks(30, new ECB(3, 117), new ECB(10, 118)), new ECBlocks(28, new ECB(3, 45), new ECB(23, 46)), new ECBlocks(30, new ECB(4, 24), new ECB(31, 25)), new ECBlocks(30, new ECB(11, 15), new ECB(31, 16))), 
+	new Version(29, new Array(6, 30, 54, 78, 102, 126), new ECBlocks(30, new ECB(7, 116), new ECB(7, 117)), new ECBlocks(28, new ECB(21, 45), new ECB(7, 46)), new ECBlocks(30, new ECB(1, 23), new ECB(37, 24)), new ECBlocks(30, new ECB(19, 15), new ECB(26, 16))), 
+	new Version(30, new Array(6, 26, 52, 78, 104, 130), new ECBlocks(30, new ECB(5, 115), new ECB(10, 116)), new ECBlocks(28, new ECB(19, 47), new ECB(10, 48)), new ECBlocks(30, new ECB(15, 24), new ECB(25, 25)), new ECBlocks(30, new ECB(23, 15), new ECB(25, 16))), 
+	new Version(31, new Array(6, 30, 56, 82, 108, 134), new ECBlocks(30, new ECB(13, 115), new ECB(3, 116)), new ECBlocks(28, new ECB(2, 46), new ECB(29, 47)), new ECBlocks(30, new ECB(42, 24), new ECB(1, 25)), new ECBlocks(30, new ECB(23, 15), new ECB(28, 16))), 
+	new Version(32, new Array(6, 34, 60, 86, 112, 138), new ECBlocks(30, new ECB(17, 115)), new ECBlocks(28, new ECB(10, 46), new ECB(23, 47)), new ECBlocks(30, new ECB(10, 24), new ECB(35, 25)), new ECBlocks(30, new ECB(19, 15), new ECB(35, 16))), 
+	new Version(33, new Array(6, 30, 58, 86, 114, 142), new ECBlocks(30, new ECB(17, 115), new ECB(1, 116)), new ECBlocks(28, new ECB(14, 46), new ECB(21, 47)), new ECBlocks(30, new ECB(29, 24), new ECB(19, 25)), new ECBlocks(30, new ECB(11, 15), new ECB(46, 16))), 
+	new Version(34, new Array(6, 34, 62, 90, 118, 146), new ECBlocks(30, new ECB(13, 115), new ECB(6, 116)), new ECBlocks(28, new ECB(14, 46), new ECB(23, 47)), new ECBlocks(30, new ECB(44, 24), new ECB(7, 25)), new ECBlocks(30, new ECB(59, 16), new ECB(1, 17))), 
+	new Version(35, new Array(6, 30, 54, 78, 102, 126, 150), new ECBlocks(30, new ECB(12, 121), new ECB(7, 122)), new ECBlocks(28, new ECB(12, 47), new ECB(26, 48)), new ECBlocks(30, new ECB(39, 24), new ECB(14, 25)),new ECBlocks(30, new ECB(22, 15), new ECB(41, 16))), 
+	new Version(36, new Array(6, 24, 50, 76, 102, 128, 154), new ECBlocks(30, new ECB(6, 121), new ECB(14, 122)), new ECBlocks(28, new ECB(6, 47), new ECB(34, 48)), new ECBlocks(30, new ECB(46, 24), new ECB(10, 25)), new ECBlocks(30, new ECB(2, 15), new ECB(64, 16))), 
+	new Version(37, new Array(6, 28, 54, 80, 106, 132, 158), new ECBlocks(30, new ECB(17, 122), new ECB(4, 123)), new ECBlocks(28, new ECB(29, 46), new ECB(14, 47)), new ECBlocks(30, new ECB(49, 24), new ECB(10, 25)), new ECBlocks(30, new ECB(24, 15), new ECB(46, 16))), 
+	new Version(38, new Array(6, 32, 58, 84, 110, 136, 162), new ECBlocks(30, new ECB(4, 122), new ECB(18, 123)), new ECBlocks(28, new ECB(13, 46), new ECB(32, 47)), new ECBlocks(30, new ECB(48, 24), new ECB(14, 25)), new ECBlocks(30, new ECB(42, 15), new ECB(32, 16))), 
+	new Version(39, new Array(6, 26, 54, 82, 110, 138, 166), new ECBlocks(30, new ECB(20, 117), new ECB(4, 118)), new ECBlocks(28, new ECB(40, 47), new ECB(7, 48)), new ECBlocks(30, new ECB(43, 24), new ECB(22, 25)), new ECBlocks(30, new ECB(10, 15), new ECB(67, 16))), 
+	new Version(40, new Array(6, 30, 58, 86, 114, 142, 170), new ECBlocks(30, new ECB(19, 118), new ECB(6, 119)), new ECBlocks(28, new ECB(18, 47), new ECB(31, 48)), new ECBlocks(30, new ECB(34, 24), new ECB(34, 25)), new ECBlocks(30, new ECB(20, 15), new ECB(61, 16))));
+}

+ 61 - 0
header.html

@@ -0,0 +1,61 @@
+<!-- Navigation -->
+<nav class="nav" id="nav">
+    <div class="nav-container">
+        <a href="index.html" class="logo">
+            <div class="logo-icon">
+                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="40" height="40">
+                    <defs>
+                        <linearGradient id="ayGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+                            <stop offset="0%" style="stop-color:#0066cc"/>
+                            <stop offset="100%" style="stop-color:#0088ff"/>
+                        </linearGradient>
+                    </defs>
+                    <rect x="2" y="2" width="46" height="46" rx="8" fill="url(#ayGrad)"/>
+                    <path d="M12 38 L20 16 L25 28 L30 16 L38 38 L31 38 L27 25 L23 25 L19 38 Z" fill="white"/>
+                    <path d="M23 22 L27 22 L25 12 Z" fill="url(#ayGrad)"/>
+                </svg>
+            </div>
+            <span class="logo-text">安盈创卓</span>
+        </a>
+        <ul class="nav-links" id="navLinks">
+            <li><a href="index.html" class="nav-item" data-page="index">首页</a></li>
+            <li><a href="product_totem.html" class="nav-item" data-page="product">企业产品</a></li>
+            <li><a href="serve.html" class="nav-item" data-page="serve">企业服务</a></li>
+            <li><a href="news.html" class="nav-item" data-page="news">新闻中心</a></li>
+            <li><a href="about.html" class="nav-item" data-page="about">关于我们</a></li>
+            <li class="nav-dropdown">
+                <a href="#" class="nav-item" data-page="contact">联系我们</a>
+                <div class="nav-dropdown-menu">
+                    <a href="contact.html">线上咨询</a>
+                    <a href="jobs.html">企业招聘</a>
+                </div>
+            </li>
+        </ul>
+        <button class="mobile-menu-btn" id="mobileMenuBtn" onclick="toggleMobileMenu()">
+            <span></span>
+            <span></span>
+            <span></span>
+        </button>
+    </div>
+</nav>
+<script>
+(function() {
+    var path = window.location.pathname.split('/').pop() || 'index.html';
+    var pageMap = {
+        'index.html': 'index', '': 'index',
+        'product_totem.html': 'product', 'product_portal.html': 'product', 'product_oa.html': 'product',
+        'product_super.html': 'product', 'product_info.html': 'product', 'product_leader.html': 'product',
+        'product_bigdata.html': 'product', 'product_4a.html': 'product',
+        'serve.html': 'serve',
+        'news.html': 'news', 'news_show.html': 'news',
+        'about.html': 'about', 'about_certificate.html': 'about', 'about_member.html': 'about',
+        'contact.html': 'contact', 'jobs.html': 'contact'
+    };
+    var currentPage = pageMap[path];
+    if (currentPage) {
+        document.querySelectorAll('.nav-item').forEach(function(link) {
+            if (link.getAttribute('data-page') === currentPage) link.classList.add('active');
+        });
+    }
+})();
+</script>

TEMPAT SAMPAH
images/about.png


TEMPAT SAMPAH
images/bg1.png


TEMPAT SAMPAH
images/bg_footer.gif


TEMPAT SAMPAH
images/bg_menu.png


TEMPAT SAMPAH
images/bg_site.gif


TEMPAT SAMPAH
images/contect.png


TEMPAT SAMPAH
images/dbxt_bg.png


TEMPAT SAMPAH
images/ico_readmore.gif


TEMPAT SAMPAH
images/img_logo.gif


TEMPAT SAMPAH
images/logo.png


TEMPAT SAMPAH
images/menu_1_en.gif


TEMPAT SAMPAH
images/menu_2_en.gif


TEMPAT SAMPAH
images/menu_3_en.gif


TEMPAT SAMPAH
images/menu_4_en.gif


TEMPAT SAMPAH
images/menu_9_en.gif


TEMPAT SAMPAH
images/newsroom.png


TEMPAT SAMPAH
images/p1-t-1.png


TEMPAT SAMPAH
images/product.gif


TEMPAT SAMPAH
images/product.png


TEMPAT SAMPAH
images/service.png


TEMPAT SAMPAH
images/solutions.png


TEMPAT SAMPAH
images/tit_about_cn1.png


TEMPAT SAMPAH
images/tit_eas_en.png


TEMPAT SAMPAH
images/tit_fis_en.png


TEMPAT SAMPAH
img/4a.png


TEMPAT SAMPAH
img/app.png


TEMPAT SAMPAH
img/bigdata.png


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini