Add copy-url button
Took 11 minutes
This commit is contained in:
parent
ba664edbdb
commit
9d5d7ab20d
17
.idea/workspace.xml
generated
17
.idea/workspace.xml
generated
@ -33,7 +33,7 @@
|
|||||||
<execution />
|
<execution />
|
||||||
</component>
|
</component>
|
||||||
<component name="DarkyenusTimeTracker">
|
<component name="DarkyenusTimeTracker">
|
||||||
<option name="totalTimeSeconds" value="87643" />
|
<option name="totalTimeSeconds" value="88224" />
|
||||||
<option name="gitIntegration" value="true" />
|
<option name="gitIntegration" value="true" />
|
||||||
<option name="naggedAbout" value="1" />
|
<option name="naggedAbout" value="1" />
|
||||||
</component>
|
</component>
|
||||||
@ -79,7 +79,7 @@
|
|||||||
<updated>1601618466935</updated>
|
<updated>1601618466935</updated>
|
||||||
<workItem from="1601618467981" duration="36776000" />
|
<workItem from="1601618467981" duration="36776000" />
|
||||||
<workItem from="1601809534320" duration="1558000" />
|
<workItem from="1601809534320" duration="1558000" />
|
||||||
<workItem from="1601811106543" duration="19143000" />
|
<workItem from="1601811106543" duration="19723000" />
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00001" summary="Initial commit">
|
<task id="LOCAL-00001" summary="Initial commit">
|
||||||
<created>1601618764031</created>
|
<created>1601618764031</created>
|
||||||
@ -277,7 +277,14 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1601840524864</updated>
|
<updated>1601840524864</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="29" />
|
<task id="LOCAL-00029" summary="Performance update, load only when okay is pressed">
|
||||||
|
<created>1601843125780</created>
|
||||||
|
<option name="number" value="00029" />
|
||||||
|
<option name="presentableId" value="LOCAL-00029" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1601843125780</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="30" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
@ -296,7 +303,6 @@
|
|||||||
<option name="oldMeFiltersMigrated" value="true" />
|
<option name="oldMeFiltersMigrated" value="true" />
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<MESSAGE value="Initial commit" />
|
|
||||||
<MESSAGE value="Stunden ende, einiges fertig, fehlt nicht mehr viel" />
|
<MESSAGE value="Stunden ende, einiges fertig, fehlt nicht mehr viel" />
|
||||||
<MESSAGE value="Almost done, just the answer system and query is missing" />
|
<MESSAGE value="Almost done, just the answer system and query is missing" />
|
||||||
<MESSAGE value="Almost done, finish line!" />
|
<MESSAGE value="Almost done, finish line!" />
|
||||||
@ -321,7 +327,8 @@
|
|||||||
<MESSAGE value="Fix bug #11, little boring" />
|
<MESSAGE value="Fix bug #11, little boring" />
|
||||||
<MESSAGE value="Allowing html content in answerModal" />
|
<MESSAGE value="Allowing html content in answerModal" />
|
||||||
<MESSAGE value="Update timezone" />
|
<MESSAGE value="Update timezone" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Update timezone" />
|
<MESSAGE value="Performance update, load only when okay is pressed" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Performance update, load only when okay is pressed" />
|
||||||
</component>
|
</component>
|
||||||
<component name="WindowStateProjectService">
|
<component name="WindowStateProjectService">
|
||||||
<state x="728" y="326" width="800" height="683" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1601632929047">
|
<state x="728" y="326" width="800" height="683" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1601632929047">
|
||||||
|
@ -121,6 +121,7 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<span class="text-danger" id="optionsErrorMsg"></span>
|
<span class="text-danger" id="optionsErrorMsg"></span>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
@ -200,13 +201,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-sm-12 col-md-6">
|
<div class="col-lg-6 col-sm-12 col-md-6">
|
||||||
<label class="float-right col-form-label">
|
<label class="float-right col-form-label">
|
||||||
<input type="text" class="disabled form-control" disabled value="[[SHARE_URL]]" size="28%">
|
<input type="text" id="share_url" class="disabled form-control" readonly value="[[SHARE_URL]]" size="28%">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<button type="button" class="btn btn-primary float-left" data-toggle="modal" data-target="#askQuestionModal">Ask a question</button>
|
<button type="button" class="btn btn-primary float-left" data-toggle="modal" data-target="#askQuestionModal">Ask a question</button>
|
||||||
<button type="button" class="btn btn-secondary float-right" data-toggle="modal" data-target="#askQuestionModal">Copy-URL</button>
|
<button type="button" class="btn btn-secondary float-right" onclick="copyShareUrl( this );">Copy-URL</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
12
vendor/js/faq.js
vendored
12
vendor/js/faq.js
vendored
@ -289,6 +289,18 @@ function welcomeMessage()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function copyShareUrl( btn )
|
||||||
|
{
|
||||||
|
|
||||||
|
let share_url = document.getElementById( "share_url" );
|
||||||
|
share_url.select();
|
||||||
|
share_url.setSelectionRange(0, 99999) ;
|
||||||
|
document.execCommand( "copy" );
|
||||||
|
$(btn).html( 'Copied!' );
|
||||||
|
setTimeout( function() { $(btn).html( 'Copy-URL' );}, 1500 );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user