Skip to content

Commit 8fb780d

Browse files
committed
testing
1 parent 3a65201 commit 8fb780d

File tree

5 files changed

+75
-71
lines changed

5 files changed

+75
-71
lines changed

examples/example.template.html

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -213,72 +213,72 @@
213213
<div style="display: flex; flex-direction: column; align-items: center; width: 100%">
214214
<h2>Branch Metrics Web SDK Example</h2>
215215
<hr class="lineBreak horizontalLine">
216-
<div class="split-container">
217-
<div class="container api-methods">
218-
<section>
219-
<h3>Methods</h3>
220-
<a href="https://help.branch.io/developers-hub/docs/web-full-reference" target="_blank">https://help.branch.io/developers-hub/docs/web-full-reference</a>
221-
<hr class="lineBreak horizontalLine">
222-
223-
<h4>Session</h4>
224-
<div class="group">
225-
<button class="btn btn-info" onclick="callData()">.data()</button>
226-
<button class="btn btn-info" onclick="callLogout()">Logout</button>
227-
<button class="btn btn-info" onclick="callFirst()">.first()</button>
228-
</div>
229-
<h4>Identity</h4>
230-
<div class="group">
231-
<input class="example-input" type="text" id="identityID" placeholder="[email protected]">
232-
<button id="setIdentity" class="btn btn-info" onclick="callSetIdentity()">Set Identity</button>
233-
</div>
234-
<h4>Events</h4>
235-
<div class="group">
236-
<button class="btn btn-info" onclick="callLogEvent('PURCHASE')">Create Standard Event</button>
237-
<button class="btn btn-info" onclick="callLogEvent('testedCustomEvent')">Create Custom Event</button>
238-
</div>
239-
<h4>Sharing</h4>
240-
<div class="group">
241-
<button class="btn btn-info" onclick="callLink()">Create Link</button>
242-
<button class="btn btn-info" onclick="callQrCode()">Create QrCode</button>
243-
<button class="btn btn-info" onclick="callBanner()">.banner()</button>
244-
</div>
245-
<h4>Tracking</h4>
246-
<div class="group">
247-
<button class="btn btn-info" onclick="callDisableTracking()">Disable Tracking</button>
248-
<button class="btn btn-info" onclick="callEnableTracking()">Enable Tracking</button>
249-
</div>
250-
<h3>Api Settings</h3>
251-
<hr class="lineBreak horizontalLine">
252-
<div class="group" id="configButtons"></div>
253-
<label id="branchKeyLabel" for="branchKeyInput">Branch Key:</label>
254-
<input type="text" id="branchKeyInput" class="apiInput">
255-
<br>
256-
<label id="apiUrlLabel" for="apiUrlInput">Api Url:</label>
257-
<input type="text" id="apiUrlInput" class="apiInput">
258-
<br>
259-
<button class="btn btn-info" onclick="updateQueryParams()">
260-
Update Api Settings
261-
</button>
262-
</section>
263-
</div>
264-
<div class="lineBreak verticalLine"></div>
265-
<div class="container api-info">
266-
<section>
267-
<h3>Api Requests</h3>
268-
<hr class="lineBreak horizontalLine">
269-
<h4>Session Info
270-
<button class="btn btn-info" onclick="copySessionInfo()" style="margin-left: 10px; font-size: 12px; padding: 2px 8px; cursor: pointer;">
271-
Copy
272-
</button>
273-
</h4>
274-
<pre id="session-info">Reading session from .init()...</pre>
275-
<h4>Request</h4>
276-
<pre id="request">Click a button!</pre>
277-
<h4>Response</h4>
278-
<pre id="response">Click a button!</pre>
279-
</section>
280-
</div>
281-
</div>
216+
<!-- <div class="split-container">-->
217+
<!-- <div class="container api-methods">-->
218+
<!-- <section>-->
219+
<!-- <h3>Methods</h3>-->
220+
<!-- <a href="https://help.branch.io/developers-hub/docs/web-full-reference" target="_blank">https://help.branch.io/developers-hub/docs/web-full-reference</a>-->
221+
<!-- <hr class="lineBreak horizontalLine">-->
222+
223+
<!-- <h4>Session</h4>-->
224+
<!-- <div class="group">-->
225+
<!-- <button class="btn btn-info" onclick="callData()">.data()</button>-->
226+
<!-- <button class="btn btn-info" onclick="callLogout()">Logout</button>-->
227+
<!-- <button class="btn btn-info" onclick="callFirst()">.first()</button>-->
228+
<!-- </div>-->
229+
<!-- <h4>Identity</h4>-->
230+
<!-- <div class="group">-->
231+
<!-- <input class="example-input" type="text" id="identityID" placeholder="[email protected]">-->
232+
<!-- <button id="setIdentity" class="btn btn-info" onclick="callSetIdentity()">Set Identity</button>-->
233+
<!-- </div>-->
234+
<!-- <h4>Events</h4>-->
235+
<!-- <div class="group">-->
236+
<!-- <button class="btn btn-info" onclick="callLogEvent('PURCHASE')">Create Standard Event</button>-->
237+
<!-- <button class="btn btn-info" onclick="callLogEvent('testedCustomEvent')">Create Custom Event</button>-->
238+
<!-- </div>-->
239+
<!-- <h4>Sharing</h4>-->
240+
<!-- <div class="group">-->
241+
<!-- <button class="btn btn-info" onclick="callLink()">Create Link</button>-->
242+
<!-- <button class="btn btn-info" onclick="callQrCode()">Create QrCode</button>-->
243+
<!-- <button class="btn btn-info" onclick="callBanner()">.banner()</button>-->
244+
<!-- </div>-->
245+
<!-- <h4>Tracking</h4>-->
246+
<!-- <div class="group">-->
247+
<!-- <button class="btn btn-info" onclick="callDisableTracking()">Disable Tracking</button>-->
248+
<!-- <button class="btn btn-info" onclick="callEnableTracking()">Enable Tracking</button>-->
249+
<!-- </div>-->
250+
<!-- <h3>Api Settings</h3>-->
251+
<!-- <hr class="lineBreak horizontalLine">-->
252+
<!-- <div class="group" id="configButtons"></div>-->
253+
<!-- <label id="branchKeyLabel" for="branchKeyInput">Branch Key:</label>-->
254+
<!-- <input type="text" id="branchKeyInput" class="apiInput">-->
255+
<!-- <br>-->
256+
<!-- <label id="apiUrlLabel" for="apiUrlInput">Api Url:</label>-->
257+
<!-- <input type="text" id="apiUrlInput" class="apiInput">-->
258+
<!-- <br>-->
259+
<!-- <button class="btn btn-info" onclick="updateQueryParams()">-->
260+
<!-- Update Api Settings-->
261+
<!-- </button>-->
262+
<!-- </section>-->
263+
<!-- </div>-->
264+
<!-- <div class="lineBreak verticalLine"></div>-->
265+
<!-- <div class="container api-info">-->
266+
<!-- <section>-->
267+
<!-- <h3>Api Requests</h3>-->
268+
<!-- <hr class="lineBreak horizontalLine">-->
269+
<!-- <h4>Session Info-->
270+
<!-- <button class="btn btn-info" onclick="copySessionInfo()" style="margin-left: 10px; font-size: 12px; padding: 2px 8px; cursor: pointer;">-->
271+
<!-- Copy-->
272+
<!-- </button>-->
273+
<!-- </h4>-->
274+
<!-- <pre id="session-info">Reading session from .init()...</pre>-->
275+
<!-- <h4>Request</h4>-->
276+
<!-- <pre id="request">Click a button!</pre>-->
277+
<!-- <h4>Response</h4>-->
278+
<!-- <pre id="response">Click a button!</pre>-->
279+
<!-- </section>-->
280+
<!-- </div>-->
281+
<!-- </div>-->
282282
</div>
283283
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
284284
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

