Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
8137324b
Commit
8137324b
authored
Apr 19, 2016
by
Nick Stenning
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3226 from hypothesis/csp-violation-homepage
CSP Violation: old homepage
parents
cc86d0cb
96220b92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
0 deletions
+52
-0
gulpfile.js
gulpfile.js
+1
-0
legacy-site.js
h/static/scripts/legacy-site.js
+29
-0
old-home.scss
h/static/styles/old-home.scss
+22
-0
No files found.
gulpfile.js
View file @
8137324b
...
@@ -162,6 +162,7 @@ var styleFiles = [
...
@@ -162,6 +162,7 @@ var styleFiles = [
'./h/static/styles/front-page/main.css'
,
'./h/static/styles/front-page/main.css'
,
'./h/static/styles/help-page.scss'
,
'./h/static/styles/help-page.scss'
,
'./h/static/styles/site.scss'
,
'./h/static/styles/site.scss'
,
'./h/static/styles/old-home.scss'
,
// Vendor
// Vendor
'./h/static/styles/vendor/angular-csp.css'
,
'./h/static/styles/vendor/angular-csp.css'
,
...
...
h/static/scripts/legacy-site.js
View file @
8137324b
'use strict'
;
window
.
$
=
window
.
jQuery
=
require
(
'jquery'
);
window
.
$
=
window
.
jQuery
=
require
(
'jquery'
);
require
(
'bootstrap'
);
require
(
'bootstrap'
);
if
(
window
.
chrome
!==
undefined
)
{
var
elements
=
document
.
getElementsByClassName
(
'unhide-in-chrome'
);
for
(
var
i
=
0
;
i
<
elements
.
length
;
i
++
)
{
elements
[
i
].
classList
.
remove
(
'hidden'
);
}
elements
=
document
.
getElementsByClassName
(
'hide-in-chrome'
);
for
(
var
i
=
0
;
i
<
elements
.
length
;
i
++
)
{
elements
[
i
].
classList
.
add
(
'hidden'
);
}
}
var
bookmarkletInstaller
=
document
.
getElementById
(
'js-bookmarklet-install'
);
if
(
bookmarkletInstaller
)
{
bookmarkletInstaller
.
addEventListener
(
'click'
,
function
(
event
)
{
window
.
alert
(
'Drag me to the bookmarks bar'
);
event
.
preventDefault
();
});
}
var
chromeextInstaller
=
document
.
getElementById
(
'js-chrome-extension-install'
);
if
(
chromeextInstaller
)
{
chromeextInstaller
.
addEventListener
(
'click'
,
function
(
event
)
{
chrome
.
webstore
.
install
();
event
.
preventDefault
();
});
}
h/static/styles/old-home.scss
0 → 100644
View file @
8137324b
@at-root
{
.press-release-banner
{
background-color
:
#f7f7f7
;
border
:
1px
solid
#ccc
;
border-radius
:
4px
;
}
.press-release-banner
>
p
{
font-size
:
21px
;
margin-top
:
20px
;
margin-bottom
:
20px
;
text-align
:
center
;
}
/* FIXME: Remove the '!important' hack below and move
This to the correct stylesheet in the new homepage.
*/
.social-media-link
{
font-size
:
16px
!
important
;
text-decoration
:
none
!
important
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment