Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大大大太阳yt
driver.js
提交
0096a08a
D
driver.js
项目概览
大大大太阳yt
/
driver.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
driver.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0096a08a
编写于
3月 14, 2018
作者:
K
Kamran Ahmed
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
UI Updates
上级
dbd9ad0b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
22 addition
and
6 deletion
+22
-6
demo/scripts/demo.js
demo/scripts/demo.js
+9
-4
demo/styles/base.scss
demo/styles/base.scss
+4
-0
demo/styles/demo.scss
demo/styles/demo.scss
+1
-1
index.html
index.html
+7
-0
src/core/overlay.js
src/core/overlay.js
+1
-1
未找到文件。
demo/scripts/demo.js
浏览文件 @
0096a08a
...
...
@@ -176,7 +176,7 @@ document.addEventListener("DOMContentLoaded", function () {
popover
:
{
title
:
'
Did you know?
'
,
description
:
'
You can add HTML in title or description also!
'
,
position
:
'
left
'
position
:
'
top
'
}
});
});
...
...
@@ -280,7 +280,7 @@ document.addEventListener("DOMContentLoaded", function () {
popover
:
{
title
:
'
Title for the Popover
'
,
description
:
'
Description for it
'
,
position
:
'
left
'
,
// can be `top`, `left`, `right`, `bottom`
position
:
'
top
'
,
// can be `top`, `left`, `right`, `bottom`
}
});
});
...
...
@@ -303,7 +303,7 @@ document.addEventListener("DOMContentLoaded", function () {
popover
:
{
title
:
'
Title on Popover
'
,
description
:
'
Body of the popover
'
,
position
:
'
left
'
position
:
'
bottom
'
}
},
{
...
...
@@ -311,7 +311,7 @@ document.addEventListener("DOMContentLoaded", function () {
popover
:
{
title
:
'
Title on Popover
'
,
description
:
'
Body of the popover
'
,
position
:
'
right
'
position
:
'
top
'
}
},
{
...
...
@@ -339,4 +339,9 @@ document.addEventListener("DOMContentLoaded", function () {
featureIntroductionDriver
.
start
();
});
const
newURL
=
location
.
href
.
split
(
"
?
"
)[
0
];
if
(
newURL
!==
location
.
href
)
{
window
.
location
=
newURL
;
window
.
location
.
href
=
newURL
;
}
});
demo/styles/base.scss
浏览文件 @
0096a08a
...
...
@@ -135,6 +135,10 @@ blockquote {
margin-top
:
20px
;
}
.top-30
{
margin-top
:
30px
;
}
.zero-bottom
{
margin-bottom
:
0
;
}
...
...
demo/styles/demo.scss
浏览文件 @
0096a08a
...
...
@@ -65,7 +65,7 @@ section {
}
.section__header
{
margin
:
10px
0
3
0px
;
margin
:
10px
0
2
0px
;
text-align
:
center
;
display
:
block
;
padding
:
10px
;
...
...
index.html
浏览文件 @
0096a08a
...
...
@@ -20,6 +20,13 @@
<a
id=
"animated-tour"
href=
"javascript:void(0)"
class=
"btn btn__example btn__dark btn-left"
>
With Animation
</a>
<a
id=
"boring-tour"
href=
"javascript:void(0)"
class=
"btn btn__example btn__dark btn-right"
>
without Animation
</a>
<div
class=
"github-button top-30"
>
<!-- Place this tag where you want the button to render. -->
<a
class=
"github-button"
href=
"https://github.com/kamranahmedse/driver.js"
data-size=
"large"
data-show-count=
"true"
aria-label=
"Star kamranahmedse/driver.js on GitHub"
>
Star
</a>
</div>
</section>
<blockquote>
...
...
src/core/overlay.js
浏览文件 @
0096a08a
...
...
@@ -55,7 +55,7 @@ export default class Overlay {
}
// If highlighted element is not changed from last time
if
(
this
.
highlightedElement
&&
this
.
highlightedElement
.
isSame
(
this
.
lastH
ighlightedElement
))
{
if
(
element
.
isSame
(
this
.
h
ighlightedElement
))
{
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录