src/0_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ config.app_service_endpoint = 'https://app.link';
99
config.link_service_endpoint = 'https://bnc.lt';
1010
config.api_endpoint = DEFAULT_API_ENDPOINT;
1111
// will get overwritten by gha on actual deploy
12-
config.version = '2.85.2';
12+
config.version = '2.86.1';

src/branch_view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ branch_view._getPageviewRequestData = function(metadata, options, branch, isDism
245245
obj = utils.addPropertyIfNotNull(obj, 'branch_view_id', branchViewId);
246246
obj = utils.addPropertyIfNotNull(obj, 'no_journeys', options['no_journeys']);
247247
obj = utils.addPropertyIfNotNull(obj, 'is_iframe', utils.isIframe());
248-
obj = utils.addPropertyIfNotNull(obj, 'journey_dismissals', journeyDismissals);
248+
// obj = utils.addPropertyIfNotNull(obj, 'journey_dismissals', journeyDismissals);
249249
obj = utils.addPropertyIfNotNull(obj, 'identity', identity);
250250
obj = utils.addPropertyIfNotNull(obj, 'session_link_click_id', SessionlinkClickId);
251251
obj['user_language'] = userLanguage;

src/journeys_utils.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ journeys_utils.createIframe = function() {
248248
iframe.scrolling = 'no';
249249
iframe.id = 'branch-banner-iframe';
250250
iframe.className = 'branch-animation';
251-
iframe.setAttribute('tabindex', '-1');
251+
iframe.setAttribute('tabindex', '0');
252+
iframe.setAttribute('aria-label', 'Branch Banner Frame');
253+
iframe.title = 'Branch Banner Frame';
252254
utils.addNonceAttribute(iframe);
253255

254256
return iframe;
@@ -292,8 +294,10 @@ journeys_utils.addHtmlToIframe = function(iframe, html, userAgent) {
292294
if (!isTabPressed) {
293295
return;
294296
}
297+
298+
console.log('tab pressed');
295299
296-
if (e.shifKey) {
300+
if (e.shiftKey) {
297301
if (focusElementIdx <= 0) {
298302
focusElementIdx = focusableContent.length - 1;
299303
} else {

test/web-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ config.app_service_endpoint = 'https://app.link';
77
config.link_service_endpoint = 'https://bnc.lt';
88
config.api_endpoint = 'https://api.branch.io';
99
// will get overwritten by gha on actual deploy
10-
config.version = '2.85.2';
10+
config.version = '2.86.1';

0 commit comments

Comments
 (0)