CINXE.COM

Embassies and consulates | Nepal

<!DOCTYPE html> <!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" dir="ltr"> <!--<![endif]--><head> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta charset="utf-8" /> <!-- Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW) wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html --> <!-- Adobe Analytics RUN PROD 1of2 start --> <script src="//assets.adobedtm.com/be5dfd287373/0127575cd23a/launch-f7c3e6060667.min.js"></script> <!-- Adobe Analytics RUN PROD 1of2 end --> <head> <title>Embassies and consulates | Nepal</title> <link href="/wet-boew/themes-dist-15.0.0-gcweb/GCWeb/assets/favicon.ico" rel="shortcut icon" /> <meta content="width=device-width, initial-scale=1" name="viewport" /> <meta name="description" content="Embassies and consulates for the Government of Canada." /> <meta name="dcterms.creator" content="Global Affairs Canada" /> <meta name="dcterms:service" content="GAC-AMC_Travel" /> <meta name="dcterms.accessRights" content="2" /> <meta name="dcterms.title" content="Embassies and consulates for Nepal" /> <meta name="dcterms.issued" title="W3CDTF" content="2012-11-16" /> <meta name="dcterms.modified" title="W3CDTF" content="2024-11-08" /> <meta name="dcterms.subject" title="scheme" content="Travel" /> <meta name="dcterms.language" title="ISO639-2" content="eng" /> <meta property="og:title" content="Embassies and consulates for Nepal"/> <meta property="og:url" content="http://travel.gc.ca/destinations/nepal"/> <meta property="og:description" content="Embassies and consulates for the Government of Canada."/> <meta property="og:site_name" content="Travel.gc.ca"/> <meta property="og:image" content="https://travel.gc.ca/vt/custom/images/flags/48/NP.png?v=2.0.1"/> <!--[if gte IE 9 | !IE ]><!--> <link href="/wet-boew/themes-dist-15.0.0-gcweb/GCWeb/assets/favicon.ico" rel="icon" type="image/x-icon" /> <link rel="stylesheet" href="/wet-boew/themes-dist-15.0.0-gcweb/GCWeb/css/wet-boew.min.css" /> <!--<![endif]--> <link rel="stylesheet" href="/wet-boew/themes-dist-15.0.0-gcweb/GCWeb/css/theme.min.css" /> <!--[if lt IE 9]> <link href="/wet-boew/themes-dist-15.0.0-gcweb/GCWeb/assets/favicon.ico" rel="shortcut icon" /> <link rel="stylesheet" href="/wet-boew/themes-dist-15.0.0-gcweb/GCWeb/css/ie8-wet-boew.min.css" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="/wet-boew/themes-dist-15.0.0-gcweb/wet-boew/js/ie8-wet-boew.min.js"></script> <![endif]--> <!--[if lte IE 9]> <![endif]--> <noscript><link rel="stylesheet" href="/wet-boew/themes-dist-15.0.0-gcweb/GCWeb/css/noscript.min.css" /></noscript> <script>dataLayer1 = [];</script> <link rel="stylesheet" href="/vt/custom/css/site-wide.css?v=2.0.2" /> <!-- Canada.ca Invitation Manager 1 of 2 start --> <link rel="stylesheet" href="/vt/custom/css/Overlay.css" /> <!-- Canada.ca Invitation Manager 1 of 2 end --> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-3543698-9']); _gaq.push(['_gat._anonymizeIp']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_trackPageview']); _gaq.push(['_setAccount', 'UA-22842344-1']); _gaq.push(['_gat._anonymizeIp']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_trackPageview']); (function () { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <!-- Google Tag Manager GAC --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-TB8GZJ');</script> <!-- End Google Tag Manager GAC --> <!-- Global site tag (gtag.js) - Google Analytics - GAC Master (GA4) start --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-MTE7792H4X"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-MTE7792H4X'); </script> <!-- Global site tag (gtag.js) - Google Analytics - GAC Master (GA4) end --> <!-- Global site tag (gtag.js) - Google Analytics – GAC Travel (GA4) start --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-BLSLH9RRC0"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-BLSLH9RRC0'); </script> <!-- Global site tag (gtag.js) - Google Analytics – GAC Travel (GA4) end --> <link rel="stylesheet" href="/vt/custom/css/tr/trs.css?v=2.0.1" /> <link href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" rel="stylesheet"> </head> <body class="" vocab="http://schema.org/" typeof="WebPage"> <!-- Google Tag Manager GAC (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TB8GZJ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager GAC (noscript) --> <ul id="wb-tphp"> <li class="wb-slc"> <a class="wb-sl" href="#wb-cont">Skip to main content</a> </li> <li class="wb-slc visible-sm visible-md visible-lg"> <a class="wb-sl" href="#wb-info">Skip to "About this site"</a> </li> </ul> <header> <div id="wb-bnr" class="container"> <section id="wb-lng" class="text-right"> <h2 class="wb-inv">Language selection</h2> <ul class="list-inline margin-bottom-none"> <li><a href="http://voyage.gc.ca/assistance/ambassades-consulats/nepal" lang="fr">Français</a></li> </ul> </section> <div class="row"> <div class="brand col-xs-5 col-md-4"> <a href="https://www.canada.ca/en.html"><img src="/wet-boew/themes-dist-15.0.0-gcweb/GCWeb/assets/sig-blk-en.svg" alt="Government of Canada"><span class="wb-inv"> Government of Canada / <span lang="fr">Gouvernement du Canada</span></span></a> </div> <section id="wb-srch" class="col-lg-8 text-right"> <h2>Search Travel.gc.ca</h2> <form action="https://www.canada.ca/en/services/travel/search.html?#wb-land" method="get" name="cse-search-box" role="search" class="form-inline"> <div class="form-group"> <label for="wb-srch-q" class="wb-inv">Search website</label> <input name="cdn" value="canada" type="hidden"/> <input name="langs" value="eng" type="hidden"/> <input id="wb-srch-q" class="wb-srch-q form-control" name="q" type="search" value="" size="34" maxlength="170" placeholder="Search Travel.gc.ca"/> <input type="hidden" name="_charset_" value="UTF-8"/> <datalist id="wb-srch-q-ac"> </datalist> </div> <!--<form action="https://www.canada.ca/en/sr/srb/sra.html/rGs/s_r?#wb-land" method="get" name="cse-search-box" role="search" class="form-inline"> <div class="form-group"> <label for="wb-srch-q" class="wb-inv">Search website</label> <input name="cdn" value="canada" type="hidden"/> <input name="st" value="s" type="hidden"/> <input name="num" value="10" type="hidden"/> <input name="st1rt" value="1" type="hidden"/> <input name="langs" value="eng" type="hidden"/> <input name="st1rt" value="0" type="hidden"> <input name="s5bm3ts21rch" value="x" type="hidden"/> <input name="dmn" value="travel.gc.ca" type="hidden"/> <input id="wb-srch-q" class="wb-srch-q form-control" name="allq" type="search" value="" size="34" maxlength="170" placeholder="Search Travel.gc.ca"/> <input type="hidden" name="_charset_" value="UTF-8"/> <datalist id="wb-srch-q-ac"> </datalist> </div>--> <!--<div class="form-group"> <label for="wb-srch-q" class="wb-inv">Search website</label> <input name="cdn" value="canada" type="hidden" /> <input name="st" value="s" type="hidden" /> <input name="num" value="10" type="hidden" /> <input name="langs" value="eng" type="hidden" /> <input name="st1rt" value="0" type="hidden"> <input name="s5bm3ts21rch" value="x" type="hidden" /> <input id="wb-srch-q" class="wb-srch-q form-control" name="q" type="search" value="" size="34" maxlength="170" placeholder="Search Canada.ca" /> </div> --> <div class="form-group submit"> <button type="submit" id="wb-srch-sub" class="btn btn-primary btn-small" name="wb-srch-sub"><span class="glyphicon-search glyphicon"></span><span class="wb-inv">Search</span></button> </div> </form> </section> </div> </div> <nav class="gcweb-menu" typeof="SiteNavigationElement"> <div class="container"> <h2 class="wb-inv">Menu</h2> <button type="button" aria-haspopup="true" aria-expanded="false"><span class="wb-inv">Main </span>Menu <span class="expicon glyphicon glyphicon-chevron-down"></span></button> <ul role="menu" aria-orientation="vertical" data-ajax-replace="https://www.canada.ca/content/dam/canada/sitemenu/sitemenu-v2-en.html"> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/jobs.html">Jobs and the workplace</a></li> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/immigration-citizenship.html">Immigration and citizenship</a></li> <li role="presentation"><a role="menuitem" href="https://travel.gc.ca/">Travel and tourism</a></li> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/business.html">Business and industry</a></li> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/benefits.html">Benefits</a></li> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/health.html">Health</a></li> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/taxes.html">Taxes</a></li> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/environment.html">Environment and natural resources</a></li> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/defence.html">National security and defence</a></li> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/culture.html">Culture, history and sport</a></li> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/policing.html">Policing, justice and emergencies</a></li> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/transport.html">Transport and infrastructure</a></li> <li role="presentation"><a role="menuitem" href="http://international.gc.ca/world-monde/index.aspx?lang=eng">Canada and the world</a></li> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/finance.html">Money and finances</a></li> <li role="presentation"><a role="menuitem" href="https://www.canada.ca/en/services/finance.html">Science and innovation</a></li> </ul> </div> </nav> <!-- Breadcrumb --> <nav role="navigation" id="wb-bc" class="" property="breadcrumb"> <h2>You are here:</h2> <div class="container"> <ol class="breadcrumb"> <li><a href="http://canada.ca/en/index.html">Canada.ca</a></li> <li><a href="/">Travel</a></li> <li><a href="/assistance">Assistance abroad</a></li> <li><a href="/assistance/embassies-consulates">Embassies and consulates</a></li> </ol> </div> </nav> </header> <!--<div class="container"> <div class="row"> <section class="alert alert-info mrgn-bttm-0"> <p>Help us to improve our website. <a href="https://travel.gc.ca/survey" target="_blank">Take our survey</a>!</p> </section> </div> </div> <br /> --> <!-- GCWEB SEARCH CODE - START -- PLS. DO NOT REMOVE --> <span typeof="Organization"><meta property="legalName" content="Department_of_Foreign_Affairs__Trade_and_Development"></span> <!-- GCWEB SEARCH CODE - END --> <!-- GAC Survey START --> <!--<section id="surveyInvite" class="hidden-print wb-overlay modal-content overlay-def wb-popup-mid survey"> <header class="modal-header"> <h2 id="surveyInviteTitle" class="modal-title"></h2> </header> <div class="modal-body"> <div id="surveyInviteContent"></div> <ul class="list-inline mrgn-bttm-0"> <li class="mrgn-tp-md"> <a id="surveyInviteYes" class="btn btn-primary" href="" target="_blank"></a></li> <li class="mrgn-tp-md"> <a id="surveyInviteNo" class="btn btn-default overlay-close"></a> </li> </ul> </div> </section>--> <!-- GAC Survey END --> <main role="main" property="mainContentOfPage" class="container"> <!-- H1 with Flag --> <h1 id="wb-cont" style="padding-bottom: 0px;"> <img src="/vt/custom/images/flags/48/NP.png?v=2.0.1" alt="" height="38px" style="border:1px solid #cdcdcd;" class="mrgn-bttm-md"/> <span class="font-xxlarge tr-title"><span id="nameLbl">Nepal</span></span> <span class="clearfix"></span> </h1> <div class="row"> <!-- Local services & Consular assistance --> <section class="side-need-help col-md-8"> <div id="assistance"> <h3>Local services</h3><section><details class="ha-office"><summary>Emergency services</summary><div class="mrgn-tp-md mrgn-bttm-md"><p><strong>In case of emergency, dial:</strong></p><ul><li>police: 100</li><li>tourist police: + 977 1 424 7041</li><li>medical assistance: 102</li><li>firefighters: 101</li></ul><p><b>General assistance</b></p><ul><li>Tourist Police in Kathmandu: 1144 (hotline)</li><li>Tourist Police in Pokhara: +977 61 462761</li><li>Thamel Tourism Development Council: +977 1 4700750</li></ul><p><a href="https://cid.nepalpolice.gov.np/cid-wings/tourist-police">More about the Tourist Police</a></p></div></details></section><h3>Consular assistance</h3><details class="span-3 ha-office"><summary><strong>Kathmandu</strong> - Honorary consul of Canada</summary><div><!-- MISSION-UUID: 9EF96C3F-7E42-46C8-841D-0AC2D91AA310 --><span class="ha-label">Street Address</span>Kaldhara Marg 20356, Khusibu, Kathmandu, Nepal<span class="ha-label">Postal Address</span>P.O. Box 3596, Kathmandu, Nepal<span class="ha-label">Telephone</span>+977 1 4987910<span class="ha-label">Email</span><a class="offices" href="mailto:kathmandu@international.gc.ca">kathmandu@international.gc.ca</a><span class="ha-label">Internet</span><span class="ha-has-internet"></span><a href=https://www.international.gc.ca/country-pays/nepal/kathmandu-katmandou.aspx?lang=eng target="_blank">https://www.international.gc.ca/country-pays/nepal/kathmandu-katmandou.aspx?lang=eng</a><span class="ha-label">Facebook</span><span class="ha-has-facebook"></span><a href=https://www.facebook.com/CanadainNepal/ target="_blank">Canada in Nepal (Consulate of Canada)</a><span class="ha-label">Twitter</span><span class="ha-has-twitter"></span><a href=https://twitter.com/CanadainNepal target="_blank">@CanadainNepal</a></div></details><details class="span-3 ha-office"><summary><strong>New Delhi</strong> - High Commission of Canada</summary><div><!-- MISSION-UUID: 312D51C5-57E6-4651-BE51-ED4E1B2D4E1D --><span class="ha-label">Street Address</span>7/8 Shantipath, Chanakyapuri, New Delhi 110 021, India<span class="ha-label">Telephone</span>+91 11 4178 2000<span class="ha-label">Fax</span>+91 11 4178 2023<span class="ha-label">Email</span><a class="offices" href="mailto:india.consular@international.gc.ca">india.consular@international.gc.ca</a><span class="ha-label">Internet</span><span class="ha-has-internet"></span><a href=https://www.international.gc.ca/country-pays/india-inde/new_delhi.aspx?lang=eng target="_blank">https://www.international.gc.ca/country-pays/india-inde/new_delhi.aspx?lang=eng</a><span class="ha-label">Facebook</span><span class="ha-has-facebook"></span><a href=https://www.facebook.com/CanadainIndia target="_blank">High Commission of Canada to India</a><span class="ha-label">Twitter</span><span class="ha-has-twitter"></span><a href=https://twitter.com/CanadainIndia target="_blank">@CanadainIndia</a><span class="ha-label">Other social media</span><a href=https://www.instagram.com/canadainindia/ target="_blank">Canada in India</a></br><span class="ha-label">Consular district</span><p>Andaman and Nicobar Islands,&nbsp;Andhra Pradesh, Arunachal Pradesh, Assam, Bihar, Chandigarh, Chhattisgarh, Dadra and Nagar Haveli, Daman and Diu, Delhi, Goa, Gujarat, Haryana,&nbsp;Himachal Pradesh, Jammu and Kashmir, Jharkhand,&nbsp;Karnataka, Kerala, Ladakh, Lakshadweep, Madhya Pradesh, Maharashtra, Manipur, Meghalaya, Mizoram, Nagaland, Odisha,&nbsp;Pondicherry, Punjab, Rajasthan, Sikkim,&nbsp;Tamil Nadu, Telangana, Tripura, Uttar Pradesh, and Uttarakhand.</p> <p></p><span class="ha-label">Appointment</span><a class="btn btn-default" href=https://cts-ca.anzus.solutions/?customer=embassyca&wf=appointments&action=schedule&locationId=DELHI role="button" target="_blank"><span class="glyphicon glyphicon-calendar mrgn-rght-sm"></span> Book your appointment online</a></div></details><p>For emergency consular assistance, call the Consulate of Canada in Nepal and follow the instructions. At any time, you may also contact the <a href="http://travel.gc.ca/assistance/emergency-assistance">Emergency Watch and Response Centre</a> in Ottawa.</p> </div> </section> <!-- Useful links --> <section class="col-md-4"> <!-- START Useful links--> <div id="usefullinks"> <h2 class="mrgn-tp-lrg"><img src="/vt/images/taa/Links.svg" alt="" height="60px" class="mrgn-bttm-md mrgn-rght-sm"/><span class="h2-section-title">Useful links</span></h2> <span class="fas fa-atlas"></span> <a class="small" href="/travelling/registration"> Register as a Canadian abroad</a> <br> <!--<span class="fas fa-mobile-alt"></span> <a class="small" href="/mobile">Download the Travel Smart app</a><br>--> <span class="fas fa-list-alt"></span> <a class="small" href="/travelling/publications/travellers-checklist">Read our Traveller’s Checklist</a><br> <span class="far fa-file-archive"></span> <a class="small" href="/destinations/nepal">View <span id="nameLbl2">Nepal</span> travel advice</a> </div> <!-- END Useful links--> </section> </div> <div class="row pagedetails"> <div class="datemod col-xs-12 mrgn-tp-lg"> <dl id="wb-dtmd"> <dt> Date modified: </dt> <dd> <time property="dateModified"> 2024-11-08 </time> </dd> </dl> </div> </div> </main> <footer id="wb-info"> <h2 class="wb-inv">About this site</h2> <div class="gc-contextual"> <div class="container"> <nav> <h3>Travel and tourism</h3> <ul class="list-col-xs-1 list-col-sm-2 list-col-md-3"> <li> <a href="/contact">Contact us</a> </li> </nav> </div> </div> <div class="gc-main-footer"> <div class="container"> <nav> <h3>Government of Canada</h3> <ul class="list-col-xs-1 list-col-sm-2 list-col-md-3"><li><a href="https://www.canada.ca/en/contact.html">All contacts</a></li> <li><a href="https://www.canada.ca/en/government/dept.html">Departments and agencies</a></li> <li><a href="https://www.canada.ca/en/government/system.html">About government</a></li></ul> <h4><span class="wb-inv">Themes and topics</span></h4> <ul class="list-unstyled colcount-sm-2 colcount-md-3"><li><a href="https://www.canada.ca/en/services/jobs.html">Jobs</a></li> <li><a href="https://www.canada.ca/en/services/immigration-citizenship.html">Immigration and citizenship</a></li> <li><a href="https://travel.gc.ca/">Travel and tourism</a></li> <li><a href="https://www.canada.ca/en/services/business.html">Business</a></li> <li><a href="https://www.canada.ca/en/services/benefits.html">Benefits</a></li> <li><a href="https://www.canada.ca/en/services/health.html">Health</a></li> <li><a href="https://www.canada.ca/en/services/taxes.html">Taxes</a></li> <li><a href="https://www.canada.ca/en/services/environment.html">Environment and natural resources</a></li> <li><a href="https://www.canada.ca/en/services/defence.html">National security and defence</a></li> <li><a href="https://www.canada.ca/en/services/culture.html">Culture, history and sport</a></li> <li><a href="https://www.canada.ca/en/services/policing.html">Policing, justice and emergencies</a></li> <li><a href="https://www.canada.ca/en/services/transport.html">Transport and infrastructure</a></li> <li><a href="https://international.gc.ca/world-monde/index.aspx?lang=eng">Canada and the world</a></li> <li><a href="https://www.canada.ca/en/services/finance.html">Money and finance</a></li> <li><a href="https://www.canada.ca/en/services/science.html">Science and innovation</a></li> <li><a href="https://www.canada.ca/en/services/indigenous-peoples.html">Indigenous peoples</a></li> <li><a href="https://www.canada.ca/en/services/veterans.html">Veterans and military</a></li> <li><a href="https://www.canada.ca/en/services/youth.html">Youth</a></li></ul> </nav> </div> </div> <div class="gc-sub-footer"> <div class="container d-flex align-items-center"> <nav> <h3 class="wb-inv">Government of Canada Corporate</h3> <ul> <li><a href="https://www.canada.ca/en/social.html">Social media</a></li> <li><a href="https://www.canada.ca/en/mobile.html">Mobile applications</a></li> <li><a href="https://www.canada.ca/en/government/about.html">About Canada.ca</a></li><li><a href="https://www.canada.ca/en/transparency/terms.html">Terms and conditions</a></li> <li><a href="https://www.canada.ca/en/transparency/privacy.html">Privacy</a></li></ul> </nav> <div class="wtrmrk align-self-end"> <img src="https://wet-boew.github.io/themes-dist/GCWeb/GCWeb/assets/wmms-blk.svg" alt="Symbol of the Government of Canada" /> </div> </div> </div> </footer><!-- Adobe Analytics RUN PROD 2of2 start --> <script type="text/javascript">_satellite.pageBottom();</script> <!-- Adobe Analytics RUN PROD 2of2 end --> <!--[if gte IE 9 | !IE ]><!--> <script src="/wet-boew/themes-dist-15.0.0-gcweb/wet-boew/js/jquery/2.2.4/jquery.min.js"></script> <script src="/wet-boew/themes-dist-15.0.0-gcweb/wet-boew/js/wet-boew.min.js"></script> <!--<![endif]--> <!--[if lt IE 9]> <script arc="/wet-boew/themes-dist-15.0.0-gcweb/GCWeb/js/ie8-wet-boew2.min.js"></script> <![endif]--> <script src="/wet-boew/themes-dist-15.0.0-gcweb/GCWeb/js/theme.min.js"></script> <script> function randomlink(elem){ var randomlinks=new Array() randomlinks[0]="http://www.loop11.com/usability-test/27493/introduction/" randomlinks[1]="https://uo2bu602.optimalworkshop.com/optimalsort/atvu7sd2-0" elem.href = randomlinks[Math.floor(Math.random()*randomlinks.length)]; return false; } function randomlink2(elem){ var randomlinks2=new Array() randomlinks2[0]="http://www.loop11.com/usability-test/27902/introduction/" randomlinks2[1]="https://uo2bu602.optimalworkshop.com/optimalsort/x0rfm3a1" elem.href = randomlinks2[Math.floor(Math.random()*randomlinks2.length)]; return false; } </script> <!-- Canada.ca Invitation Manager 2 of 2 start --> <script src="/vt/custom/js/Overlay.js"></script> <script src="/vt/custom/js/InvitationManager.js"></script> <!-- Canada.ca Invitation Manager 2 of 2 end --> <!--<script> var randomlinks=new Array() randomlinks[0]="http://www.loop11.com/usability-test/27493/introduction/" randomlinks[1]="https://uo2bu602.optimalworkshop.com/optimalsort/atvu7sd2-0" function randomlink(){ window.location=randomlinks[Math.floor(Math.random()*randomlinks.length)] } </script> <script> var randomlinks2=new Array() randomlinks2[0]="http://www.loop11.com/usability-test/27902/introduction/" randomlinks2[1]="https://uo2bu602.optimalworkshop.com/optimalsort/x0rfm3a1" function randomlink2(){ window.location=randomlinks2[Math.floor(Math.random()*randomlinks2.length)] } </script> --> <!-- JavaScript START --> <script type="text/javascript"> const module = {}; $( document ).ready(function() { $('details.ha-office').append('<span class="ha-label" style="margin-left:9px; margin-top:-5px;">Contact card</span><ul class="list-unstyled lst-spcd"><li><span style="margin-left:9px;"></span><a class="btn btn-default printcardbtn" href="#"><span class="glyphicon glyphicon-print mrgn-rght-sm"></span> Print wallet-sized card</a></li></ul>'); $('details.span-3.ha-office').append('<ul class="list-unstyled lst-spcd"><li><span style="margin-left:9px;"></span><a class="btn btn-default downloadVCard" href="#"><span class="glyphicon glyphicon-download-alt mrgn-rght-sm"></span> Save to contacts</a></li></ul>'); // When click downloadVCard : OK $( "a.downloadVCard" ).on( "click", function() { var missionUUIDString = $(this).closest("details").find("div").html(); //console.log("TrIsoCode: " + 'NP'); //console.log("missionUUIDString: " + missionUUIDString); var uuid = missionUUIDString.substring( missionUUIDString.indexOf("<!-- MISSION-UUID: ") + 19, missionUUIDString.lastIndexOf("-->") ).trim(); module.getVCFcard('NP', uuid,'?languageCode=eng'); }); setTimeout(function() { //$('.ha-office').attr('open', 'open'); // When click printcardbtn: Generate url for the wallet-sized $( "a.printcardbtn" ).on( "click", function() { // %5Cn France %5Cn var officecard = " %5Cn " + "Nepal" + " %5Cn "; // <strong>Paris</strong> - Embassy of Canada var officetitle = $(this).parents("details").find("summary").html(); //console.log("officetitle: " + officetitle); var officedetails = $(this).parents("details").find("div").html(); /* <!-- MISSION-UUID: EBAFA81D-13A5-4D7C-AB75-FB7D608E9754 --> ... Book your appointment online</a> */ //console.log("officedetails: " + officedetails); officedetails = officedetails.replace(/<\s*\/\s*span\s*.*?>/g," %5Cn "); officedetails = officedetails.replace(/<\s*span.*?>/g," %5Cn "); //console.log("officedetails: " + officedetails); // This block of code was added for emergency services // Begin officedetails = officedetails.replace(/<\s*\/\s*p\s*.*?>/g," %5Cn "); officedetails = officedetails.replace(/<\s*p.*?>/g," %5Cn "); officedetails = officedetails.replace(/<\s*\/\s*ul\s*.*?>/g,""); officedetails = officedetails.replace(/<\s*ul*?>/g,""); officedetails = officedetails.replace(/<\s*\/\s*h4\s*.*?>/g,""); officedetails = officedetails.replace(/<\s*h4*?>/g,""); officedetails = officedetails.replace(/<\s*\/\s*li\s*.*?>/g," %5Cn "); officedetails = officedetails.replace(/<\s*li.*?>/g,""); // End officedetails = officedetails.replace(/<\s*a.*?>/g,""); officedetails = officedetails.replace(/<\s*\/\s*a\s*.*?>/g,""); officedetails = officedetails.split("Services")[0]; officedetails = officedetails.split("Twitter")[0]; officedetails = officedetails.split("Facebook")[0]; officedetails = officedetails.split("Internet")[0]; //console.log("officedetails: " + officedetails); /* <!-- MISSION-UUID: EBAFA81D-13A5-4D7C-AB75-FB7D608E9754 --> %5Cn Street Address %5Cn 130, rue du Faubourg Saint-Honoré, 75008 Paris, France %5Cn Postal Address %5Cn 130, rue du Faubourg Saint-Honoré, 75008 Paris, France %5Cn Telephone %5Cn +33 (0)1 44 43 29 02 %5Cn Fax %5Cn +33 (0)1 44 43 29 86 %5Cn Email %5Cn paris-consulaire@international.gc.ca %5Cn */ // Paris - Embassy of Canada officetitle = officetitle.replace(/(<([^>]+)>)/ig,""); //console.log("officetitle: " + officetitle); /* %5Cn France %5Cn Paris - Embassy of Canada */ officecard += officetitle; //console.log("officecard: " + officecard); /* # %5Cn France %5Cn Paris - Embassy of Canada<!-- MISSION-UUID: EBAFA81D-13A5-4D7C-AB75-FB7D608E9754 --> %5Cn Street Address %5Cn 130, rue du Faubourg Saint-Honoré, 75008 Paris, France %5Cn Postal Address %5Cn 130, rue du Faubourg Saint-Honoré, 75008 Paris, France %5Cn Telephone %5Cn +33 (0)1 44 43 29 02 %5Cn Fax %5Cn +33 (0)1 44 43 29 86 %5Cn Email %5Cn paris-consulaire@international.gc.ca %5Cn */ var printwindow = '#' + officecard + officedetails; console.log("printwindow: " + printwindow); window.open('/vt/custom/partials/offices-print-eng.aspx' + printwindow, '_blank'); }); }, 900); }); </script> <!-- JavaScript END --> <script type="module"> import {getVCFcard} from "/vt/custom/js/vcfLibrary.js"; import jsFileDownload from 'https://cdn.skypack.dev/js-file-download'; module.jsFileDownload = jsFileDownload; module.getVCFcard = getVCFcard; </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10