Skip to content

Commit d3f29cf

Browse files
committed
Merge pull request #80 from jsperf/ads
Port advertisements to the new version
2 parents 52cfb05 + 5c61586 commit d3f29cf

File tree

6 files changed

+18
-1
lines changed

6 files changed

+18
-1
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ indent_size = 2
77
end_of_line = lf
88
insert_final_newline = true
99
trim_trailing_whitespace = true
10+
11+
[*.css]
12+
indent_style = tab

public/_css/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/_css/main.src.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,16 @@ footer {
566566
color: #606;
567567
}
568568

569+
#carbonads {
570+
float: right;
571+
width: 130px;
572+
font-size: 80%;
573+
}
574+
575+
#carbonads a {
576+
display: block;
577+
}
578+
569579
/* < 1051px */
570580
@media (max-width: 1050px) {
571581
table pre, table td.code {

server/web/faq/index.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<h1>Frequently asked questions</h1>
2+
{{> advertisement}}
23

34
<ul>
45
{{#each faq}}

server/web/home/index.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<strong><em title="JavaScript">js</em>Perf</strong> — JavaScript performance playground
33
</h1>
44

5+
{{> advertisement}}
6+
57
<h2>What is jsPerf?</h2>
68

79
<p>jsPerf aims to provide an easy way to create and share <a href="/browse" title="View some examples by browsing the jsPerf test cases">test cases</a>, comparing the performance of different JavaScript snippets by running benchmarks. For more information, see <a href="/faq" title="Frequently asked questions">the FAQ</a>.</p>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<script async src="https://cdn.carbonads.com/carbon.js?zoneid=1673&amp;serve=C6AILKT&amp;placement=jsperfcom" id="_carbonads_js"></script>

0 commit comments

Comments
 (0)