Skip to content

Commit

Permalink
Merge pull request #149 from dynamsoft-docs/preview
Browse files Browse the repository at this point in the history
update to internal commit dd6b51a9
  • Loading branch information
Jenny-Jiani authored Nov 22, 2024
2 parents 73d03bb + e3b5c02 commit 844fa51
Show file tree
Hide file tree
Showing 14 changed files with 127 additions and 16 deletions.
14 changes: 7 additions & 7 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@
<link href="{{ docFullPath }}{{ targetUrl }}" rel="canonical">

{%- assign assetsPath = '/webres/wwwroot' -%}


<link rel="preload" as="font" href="{{ site.assets }}font-face/oswald-regular-webfont.woff2" type="font/woff2" crossorigin="anonymous">
<link rel="preload" as="font" href="{{ site.assets }}font-face/OpenSans-Regular.woff2" type="font/woff2" crossorigin="anonymous">
<link rel="preload" as="font" href="{{ site.assets }}font-face/fontawesome-webfont.woff2" type="font/woff2" crossorigin="anonymous">
<link rel="preload" as="font" href="{{ site.assets }}font-face/oswald-light-webfont.woff2" type="font/woff2" crossorigin="anonymous">
<link rel="preload" as="font" href="{{ site.assets }}font-face/OpenSans-Semibold.woff2" type="font/woff2" crossorigin="anonymous">

<link rel="stylesheet" href="{{ site.assets }}css/dm-style.min.css?v={{ 'now' | date: "%s"}}" />
<link rel="stylesheet" href="{{ site.assets }}css/bootstrap.min.css" />
<link rel="stylesheet" href="{{ site.assets }}css/font-awesome.min.css" />
Expand All @@ -56,12 +62,6 @@
<link rel="stylesheet" href="{{ assetsPath }}/css/docs/homePage.min.css" />
{%- endif -%}

<link rel="preload" as="font" href="{{ site.assets }}font-face/Oswald-Regular.ttf" type="font/ttf" crossorigin="anonymous">
<link rel="preload" as="font" href="{{ site.assets }}font-face/OpenSans-Regular.woff" type="font/woff" crossorigin="anonymous">
<link rel="preload" as="font" href="{{ site.assets }}font-face/fontawesome-webfont.woff2" type="font/woff2" crossorigin="anonymous">
<link rel="preload" as="font" href="{{ site.assets }}font-face/Oswald-Light.ttf" type="font/ttf" crossorigin="anonymous">
<link rel="preload" as="font" href="{{ site.assets }}font-face/OpenSans-Semibold.woff" type="font/woff" crossorigin="anonymous">

{%- assign showNoIndexStyle = false -%}
{%- if page.noTitleIndex or page.url contains 'release-notes' -%}
{%- assign showNoIndexStyle = true -%}
Expand Down
114 changes: 114 additions & 0 deletions _includes/trialLicense.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{%- assign assetsPath = '/webres/wwwroot' -%}
<link href="{{assetsPath}}/css/intlTelInput.min.css" rel="stylesheet" />
<script src="{{assetsPath}}/js/intlTelInput.min.js"></script>
<link rel="stylesheet" href="{{ assetsPath }}/fontawesome-free-5.13.0-web/css/all.min.css" />
<link rel="stylesheet" href="{{ assetsPath }}/css/docs/trialLicense.css" />

<div class="trial-license-wrap" style="display: none;">
<div class="not-logged-in hide">
<p class="title">Request a Trial License</p>
<div class="result">
<div class="key">Demo: DLS2eyJvcmdhbml6YXeyJo34567AwMDAxLTEwM34XphdGlvbk812345AxIn0=</div>
<div type="button" class="d-btn orange-btn reveal-btn" value="Reveal">Reveal</div>
</div>
<p class="note">This generates an online license that collects data regarding your usage of the SDK. If you prefer
an offline license key, please <a href="/contact/">contact us</a>.​</p>
</div>
<div class="had-license hide">
<p class="title">Your Trial License</p>
<div class="result">
<div class="key">DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTEwMTIwMDkzNiIsIm9yZ2FuaXphdGlvbklEIjoiMjAwMDAxIn0=</div>
<div type="button" class="d-btn orange-btn copy-btn" value="Copy">Copy</div>
</div>
<span class="copyied">Copied!</span>
</div>
<div class="request-success hide">
<p class="title">Request a Trial License - Successful</p>
<div class="desc">
<i class="icon-send"></i>
<p>The license will be sent to your email immediately. If you don't see it in your inbox, please check your junk/spam folder as well.</p>
</div>
</div>
</div>

