Skip to content

Commit 4225d30

Browse files
authored
Merge pull request microsoft#97 from Microsoft/alihamud-live-code
Add Link to old sample.
2 parents 57208e5 + 031d6ec commit 4225d30

File tree

4 files changed

+69
-45
lines changed

4 files changed

+69
-45
lines changed

demo/code-demo/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
<div class="logo-text">
1515
<span class="logo-text-span">Microsoft Power BI JavaScript SDK - Live Sample</span>
1616
</div>
17+
<div id="oldSample">
18+
<a href="/static.html">Old Sample</a>
19+
</div>
1720
</header>
1821

1922
<div id="mainContent" class="jumbotron">

demo/code-demo/style/style.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@ a:hover, a:visited, a:link, a:active
7878
height:550px;
7979
}
8080

81+
#oldSample {
82+
float: right;
83+
margin-right: 30px;
84+
font-weight: bolder;
85+
}
86+
87+
#oldSample a {
88+
color: white;
89+
text-decoration: underline;
90+
font-size: 20px;
91+
}
92+
8193
.ms-font-xxl {
8294
color: #333333;
8395
font-family: 'Segoe UI Web Light', 'Segoe UI Light', 'Segoe WP Light', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif;

demo/index.html

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,9 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="utf-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6-
<meta http-equiv="x-ua-compatible" content="ie=edge">
7-
<title>Power BI - Sample - Client - JavaScript</title>
8-
<base path="/" />
9-
10-
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
11-
<link rel="stylesheet" href="styles/app.css" />
12-
</head>
133
<body>
14-
<div class="container">
15-
<h1>Power BI - Sample - Client - Javascript</h1>
16-
<p>Demonstrate how to embed reports and interact with them using the api provided by the core library. <a href="https://github.com/microsoft/PowerBI-JavaScript" target="_blank">PowerBI-JavaScript</a></p>
17-
18-
<h2>Scenarios:</h2>
19-
<ul id="navigation" class="nav nav-pills">
20-
<li id="pageLinkStatic" class="active"><a href="index.html">Scenario 1: Static Embed</a></li>
21-
<li id="pageLinkDynamic" class=""><a href="dynamic.html">Scenario 2: Dynamic Embed</a></li>
22-
<li id="pageLinkPageNav" class=""><a href="pagenavigation.html">Scenario 3: Custom Page Navigation</a></li>
23-
<li id="pageLinkFilters" class=""><a href="filters.html">Scenario 4: Custom Filter Pane</a></li>
24-
<li id="pageLinkDefaults" class=""><a href="defaults.html">Scenario 5: Default Page and/or Filter</a></li>
25-
<li id="pageLinkSettings" class=""><a href="settings.html">Scenario 6: Update Settings</a></li>
26-
<li id="pageLinkDataSelection" class=""><a href="dataselection.html">Scenario 7: Data Selection</a></li>
27-
</ul>
28-
29-
<h2>Static Embed</h2>
30-
<p>Report to embed is known by the developer.</p>
31-
32-
<div id="reportstatic" class="powerbi-container"></div>
33-
34-
<br>
35-
<p>
36-
<button type="button" id="getId" class="btn btn-warning">Get Report ID</button>
37-
<button type="button" id="fullscreen" class="btn btn-warning">Toggle Fullscreen</button>
38-
<button type="button" id="reloadReport" class="btn btn-warning">Reload Report</button>
39-
<button type="button" id="printReport" class="btn btn-warning">Print Report</button>
40-
</p>
41-
</div>
42-
43-
<script src="bower_components/jquery/dist/jquery.js"></script>
44-
<script src="bower_components/es6-promise/es6-promise.js"></script>
45-
<script src="bower_components/fetch/fetch.js"></script>
46-
<script src="bower_components/powerbi-client/dist/powerbi.js"></script>
47-
48-
<script src="app/index.js"></script>
494
</body>
5+
6+
<script>
7+
window.location = "code-demo/index.html";
8+
</script>
509
</html>

demo/static.html

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6+
<meta http-equiv="x-ua-compatible" content="ie=edge">
7+
<title>Power BI - Sample - Client - JavaScript</title>
8+
<base path="/" />
9+
10+
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
11+
<link rel="stylesheet" href="styles/app.css" />
12+
</head>
13+
<body>
14+
<div class="container">
15+
<h1>Power BI - Sample - Client - Javascript</h1>
16+
<p>Demonstrate how to embed reports and interact with them using the api provided by the core library. <a href="https://github.com/microsoft/PowerBI-JavaScript" target="_blank">PowerBI-JavaScript</a></p>
17+
18+
<h2>Scenarios:</h2>
19+
<ul id="navigation" class="nav nav-pills">
20+
<li id="pageLinkStatic" class="active"><a href="index.html">Scenario 1: Static Embed</a></li>
21+
<li id="pageLinkDynamic" class=""><a href="dynamic.html">Scenario 2: Dynamic Embed</a></li>
22+
<li id="pageLinkPageNav" class=""><a href="pagenavigation.html">Scenario 3: Custom Page Navigation</a></li>
23+
<li id="pageLinkFilters" class=""><a href="filters.html">Scenario 4: Custom Filter Pane</a></li>
24+
<li id="pageLinkDefaults" class=""><a href="defaults.html">Scenario 5: Default Page and/or Filter</a></li>
25+
<li id="pageLinkSettings" class=""><a href="settings.html">Scenario 6: Update Settings</a></li>
26+
<li id="pageLinkDataSelection" class=""><a href="dataselection.html">Scenario 7: Data Selection</a></li>
27+
</ul>
28+
29+
<h2>Static Embed</h2>
30+
<p>Report to embed is known by the developer.</p>
31+
32+
<div id="reportstatic" class="powerbi-container"></div>
33+
34+
<br>
35+
<p>
36+
<button type="button" id="getId" class="btn btn-warning">Get Report ID</button>
37+
<button type="button" id="fullscreen" class="btn btn-warning">Toggle Fullscreen</button>
38+
<button type="button" id="reloadReport" class="btn btn-warning">Reload Report</button>
39+
<button type="button" id="printReport" class="btn btn-warning">Print Report</button>
40+
</p>
41+
</div>
42+
43+
<script src="bower_components/jquery/dist/jquery.js"></script>
44+
<script src="bower_components/es6-promise/es6-promise.js"></script>
45+
<script src="bower_components/fetch/fetch.js"></script>
46+
<script src="bower_components/powerbi-client/dist/powerbi.js"></script>
47+
48+
<script src="app/index.js"></script>
49+
</body>
50+
</html>

0 commit comments

Comments
 (0)