コード例 #1
0
ファイル: footer.php プロジェクト: KevinFairbanks/Nebula
?>
" title="Last commit: <?php 
echo nebula_version('date');
?>
"><strong><?php 
bloginfo('name');
?>
</strong> <?php 
echo nebula_version('version');
?>
</a>, all rights reserved.<br />
								<a href="https://www.google.com/maps/place/<?php 
echo nebula_full_address(1);
?>
" target="_blank"><?php 
echo nebula_full_address();
?>
</a>
							</p>
						</div><!--/columns-->
						<div class="four columns push_one">
							<form class="nebula-search-iconable search footer-search" method="get" action="<?php 
echo home_url('/');
?>
">
								<input class="nebula-search open input search" type="search" name="s" placeholder="Search" autocomplete="off" x-webkit-speech />
							</form>
						</div><!--/columns-->
					</div><!--/row-->
				</div><!--/container-->
コード例 #2
0
					}
				}, 3000);
			}

			//"Driving Directions"
			phraseDrivingDirections = ['driving directions'];
			if ( checkAlternates(transcript, phraseDrivingDirections) ) {
				jQuery('#speech-help').text('Let\'s get you here...');
				jQuery('#start_button').removeClass();
				jQuery('#start_button_text').text(' Start');
				jQuery('#start_button_icon').removeClass().addClass('fa fa-microphone');
				ignore_onend = true;
				recognition.stop();
				ga('send', 'event', 'Speech Recognition', 'Driving Directions');
				window.location.href = 'https://www.google.com/maps/dir/Current+Location/<?php 
echo nebula_full_address() ? nebula_full_address(1) : '760+West+Genesee+Street+Syracuse+NY+13204';
?>
';
			}

			//"Navigate to ________"
			phraseNavigateTo = ['navigate to', 'browse to', 'go to'];
			if ( checkAlternates(transcript, phraseNavigateTo) ) {
				navigationRequest = transcript.substr( transcript.indexOf('navigate to ')+12, 99);
				//@TODO "Nebula" 0: Need to set navigationRequest to alt phrases if user said "browser to" or "go to"
				jQuery('#speech-help').text('About to navigate. Say "Stop Listening" or click the button to cancel.');
				jQuery('#ajaxarea').fadeIn();
				setTimeout(function(){
					if ( recognizing ) { //This allows the user to cancel navigation by stopping.
						jQuery('#speech-help').text('Navigating...');
						jQuery('#start_button').removeClass();