Skip to content

Commit

Permalink
feat: 增加上报
Browse files Browse the repository at this point in the history
  • Loading branch information
lyxuncle committed Aug 14, 2019
1 parent 0f46ddb commit 6ddf3d2
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dist/bundle-parallax.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/config-parallax.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/control-parallax.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<meta name="format-detection" content="telephone=no">
<title>demo</title>

<link href="//storage.jd.com/ambient/styles-parallax.css?e6e8e3ff08e90875149b" rel="stylesheet"></head>
<link href="//storage.jd.com/ambient/styles-parallax.css?e5e719aa354941fa5f02" rel="stylesheet"></head>
<body>
<!-- S 主体内容 -->
<div class="o2team_ambient_main">
</div>
<!-- E 主体内容 -->

<script type="text/javascript" src="//storage.jd.com/ambient/control-parallax.js?e6e8e3ff08e90875149b"></script><script type="text/javascript" src="//storage.jd.com/ambient/bundle-parallax.js?e6e8e3ff08e90875149b"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-parallax.js?e6e8e3ff08e90875149b"></script></body>
<script type="text/javascript" src="//storage.jd.com/ambient/control-parallax.js?e5e719aa354941fa5f02"></script><script type="text/javascript" src="//storage.jd.com/ambient/bundle-parallax.js?e5e719aa354941fa5f02"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-parallax.js?e5e719aa354941fa5f02"></script></body>
</html>
4 changes: 2 additions & 2 deletions dist/index_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<script type="text/javascript" src="//storage.jd.com/ambient-global/ambient-autoStop-head.js"></script>

<link href="//storage.jd.com/ambient/styles-parallax.css?e6e8e3ff08e90875149b" rel="stylesheet"></head>
<link href="//storage.jd.com/ambient/styles-parallax.css?e5e719aa354941fa5f02" rel="stylesheet"></head>
<body>
<!-- S 主体内容 -->
<div class="o2team_ambient_main">
Expand All @@ -17,5 +17,5 @@

<script type="text/javascript" src="//storage.jd.com/ambient-global/ambient-autoStop-body.js"></script>

<script type="text/javascript" src="//storage.jd.com/ambient/control-parallax.js?e6e8e3ff08e90875149b"></script><script type="text/javascript" src="//storage.jd.com/ambient/bundle-parallax.js?e6e8e3ff08e90875149b"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-parallax.js?e6e8e3ff08e90875149b"></script></body>
<script type="text/javascript" src="//storage.jd.com/ambient/control-parallax.js?e5e719aa354941fa5f02"></script><script type="text/javascript" src="//storage.jd.com/ambient/bundle-parallax.js?e5e719aa354941fa5f02"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-parallax.js?e5e719aa354941fa5f02"></script></body>
</html>
6 changes: 3 additions & 3 deletions info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"title": "parallax",
"ambName": "视差滚动",
"github": "https://github.com/o2team-ambient/parallax",
"demoSnippet": "<link href=\"//storage.jd.com/ambient/styles-parallax.css?t=1552544273000\" rel=\"stylesheet\"></link><!-- S 主体内容 -->\n <div class=\"o2team_ambient_main\">\n </div>\n <!-- E 主体内容 --><script src=\"//storage.jd.com/ambient/bundle-parallax.js?t=1552544273000\"></script>",
"controlUrl": "//storage.jd.com/ambient/control-parallax.js?t=1552544273000",
"configUrl": "//storage.jd.com/ambient/config-parallax.js?t=1552544273000",
"demoSnippet": "<link href=\"//storage.jd.com/ambient/styles-parallax.css?t=1565787044000\" rel=\"stylesheet\"></link><!-- S 主体内容 -->\n <div class=\"o2team_ambient_main\">\n </div>\n <!-- E 主体内容 --><script src=\"//storage.jd.com/ambient/bundle-parallax.js?t=1565787044000\"></script>",
"controlUrl": "//storage.jd.com/ambient/control-parallax.js?t=1565787044000",
"configUrl": "//storage.jd.com/ambient/config-parallax.js?t=1565787044000",
"placeholderImg": "//storage.jd.com/ambient/parallax_placeholder.png?t=1554088450000"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"license": "ISC",
"dependencies": {
"@o2team/ambient-dat.gui": "^0.7.9",
"@o2team/ambient-report": "^1.0.3",
"canvallax": "^1.2.0"
},
"devDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import './css/base.scss'
import './css/package.scss'

import Report from '@o2team/ambient-report'

import { O2_AMBIENT_CONFIG } from './js/utils/const'
import initAmbient from './js/ambient'

Expand All @@ -14,3 +16,6 @@ try {
} catch (e) {
console.log(e)
}

Report.init({})
Report.processPV()

0 comments on commit 6ddf3d2

Please sign in to comment.