Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dic-global-dev
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Manzar Hussain
dic-global-dev
Commits
6d59b5a2
Commit
6d59b5a2
authored
Feb 01, 2021
by
Manzar Hussain
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-theme' into 'develop'
multiple api key See merge request manzarH/dic-global-dev!618
parents
e0814a8f
2fb04021
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
html.html.twig
themes/custom/envigo/templates/layout/html.html.twig
+22
-2
No files found.
themes/custom/envigo/templates/layout/html.html.twig
View file @
6d59b5a2
...
@@ -113,6 +113,26 @@
...
@@ -113,6 +113,26 @@
{%
if
'investor'
in
url
|
render
|
render
%}
{%
if
'investor'
in
url
|
render
|
render
%}
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
(
function
(
$
)
{
(
function
(
$
)
{
var
currentdate
=
new
Date
();
var
hours
=
currentdate
.
getHours
();
var
minutes
=
currentdate
.
getMinutes
();
var
seconds
=
currentdate
.
getSeconds
();
var
datetime
=
hours
+
":"
+
minutes
+
":"
+
seconds
var
api_key
=
''
;
if
(
datetime
>
"9:00:00"
&&
datetime
<
"13:00:00"
)
{
api_key
=
'ijTEXD2SjXmshcsZFDkuH6gGZ86yp1v5p89jsnT5D5Fy4yNa8y'
;
}
else
if
(
datetime
>
"13:00:00"
&&
datetime
<
"17:00:00"
)
{
api_key
=
'ijTEXD2SjXmshcsZFDkuH6gGZ86yp1v5p89jsnT5D5Fy4yNa8y'
;
}
else
{
api_key
=
'ijTEXD2SjXmshcsZFDkuH6gGZ86yp1v5p89jsnT5D5Fy4yNa8y'
;
}
const
settings
=
{
const
settings
=
{
//api_key1:71595d71fdmsh59db2218deaaf67p15e9e8jsnca220a779910
//api_key1:71595d71fdmsh59db2218deaaf67p15e9e8jsnca220a779910
//api_key2:ijTEXD2SjXmshcsZFDkuH6gGZ86yp1v5p89jsnT5D5Fy4yNa8y
//api_key2:ijTEXD2SjXmshcsZFDkuH6gGZ86yp1v5p89jsnT5D5Fy4yNa8y
...
@@ -121,7 +141,7 @@
...
@@ -121,7 +141,7 @@
"url"
:
"https://apidojo-yahoo-finance-v1.p.rapidapi.com/stock/v2/get-financials?symbol=DICIND.BO®ion=IN"
,
"url"
:
"https://apidojo-yahoo-finance-v1.p.rapidapi.com/stock/v2/get-financials?symbol=DICIND.BO®ion=IN"
,
"method"
:
"GET"
,
"method"
:
"GET"
,
"headers"
:
{
"headers"
:
{
"x-rapidapi-key"
:
"ijTEXD2SjXmshcsZFDkuH6gGZ86yp1v5p89jsnT5D5Fy4yNa8y"
,
"x-rapidapi-key"
:
api_key
,
"x-rapidapi-host"
:
"apidojo-yahoo-finance-v1.p.rapidapi.com"
"x-rapidapi-host"
:
"apidojo-yahoo-finance-v1.p.rapidapi.com"
}
}
};
};
...
@@ -170,7 +190,7 @@
...
@@ -170,7 +190,7 @@
"url"
:
"https://apidojo-yahoo-finance-v1.p.rapidapi.com/stock/v2/get-financials?symbol=DICIND.NS®ion=IN"
,
"url"
:
"https://apidojo-yahoo-finance-v1.p.rapidapi.com/stock/v2/get-financials?symbol=DICIND.NS®ion=IN"
,
"method"
:
"GET"
,
"method"
:
"GET"
,
"headers"
:
{
"headers"
:
{
"x-rapidapi-key"
:
"ijTEXD2SjXmshcsZFDkuH6gGZ86yp1v5p89jsnT5D5Fy4yNa8y"
,
"x-rapidapi-key"
:
api_key
,
"x-rapidapi-host"
:
"apidojo-yahoo-finance-v1.p.rapidapi.com"
"x-rapidapi-host"
:
"apidojo-yahoo-finance-v1.p.rapidapi.com"
}
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment