<commit_before><krpano onstart="loadscene(get(scene[0].name), null, MERGE);">

	<!-- webvr.xml - WebVR plugin, enter/exit VR buttons, VR cursor, VR setup -->
	<include url="../plugins/webvr.xml" />

	<!-- add/overwrite some settings from the webvr.xml for this example -->
  <!-- enable the FAKE VR support to allow testing also on desktop and tablets without VR support -->
	<plugin 
    name="WebVR" 
    mobilevr_fake_support="true" 
    onentervr="setupVRDevice();" />		

	<!-- use the dragging control by default -->
	<control mousetype="drag2d" />

	<!-- the intro pano -->
	<view fovtype="VFOV" fov="90" fovmin="40" fovmax="150" />

	<events name="change_scene" keep="true" onclick="nextscene_loop(+1);" />

	<!-- hotspots -->
  <style 
    name="hotspotstyle" 
    url="../images/360-hotspot.png" 
    onover="set(url, ../images/360-hotspot-hover.png);"
    distorted="true" 
    onclick="goto(get(linkedscene));"
    vr_timeout="1000" />

  <!-- pano changing actions -->
  <action name="goto">
    loadscene(%1, null, NOPREVIEW|MERGE|KEEPMOVING, COLORBLEND(3.0, 0x000000, easeOutSine))
  </action>

  <action name="nextscene_loop">
    if(xml.scene != null AND scene.count GT 1,
    add(newsceneindex, scene[get(xml.scene)].index, %1);
    sub(lastsceneindex, scene.count, 1);
    if(newsceneindex LT 0, copy(newsceneindex,lastsceneindex));
    if(newsceneindex GT lastsceneindex, set(newsceneindex,0));
    loadscene(get(scene[get(newsceneindex)].name), null, NOPREVIEW|MERGE|KEEPMOVING, BLEND(1));
    );
  </action>

  <action name="setupVRDevice">
    webvr_onentervr();
   
    jscall(console.log(krpano.get("webvr.devicename")));
    
    jscall(alert(krpano.get("webvr.devicename")));
  
    <!--if(devicename == "CardBoard B");-->
  </action>

  <!-- TEMP PRE-RELEASE STUFF -->
	<display hotspotrenderer="webgl" devices="html5" />	<!-- force using WebGL for the hotspots -->
	<view continuousupdates="true" devices="html5" />	<!-- constantly update the screen (required for WebGL hotspots for the moment) -->
	<!-- TEMP PRE-RELEASE STUFF -->
<commit_msg>Only enable click to change scene for Cardboard B #13<commit_after><krpano onstart="loadscene(get(scene[0].name), null, MERGE);">

	<!-- webvr.xml - WebVR plugin, enter/exit VR buttons, VR cursor, VR setup -->
	<include url="../plugins/webvr.xml" />

	<!-- add/overwrite some settings from the webvr.xml for this example -->
  <!-- enable the FAKE VR support to allow testing also on desktop and tablets without VR support -->
	<plugin 
    name="WebVR" 
    mobilevr_fake_support="true" />		

	<!-- use the dragging control by default -->
	<control mousetype="drag2d" />

	<!-- the intro pano -->
	<view fovtype="VFOV" fov="90" fovmin="40" fovmax="150" />

	<events name="change_scene" keep="true" onclick="click_nextscene_loop();" />

	<!-- hotspots -->
  <style 
    name="hotspotstyle" 
    url="../images/360-hotspot.png" 
    onover="set(url, ../images/360-hotspot-hover.png);"
    distorted="true" 
    onclick="goto(get(linkedscene));"
    vr_timeout="1000" />

  <!-- pano changing actions -->
  <action name="goto">
    loadscene(%1, null, NOPREVIEW|MERGE|KEEPMOVING, COLORBLEND(3.0, 0x000000, easeOutSine))
  </action>

  <action name="nextscene_loop">
    if(xml.scene != null AND scene.count GT 1,
    add(newsceneindex, scene[get(xml.scene)].index, %1);
    sub(lastsceneindex, scene.count, 1);
    if(newsceneindex LT 0, copy(newsceneindex,lastsceneindex));
    if(newsceneindex GT lastsceneindex, set(newsceneindex,0));
    loadscene(get(scene[get(newsceneindex)].name), null, NOPREVIEW|MERGE|KEEPMOVING, COLORBLEND(3.0, 0x000000, easeOutSine));
    );
  </action>
  
  <action name="click_nextscene_loop">
    <!--CardBoard B-->
    jsget(headset, 'localStorage.getItem("krpano.webvr.1")');
    if (headset == "63.5,0,96,0.6,100,3", nextscene_loop(+1));
  </action>

  <!-- TEMP PRE-RELEASE STUFF -->
	<display hotspotrenderer="webgl" devices="html5" />	<!-- force using WebGL for the hotspots -->
	<view continuousupdates="true" devices="html5" />	<!-- constantly update the screen (required for WebGL hotspots for the moment) -->
	<!-- TEMP PRE-RELEASE STUFF -->

{'fraction_non_alphanumeric': 0.1745305729417429, 'fraction_numerical': 0.023832450649975925, 'mean_word_length': 3.8596491228070176, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '357029', 'n_tokens_mistral': 1534, 'n_tokens_neox': 1405, 'n_words': 314}