<div class="modal trial-license-request-modal" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<i class="icon-close"></i>
<div class="modal-body">
<div class="loading" id="loadingLogin" style="display: none;">
<div class="lds-ring"><div></div><div></div><div></div><div></div></div>
</div>
<div class="emailErrorAlert off">
<div class="ds-alert error"><p>We are unable to deliver to the email address provided. Please try a different one.</p><div class="ds-alert-close-btn"></div></div>
</div>
<div class="third-party-request">
<p>One Click to Request a 30-Day Trial License</p>
<div class="login-btns">
<div type="button" class="third-party-btn github-btn"><i class="fab fa-github"></i>Github</div>
<div type="button" class="third-party-btn microsoft-btn"><i class="fab fa-microsoft"></i>Microsoft</div>
<div type="button" class="third-party-btn linkedin-btn"><i class="fab fa-linkedin"></i>LinkedIn</div>
</div>
</div>
<p class="devide">or continue with a work email</p>
<div class="dynamsoft-request">
<div class="basicForm">
<div class="basicFormGroup" style="grid-area: a">
<input type="email" id="Email" name="email"
onkeyup="$('#emailErrorMsg').hide(); clearInvalidEnter(event)" onblur="checkPublicDomain()"
class="basicFormInput" autofocus placeholder=" " />
<label class="fieldLabel emailLabel" placeholder="* Email: name@yourbusiness.com"
value="Business Email:"></label>
<p class="errorMsg" id="emailErrorMsg" style="display: none;">Emails from this domain are not permitted.
Please enter a business email address.</p>
</div>
<div class="clearfix" style="grid-area: b">
<div class="basicFormGroup fl" style="width: 49.5%">
<input type="text" id="FirstName" autocomplete="new-password" class="basicFormInput" placeholder=" ">
<label class="fieldLabel firstNameLabel" placeholder="* First Name:" value="First Name:"></label>
</div>
<div class="basicFormGroup fr" style="width: 49.5%">
<input type="text" id="LastName" autocomplete="new-password" class="basicFormInput"
placeholder=" ">
<label class="fieldLabel lastNameLabel" placeholder="* Last Name:" value="Last Name:"></label>
</div>
</div>
<div class="basicFormGroup phoneNumberField" style="grid-area: c">
<input type="tel" id="PhoneNumber" class="basicFormInput" autocomplete="new-password"
placeholder=" ">
<label class="fieldLabel phoneNumberLabel" placeholder="* Phone Number:" value="Phone number:"></label>
</div>
<div class="basicFormGroup companyField" style="grid-area: d">
<input type="text" id="CompanyName" autocomplete="new-password" class="basicFormInput"
placeholder=" ">
<label class="fieldLabel companyLabel" placeholder="* Your Company Name:" value="Company Name:"></label>
</div>
<div class="basicFormGroup" id="options" style="display: none; grid-area: e">
<div class="d-checkbox">
<input type="checkbox" name="IsOptIn1" id="IsOptIn1" checked />
<label for="IsOptIn1">Please email me the Product Tutorial & New Release Emails</label>
</div>
<div class="d-checkbox mt15">
<input type="checkbox" name="IsOptIn2" id="IsOptIn2" checked />
<label for="IsOptIn2">Please email me the Monthly Newsletters</label>
</div>
</div>
<div class="basicFormGroup CNSupportGroup" style="display: none; grid-area: f">
<div class="d-checkbox">
<input type="checkbox" id="isCNSupportNeeded">
<label for="isCNSupportNeeded">Get a phone call from our Mandarin speaking customer service
representatives.</label>
</div>
</div>
</div>
<div class="generateLine">
<div type="button" class="generateLicense" value="Generate a License">Generate a License</div>
<p>The license will be sent to your email immediately.</p>
</div>
</div>
</div>
</div>
</div>
</div>

<script src="{{ assetsPath }}/js/docs/trialLicense.js"></script>
13 changes: 5 additions & 8 deletions assets/css/dm-style.css
Original file line number Diff line number Diff line change
@@ -1,42 +1,39 @@
/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */
@font-face {
font-family: Oswald-Regular;
src: local('☺'), url('../font-face/Oswald-Regular.ttf') format('truetype');
src: local('☺'), url('../font-face/oswald-regular-webfont.woff2') format('woff2'), url('../font-face/oswald-regular-webfont.woff') format('woff'), url('../font-face/Oswald-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: optional;
}

@font-face {
font-family: Oswald-Light;
src: local('☺'), url('../font-face/Oswald-Light.ttf') format('truetype');
src: local('☺'), url('../font-face/oswald-light-webfont.woff2') format('woff2'), url('../font-face/oswald-light-webfont.woff') format('woff'), url('../font-face/Oswald-Light.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: optional;
}

@font-face {
font-family: OpenSans-Light;
src: url('../font-face/OpenSans-Light.eot');
src: local('☺'), url('../font-face/OpenSans-Light.eot?#iefix') format('embedded-opentype'), url('../font-face/OpenSans-Light.woff') format('woff'), url('../font-face/OpenSans-Light.ttf') format('truetype'), url('../font-face/OpenSans-Light.svg#webfontOTINA1xY') format('svg');
src: local('☺'), url('../font-face/OpenSans-Light.woff2') format('woff2'),url('../font-face/OpenSans-Light.woff') format('woff'), url('../font-face/OpenSans-Light.ttf') format('truetype'), url('../font-face/OpenSans-Light.svg#webfontOTINA1xY') format('svg'), url('../font-face/OpenSans-Light.eot?#iefix') format('embedded-opentype');
font-weight: normal;
font-style: normal;
font-display: optional;
}

@font-face {
font-family: OpenSans-Regular;
src: url('../font-face/OpenSans-Regular.eot');
src: local('☺'), url('../font-face/OpenSans-Regular.eot?#iefix') format('embedded-opentype'), url('../font-face/OpenSans-Regular.woff') format('woff'), url('../font-face/OpenSans-Regular.ttf') format('truetype'), url('../font-face/OpenSans-Regular.svg#webfontOTINA1xY') format('svg');
src: local('☺'), url('../font-face/OpenSans-Regular.woff2') format('woff2'), url('../font-face/OpenSans-Regular.woff') format('woff'), url('../font-face/OpenSans-Regular.ttf') format('truetype'), url('../font-face/OpenSans-Regular.svg#webfontOTINA1xY') format('svg'), url('../font-face/OpenSans-Regular.eot?#iefix') format('embedded-opentype');
font-weight: normal;
font-style: normal;
font-display: optional;
}

@font-face {
font-family: OpenSans-Semibold;
src: url('../font-face/OpenSans-Semibold.eot');
src: local('☺'), url('../font-face/OpenSans-Semibold.eot?#iefix') format('embedded-opentype'), url('../font-face/OpenSans-Semibold.woff') format('woff'), url('../font-face/OpenSans-Semibold.ttf') format('truetype'), url('../font-face/OpenSans-Semibold.svg#webfontOTINA1xY') format('svg');
src: local('☺'), url('../font-face/OpenSans-Semibold.woff2') format('woff2'), url('../font-face/OpenSans-Semibold.woff') format('woff'), url('../font-face/OpenSans-Semibold.ttf') format('truetype'), url('../font-face/OpenSans-Semibold.svg#webfontOTINA1xY') format('svg'), url('../font-face/OpenSans-Semibold.eot?#iefix') format('embedded-opentype');
font-weight: normal;
font-style: normal;
font-display: optional;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/dm-style.min.css

Large diffs are not rendered by default.

Binary file modified assets/font-face/OpenSans-Light.woff
Binary file not shown.
Binary file added assets/font-face/OpenSans-Light.woff2
Binary file not shown.
Binary file modified assets/font-face/OpenSans-Regular.woff
Binary file not shown.
Binary file added assets/font-face/OpenSans-Regular.woff2
Binary file not shown.
Binary file modified assets/font-face/OpenSans-Semibold.woff
Binary file not shown.
Binary file added assets/font-face/OpenSans-Semibold.woff2
Binary file not shown.
Binary file added assets/font-face/oswald-light-webfont.woff
Binary file not shown.
Binary file added assets/font-face/oswald-light-webfont.woff2
Binary file not shown.
Binary file added assets/font-face/oswald-regular-webfont.woff
Binary file not shown.
Binary file added assets/font-face/oswald-regular-webfont.woff2
Binary file not shown.

0 comments on commit 844fa51

Please sign in to comment.