879 lines
61 KiB
HTML
879 lines
61 KiB
HTML
|
{% extends "mnfapp/base.html" %}
|
||
|
{% load static %}
|
||
|
{% load i18n %}
|
||
|
{% block content %}
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Document</title>
|
||
|
<link rel="stylesheet" href="../../../static/Audit/css/Audit-output.css">
|
||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
|
||
|
<style>
|
||
|
.block-chain-modal,
|
||
|
.feedback-chain-modal {
|
||
|
display: none;
|
||
|
background-color: #7f7f7f;
|
||
|
position: absolute;
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
z-index: 999;
|
||
|
top: 8%;
|
||
|
}
|
||
|
.block-chain-text,
|
||
|
.feedback {
|
||
|
background-color: #fafafa;
|
||
|
position: absolute;
|
||
|
width: 680px;
|
||
|
min-height:400px;
|
||
|
top: 50%;
|
||
|
border-radius: 8px;
|
||
|
padding: 3rem;
|
||
|
padding: 2rem 2rem 1rem;
|
||
|
left: 50%;
|
||
|
transform: translate(-50%, -50%);
|
||
|
z-index: 99;
|
||
|
}
|
||
|
.block-chain-text{
|
||
|
min-height:240px;
|
||
|
padding: 3rem 2rem 1rem;
|
||
|
width: 580px;
|
||
|
}
|
||
|
.feedback-title {
|
||
|
font-size: 24px;
|
||
|
font-weight: 600;
|
||
|
}
|
||
|
.feedMsg{
|
||
|
font-size:16px;
|
||
|
}
|
||
|
#suggestions_msg{
|
||
|
display:none;
|
||
|
}
|
||
|
.group-imgages img,
|
||
|
#overall_exp_vb,
|
||
|
#accuracy_exp_vb,
|
||
|
#contextual_exp_vb {
|
||
|
padding: 0 9px 0 0;
|
||
|
}
|
||
|
|
||
|
.group-imgages img:hover {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.group-imgages img {
|
||
|
width: 60px;
|
||
|
}
|
||
|
|
||
|
.modal-para {
|
||
|
font-size: 16px;
|
||
|
font-weight: 600;
|
||
|
color: #252525;
|
||
|
}
|
||
|
|
||
|
.feedback_con_card_low {
|
||
|
float: right;
|
||
|
gap: 15px;
|
||
|
padding: 15px 0px 32px;
|
||
|
|
||
|
}
|
||
|
.feedback_con_card_low button:nth-child(1),
|
||
|
.feedback_con_card_low button:nth-child(2) {
|
||
|
cursor: pointer;
|
||
|
width: 106px;
|
||
|
height: 34px;
|
||
|
font-size: 16px;
|
||
|
padding: 4px 12px;
|
||
|
font-weight: 400;
|
||
|
border-radius: 4px;
|
||
|
margin: 0px 10px;
|
||
|
}
|
||
|
.feedback_con_card_low button:nth-child(1) {
|
||
|
border: 1px solid #33B0CA;
|
||
|
color: #33B0CA;
|
||
|
background-color: transparent;
|
||
|
}
|
||
|
|
||
|
.feedback_con_card_low button:nth-child(2) {
|
||
|
border: 1px solid #33B0CA;
|
||
|
color: #fafafa;
|
||
|
background-color: #33B0CA;
|
||
|
}
|
||
|
.feedback_con_card_low button:nth-child(1):hover{
|
||
|
color: #fafafa;
|
||
|
background-color:#33b0ca;
|
||
|
}
|
||
|
.textareaa{
|
||
|
resize:none;
|
||
|
}
|
||
|
@media (max-width:768px){
|
||
|
.block-chain-text,
|
||
|
.feedback {
|
||
|
width:90%;
|
||
|
}
|
||
|
.modal-para {
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
.popupclosebtn {
|
||
|
top: -40%;
|
||
|
width: 30px;
|
||
|
height: 30px;
|
||
|
right: 44%;
|
||
|
font-weight: 600;
|
||
|
}
|
||
|
.group-imgages img {
|
||
|
width: 55px;
|
||
|
}
|
||
|
.feedback-title {
|
||
|
font-size: 16px;
|
||
|
}
|
||
|
}
|
||
|
@media (max-width:475px){
|
||
|
.modal-para {
|
||
|
font-size: 12px;
|
||
|
}
|
||
|
.group-imgages img {
|
||
|
width: 39px;
|
||
|
}
|
||
|
.feedback {
|
||
|
padding: 2rem 1rem 1rem;
|
||
|
min-height: 359px;
|
||
|
}
|
||
|
.feedback-title {
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
.feedback_con_card_low button:nth-child(1),
|
||
|
.feedback_con_card_low button:nth-child(2) {
|
||
|
font-size: 12px;
|
||
|
width: 69px;
|
||
|
}
|
||
|
|
||
|
</style>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<div class="feedback-chain-modal" id="feedback" >
|
||
|
<div class="feedback">
|
||
|
<p class="feedback-title">Feedback on Script Audit of {Project Name}</p>
|
||
|
<hr>
|
||
|
<div class="feedback-section">
|
||
|
<p class="feedMsg">overall Experience </p>
|
||
|
<span class="group-imgages">
|
||
|
<img data-toggle="tooltip" title="Disappointed"
|
||
|
onclick="rating('overall_EXP','overall_exp_vb','overall_EXPb','overall_EXPn','overall_EXPg','overall_EXPvg','overall_EXPex','overall_exp_b','overall_exp_n','overall_exp_g','overall_exp_vg','overall_exp_ex');overallrating('1')"
|
||
|
id="overall_EXP" src="{% static '/media/feedback_img1.png' %}" alt="Disappointed">
|
||
|
<img data-toggle="tooltip" title="Disappointed" id="overall_exp_vb"
|
||
|
src="{% static '/media/feedback_img_hgh1.png' %}" alt="Disappointed">
|
||
|
<img data-toggle="tooltip" title="Doubtful"
|
||
|
onclick="rating('overall_EXPb','overall_exp_b','overall_EXP','overall_EXPn','overall_EXPg','overall_EXPvg','overall_EXPex','overall_exp_vb','overall_exp_n','overall_exp_g','overall_exp_vg','overall_exp_ex');overallrating('2')"
|
||
|
id="overall_EXPb" src="{% static '/media/feedback_img2.png' %}" alt="Doubtful">
|
||
|
<img data-toggle="tooltip" title="Doubtful" id="overall_exp_b"
|
||
|
src="{% static '/media/feedback_img_hgh2.png' %}" alt="Doubtful">
|
||
|
<img data-toggle="tooltip" title="Interested"
|
||
|
onclick="rating('overall_EXPn','overall_exp_n','overall_EXP','overall_EXPb','overall_EXPg','overall_EXPvg','overall_EXPex','overall_exp_vb','overall_exp_b','overall_exp_g','overall_exp_vg','overall_exp_ex');overallrating('3')"
|
||
|
id="overall_EXPn" src="{% static '/media/feedback_img3.png' %}"alt="Interested">
|
||
|
<img data-toggle="tooltip" title="Interested" id="overall_exp_n"
|
||
|
src="{% static '/media/feedback_img_hgh3.png' %}" alt="Interested">
|
||
|
<img data-toggle="tooltip" title="Looking forward to"
|
||
|
onclick="rating('overall_EXPg','overall_exp_g','overall_EXP','overall_EXPb','overall_EXPn','overall_EXPvg','overall_EXPex','overall_exp_vb','overall_exp_b','overall_exp_n','overall_exp_vg','overall_exp_ex');overallrating('4')"
|
||
|
id="overall_EXPg" src="{% static '/media/feedback_img4.png' %}" alt="Looking forward to">
|
||
|
<img data-toggle="tooltip" title="Looking forward to" id="overall_exp_g"
|
||
|
src="{% static '/media/feedback_img_hgh4.png' %}" alt="Looking forward to">
|
||
|
<img data-toggle="tooltip" title="Astonished"
|
||
|
onclick="rating('overall_EXPvg','overall_exp_vg','overall_EXP','overall_EXPb','overall_EXPn','overall_EXPg','overall_EXPex','overall_exp_vb','overall_exp_b','overall_exp_n','overall_exp_g','overall_exp_ex');overallrating('5')"
|
||
|
id="overall_EXPvg" src="{% static '/media/feedback_img5.png' %}" alt="Astonished">
|
||
|
<img data-toggle="tooltip" title="Astonished" id="overall_exp_vg"
|
||
|
src="{% static '/media/feedback_img_hgh5.png' %}" alt="Astonished">
|
||
|
<img data-toggle="tooltip" title="Excited"
|
||
|
onclick="rating('overall_EXPex','overall_exp_ex','overall_EXP','overall_EXPb','overall_EXPn','overall_EXPg','overall_EXPvg','overall_exp_vb','overall_exp_b','overall_exp_n','overall_exp_g','overall_exp_vg');overallrating('6')"
|
||
|
id="overall_EXPex" src="{% static '/media/feedback_img6.png' %}"alt="Excited">
|
||
|
<img data-toggle="tooltip" title="Excited" id="overall_exp_ex"
|
||
|
src="{% static '/media/feedback_img_hgh6.png' %}" alt="Excited">
|
||
|
|
||
|
|
||
|
</span>
|
||
|
<p class="feedMsg">Accuracy of Translation </p>
|
||
|
<span class="group-imgages">
|
||
|
<img data-toggle="tooltip" title="Disappointed"
|
||
|
onclick="rating('accuracy_EXP','accuracy_exp_vb','accuracy_EXPb','accuracy_EXPn','accuracy_EXPg','accuracy_EXPvg','accuracy_EXPex','accuracy_exp_b','accuracy_exp_n','accuracy_exp_g','accuracy_exp_vg','accuracy_exp_ex');accuracyrating('1')"
|
||
|
id="accuracy_EXP" src="{% static '/media/feedback_img1.png' %}">
|
||
|
<img data-toggle="tooltip" title="Disappointed" id="accuracy_exp_vb"
|
||
|
src="{% static '/media/feedback_img_hgh1.png' %}" >
|
||
|
<img data-toggle="tooltip" title="Doubtful"
|
||
|
onclick="rating('accuracy_EXPb','accuracy_exp_b','accuracy_EXP','accuracy_EXPn','accuracy_EXPg','accuracy_EXPvg','accuracy_EXPex','accuracy_exp_vb','accuracy_exp_n','accuracy_exp_g','accuracy_exp_vg','accuracy_exp_ex');accuracyrating('2')"
|
||
|
id="accuracy_EXPb" src="{% static '/media/feedback_img2.png' %}">
|
||
|
<img data-toggle="tooltip" title="Doubtful" id="accuracy_exp_b"
|
||
|
src="{% static '/media/feedback_img_hgh2.png' %}" >
|
||
|
<img data-toggle="tooltip" title="Interested"
|
||
|
onclick="rating('accuracy_EXPn','accuracy_exp_n','accuracy_EXP','accuracy_EXPb','accuracy_EXPg','accuracy_EXPvg','accuracy_EXPex','accuracy_exp_vb','accuracy_exp_b','accuracy_exp_g','accuracy_exp_vg','accuracy_exp_ex');accuracyrating('3')"
|
||
|
id="accuracy_EXPn" src="{% static '/media/feedback_img3.png' %}">
|
||
|
<img data-toggle="tooltip" title="Interested" id="accuracy_exp_n"
|
||
|
src="{% static '/media/feedback_img_hgh3.png' %}" >
|
||
|
<img data-toggle="tooltip" title="Looking forward to"
|
||
|
onclick="rating('accuracy_EXPg','accuracy_exp_g','accuracy_EXP','accuracy_EXPb','accuracy_EXPn','accuracy_EXPvg','accuracy_EXPex','accuracy_exp_vb','accuracy_exp_b','accuracy_exp_n','accuracy_exp_vg','accuracy_exp_ex');accuracyrating('4')"
|
||
|
id="accuracy_EXPg" src="{% static '/media/feedback_img4.png' %}">
|
||
|
<img data-toggle="tooltip" title="Looking forward to" id="accuracy_exp_g"
|
||
|
src="{% static '/media/feedback_img_hgh4.png' %}" >
|
||
|
<img data-toggle="tooltip" title="Astonished"
|
||
|
onclick="rating('accuracy_EXPvg','accuracy_exp_vg','accuracy_EXP','accuracy_EXPb','accuracy_EXPn','accuracy_EXPg','accuracy_EXPex','accuracy_exp_vb','accuracy_exp_b','accuracy_exp_n','accuracy_exp_g','accuracy_exp_ex');accuracyrating('5')"
|
||
|
id="accuracy_EXPvg" src="{% static '/media/feedback_img5.png' %}">
|
||
|
<img data-toggle="tooltip" title="Astonished" id="accuracy_exp_vg"
|
||
|
src="{% static '/media/feedback_img_hgh5.png' %}" >
|
||
|
<img data-toggle="tooltip" title="Excited"
|
||
|
onclick="rating('accuracy_EXPex','accuracy_exp_ex','accuracy_EXP','accuracy_EXPb','accuracy_EXPn','accuracy_EXPg','accuracy_EXPvg','accuracy_exp_vb','accuracy_exp_b','accuracy_exp_n','accuracy_exp_g','accuracy_exp_vg');accuracyrating('6')"
|
||
|
id="accuracy_EXPex" src="{% static '/media/feedback_img6.png' %}">
|
||
|
<img data-toggle="tooltip" title="Excited" id="accuracy_exp_ex"
|
||
|
src="{% static '/media/feedback_img_hgh6.png' %}" >
|
||
|
|
||
|
</span>
|
||
|
<p class="feedMsg">Contextual Relevance </p>
|
||
|
<span class="group-imgages">
|
||
|
<img data-toggle="tooltip" title="Disappointed" data-toggle="tooltip" title="Disappointed"
|
||
|
onclick="rating('contextual_EXP','contextual_exp_vb','contextual_EXPb','contextual_EXPn','contextual_EXPg','contextual_EXPvg','contextual_EXPex','contextual_exp_b','contextual_exp_n','contextual_exp_g','contextual_exp_vg','contextual_exp_ex');contextualrating('1')"
|
||
|
id="contextual_EXP" src="{% static '/media/feedback_img1.png' %}">
|
||
|
<img data-toggle="tooltip" title="Disappointed" data-toggle="tooltip" title="Disappointed"
|
||
|
id="contextual_exp_vb" src="{% static '/media/feedback_img_hgh1.png' %}">
|
||
|
|
||
|
<img data-toggle="tooltip" title="Doubtful"
|
||
|
onclick="rating('contextual_EXPb','contextual_exp_b','contextual_EXP','contextual_EXPn','contextual_EXPg','contextual_EXPvg','contextual_EXPex','contextual_exp_vb','contextual_exp_n','contextual_exp_g','contextual_exp_vg','contextual_exp_ex');contextualrating('2')"
|
||
|
id="contextual_EXPb" src="{% static '/media/feedback_img2.png' %}">
|
||
|
<img data-toggle="tooltip" title="Doubtful" id="contextual_exp_b"
|
||
|
src="{% static '/media/feedback_img_hgh2.png' %}" >
|
||
|
|
||
|
<img data-toggle="tooltip" title="Interested"
|
||
|
onclick="rating('contextual_EXPn','contextual_exp_n','contextual_EXP','contextual_EXPb','contextual_EXPg','contextual_EXPvg','contextual_EXPex','contextual_exp_vb','contextual_exp_b','contextual_exp_g','contextual_exp_vg','contextual_exp_ex');contextualrating('3')"
|
||
|
id="contextual_EXPn" src="{% static '/media/feedback_img3.png' %}">
|
||
|
<img data-toggle="tooltip" title="Interested" id="contextual_exp_n"
|
||
|
src="{% static '/media/feedback_img_hgh3.png' %}" >
|
||
|
|
||
|
<img data-toggle="tooltip" title="Looking forward to"
|
||
|
onclick="rating('contextual_EXPg','contextual_exp_g','contextual_EXP','contextual_EXPb','contextual_EXPn','contextual_EXPvg','contextual_EXPex','contextual_exp_vb','contextual_exp_b','contextual_exp_n','contextual_exp_vg','contextual_exp_ex');contextualrating('4')"
|
||
|
id="contextual_EXPg" src="{% static '/media/feedback_img4.png' %}">
|
||
|
<img data-toggle="tooltip" title="Looking forward to" id="contextual_exp_g"
|
||
|
src="{% static '/media/feedback_img_hgh4.png' %}" >
|
||
|
|
||
|
<img data-toggle="tooltip" title="Astonished"
|
||
|
onclick="rating('contextual_EXPvg','contextual_exp_vg','contextual_EXP','contextual_EXPb','contextual_EXPn','contextual_EXPg','contextual_EXPex','contextual_exp_vb','contextual_exp_b','contextual_exp_n','contextual_exp_g','contextual_exp_ex');contextualrating('5')"
|
||
|
id="contextual_EXPvg" src="{% static '/media/feedback_img5.png' %}">
|
||
|
<img data-toggle="tooltip" title="Astonished" id="contextual_exp_vg"
|
||
|
src="{% static '/media/feedback_img_hgh5.png' %}" >
|
||
|
|
||
|
<img data-toggle="tooltip" title="Excited"
|
||
|
onclick="rating('contextual_EXPex','contextual_exp_ex','contextual_EXP','contextual_EXPb','contextual_EXPn','contextual_EXPg','contextual_EXPvg','contextual_exp_vb','contextual_exp_b','contextual_exp_n','contextual_exp_g','contextual_exp_vg');contextualrating('6')"
|
||
|
id="contextual_EXPex" src="{% static '/media/feedback_img6.png' %}">
|
||
|
<img data-toggle="tooltip" title="Excited" id="contextual_exp_ex"
|
||
|
src="{% static '/media/feedback_img_hgh6.png' %}" >
|
||
|
|
||
|
|
||
|
</span>
|
||
|
<div id="suggestions_msg">
|
||
|
<label class="form-label">Your Suggestions</label>
|
||
|
<textarea class="form-control textareaa" type="text" placeholder="Please write here"
|
||
|
row="2"></textarea>
|
||
|
</div>
|
||
|
<form action="" method="POST" enctype="multipart/form-data">
|
||
|
<input class="d-none" type="text" name="" value="" id="contextual_relevance">
|
||
|
<input class="d-none" type="text" name="" value="" id="accuracy_translation">
|
||
|
<input class="d-none" type="text" name="" value="" id="overall_Experience">
|
||
|
<div class="feedback_con_card_low" id="feedbackSkip">
|
||
|
<button type="button" class="btn primary-btn-color " id="view_skip"
|
||
|
onclick="feedback_message()">
|
||
|
Skip</button>
|
||
|
<button type="button" class="btn primary-btn-color button_download " id="download_output"
|
||
|
onclick="feedback_message()">Submit</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="modal" tabindex="-1" id="delete" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||
|
<div class="modal-dialog main-d-dialog m-dialog" id="d-delete">
|
||
|
<div class="modal-content">
|
||
|
<button type="button" class="red-btn-close" data-dismiss="modal" onclick="delete_script_btn()"
|
||
|
aria-hidden="true">X</button>
|
||
|
<div class="modal-body m-body">
|
||
|
<p class="deleteMsg">Are you Sure you want to Delete this Project?</p>
|
||
|
<p class="d-none" id="para_inner_test"></p>
|
||
|
<p class="" id="para_idd"></p>
|
||
|
<div class="d-flex justify-content-evenly script_con_card_low pt-5 ">
|
||
|
<button class="btn primary-btn-color view_text_button" onclick="delete_script_btn()" id="delete_btn_none">
|
||
|
No</button>
|
||
|
<button id="delete_auideted_script"
|
||
|
class="btn primary-btn-color button_download download_text_button view_text_button">Yes</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="block-chain-modal" id="popupShow">
|
||
|
<div class="block-chain-text">
|
||
|
<span class="popupclosebtn" onclick="hidemodal()">X</span>
|
||
|
<div>
|
||
|
<p class="modal-para">You may access it by pasting your private key (Sent to you via email) in the box
|
||
|
below.</p>
|
||
|
<input type="text" name="" class="input-text" id="primary_key_value_get" placeholder="Enter Private key"
|
||
|
required>
|
||
|
<p class="warningMsg">MNF doesn't store your Blockchain private key</p>
|
||
|
<p class="d-none" id="Script_idd"></p>
|
||
|
<p class="d-none" id="transaction_iddetails"></p>
|
||
|
<p class="d-none" id="confirmkey_details"></p>
|
||
|
<div class="d-flex justify-content-between script_con_card_low pt-5 ">
|
||
|
<button class="btn primary-btn-color view_transaction_button" id="view_transaction" onclick="openURL()">View
|
||
|
transaction</button>
|
||
|
<button onclick="auditapi_dowload()"
|
||
|
class="btn primary-btn-color button_download download_text_button">Download</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="container mt">
|
||
|
|
||
|
{% if user.is_authenticated %}
|
||
|
{% if i %}
|
||
|
<div class="row">
|
||
|
<!-- <h2 class="text-center">My Script Conversions</h2> -->
|
||
|
<div class="col-sm-1">
|
||
|
<img class="d-image" src="/static/media/Audit_img.png" alt="conversion doodle">
|
||
|
</div>
|
||
|
<div class="col-sm-10">
|
||
|
<div class="mobile-view">
|
||
|
<img src="/static/media/Audit_img.png" class="m-none" alt="conversion doodle">
|
||
|
<h2 class="text-center">My Audited Scripts</h2>
|
||
|
</div>
|
||
|
<p class="text-center blockchain-text"> <img src="/static/media/blockchain_img.png" alt="conversion video"
|
||
|
class="block-chain-img">
|
||
|
<span>Your Assets are
|
||
|
Secured by blockchain.
|
||
|
<span class="c-green-text">MNF</span> has no access to Them.
|
||
|
</span>
|
||
|
</p>
|
||
|
</div>
|
||
|
<div class="row gy-3 my-3 m-auto mobile-m">
|
||
|
|
||
|
{% for k in i %}
|
||
|
<div class="col col-sm-6 col-lg-4 col-xl-3">
|
||
|
<div class="card-item card-items">
|
||
|
<div class=" card" id="{{k.scriptName}}">
|
||
|
<div class="card-body">
|
||
|
<div class="d-flex justify-content-between">
|
||
|
<h5 class="card-title">{{k.scriptName|slice:":12"}}</h5>
|
||
|
<div data-scriptid="{{k.scriptName}}" data-url="{{url}}/audit/delete_scripts/{{k.scriptName}}"
|
||
|
data-bs-toggle="modal" data-bs-target="#delete" data-toggle="dropdown" aria-haspopup="true"
|
||
|
class="cpointer" onclick="delete_script_card('{{k.scriptName}}')" aria-expanded="false">
|
||
|
<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"
|
||
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||
|
<circle cx="12.8467" cy="12.2241" r="11.5" fill="#FAFAFA" stroke="#33B0CA" />
|
||
|
<mask id="mask0_342_430" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="4" y="4" width="17"
|
||
|
height="17">
|
||
|
<rect x="4.84668" y="4.22412" width="16" height="16" fill="url(#pattern0)" />
|
||
|
</mask>
|
||
|
<g mask="url(#mask0_342_430)">
|
||
|
<rect x="4.84668" y="4.22412" width="18.9091" height="18.9091" fill="#33B0CA" />
|
||
|
</g>
|
||
|
<defs>
|
||
|
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||
|
<use xlink:href="#image0_342_430" transform="scale(0.00195312)" />
|
||
|
</pattern>
|
||
|
<image id="image0_342_430" width="512" height="512"
|
||
|
xlink:href="data:image/png;base64,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
|
||
|
</defs>
|
||
|
</svg>
|
||
|
</div>
|
||
|
</div>
|
||
|
<h6 class="card-subtitle mb-2 text-muted u_name">{{k.author }}</h6>
|
||
|
{% if k.iscomplete == "S" %}
|
||
|
<div class="my-3">
|
||
|
<p class="card-text">Uploaded On : {{ k.created_on }}</p>
|
||
|
<p class="card-text">Screenplay in {% trans k.screenplay_language %}</p>
|
||
|
<p class="card-text">Dialogues in {% trans k.dialogue_language|slice:":20" %}</p>
|
||
|
<p class="card-text">Pages {% trans k.page_number %}</p>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% if k.iscomplete == "F" %}
|
||
|
<div class="my-3">
|
||
|
<p class="card-text">Uploaded On : {{ k.created_on }}</p>
|
||
|
<p class="card-text">Screenplay in {Language/Script}</p>
|
||
|
<p class="card-text">Dialogues in {Language/Script}</p>
|
||
|
<p class="card-text">Pages {110}</p>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% if k.iscomplete == "R" %}
|
||
|
<div class="my-3">
|
||
|
<p class="card-text">Uploaded On : {{ k.created_on }}</p>
|
||
|
<p class="card-text">Screenplay in {Language/Script}</p>
|
||
|
<p class="card-text">Dialogues in {Language/Script}</p>
|
||
|
<p class="card-text">Pages {110}</p>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
|
||
|
<div class="d-flex justify-content-between script_con_card_low">
|
||
|
{% if k.iscomplete == "S" %}
|
||
|
<Button class="card-link edit-btnn cpointerrr" onclick=redirectToScriptPad('{{k.scriptid}}')>
|
||
|
<img src="{%static '/media/pencil.png'%}" class="pencil_image" width="19">
|
||
|
{% trans "Edit" %}
|
||
|
</Button>
|
||
|
<Button class="card-link cpointerrr" type="button" data-bs-toggle="dropdown"
|
||
|
aria-expanded="false">Download</Button>
|
||
|
<ul class="dropdown-menu ul_list">
|
||
|
<li>
|
||
|
<!-- <a class="dropdown-item" id="scipt_original_download" href="#" data-bs-toggle="modal"
|
||
|
data-bs-target="#downloadpopclose" data-toggle="dropdown" aria-haspopup="true"
|
||
|
aria-expanded="false" onclick="original_script({{k}},'script-original','{{k.confirmkey}}')"><img
|
||
|
src="{%static '/media/download-icon-img.png'%}">
|
||
|
Original Script</a> -->
|
||
|
<!-- onclick="original_script({{k}},'script-original','{{k.confirmkey}}')" -->
|
||
|
<a class="dropdown-item" id="scipt_original_download" href="#" data-bs-toggle="modal"
|
||
|
data-bs-target="#downloadpopclose" data-toggle="dropdown" aria-haspopup="true"
|
||
|
aria-expanded="false" onclick="showfeebbkmodal('{{k.scriptid}}','script-original')"><img
|
||
|
src="{%static '/media/download-icon-img.png'%}">
|
||
|
Original Script</a>
|
||
|
</li>
|
||
|
<!-- onclick="original_script({{k}},'script-docx','{{k.confirmkey}}')" -->
|
||
|
<li><a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#downloadpopclose"
|
||
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
|
||
|
onclick="showfeebbkmodal('{{k.scriptid}}','script-docx')" target="_blank" class="navi-link_new"
|
||
|
style="color: #000000;"><img src="{%static '/media/download-icon-img.png'%}">
|
||
|
Audited
|
||
|
Script (DOCX) </a>
|
||
|
</li>
|
||
|
<!-- onclick="original_script({{k}},'script-pdf','{{k.confirmkey}}')"onclick="showmodal('{{k.scriptid}}','script-pdf')" -->
|
||
|
<li><a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#downloadpopclose"
|
||
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
|
||
|
onclick="showfeebbkmodal('{{k.scriptid}}','script-pdf')" target="_blank" class="navi-link_new"
|
||
|
style="color: #000000;"><img src="{%static '/media/download-icon-img.png'%}">
|
||
|
Audited
|
||
|
Script (PDF) </a>
|
||
|
</li>
|
||
|
<!-- onclick="original_script({{k}},'audit-report',)" -->
|
||
|
<li><a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#downloadpopclose"
|
||
|
onclick="showfeebbkmodal('{{k.scriptid}}','audit-report')"
|
||
|
target="_blank" class="navi-link_new" style="color: #000000;"><img
|
||
|
src="{%static '/media/download-icon-img.png'%}">
|
||
|
Audited
|
||
|
Report
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
{% elif k.iscomplete == "R" %}
|
||
|
<Button class="card-link edit-btnn cpointerrr" onclick=redirectToScriptPad('{{k.scriptid}}')>
|
||
|
<img src="{%static '/media/pencil.png'%}" class="pencil_image" width="19">
|
||
|
{% trans "Edit" %}
|
||
|
</Button>
|
||
|
<Button class="card-link cpointerrr" type="button" data-bs-toggle="dropdown"
|
||
|
aria-expanded="false">Download</Button>
|
||
|
<ul class="dropdown-menu ul_list">
|
||
|
<li>
|
||
|
<a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#downloadpopclose"
|
||
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
|
||
|
onclick="original_script({{k}},'script-original','{{k.confirmkey}}')"><img
|
||
|
src="{%static '/media/download-icon-img.png'%}">
|
||
|
original script Pending</a>
|
||
|
</li>
|
||
|
<li><a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#downloadpopclose"
|
||
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
|
||
|
onclick="original_script({{k}},'script-docx','{{k.confirmkey}}')" target="_blank"
|
||
|
class="navi-link_new" style="color: #000000;"><img
|
||
|
src="{%static '/media/download-icon-img.png'%}">
|
||
|
Audited
|
||
|
Script (DOCX) </a>
|
||
|
</li>
|
||
|
<li><a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#downloadpopclose"
|
||
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
|
||
|
onclick="original_script({{k}},'script-pdf','{{k.confirmkey}}')" target="_blank"
|
||
|
class="navi-link_new" style="color: #000000;"><img
|
||
|
src="{%static '/media/download-icon-img.png'%}">
|
||
|
Audited
|
||
|
Script (PDF) </a>
|
||
|
</li>
|
||
|
<li><a class="dropdown-item" href="#" onclick="original_script({{k}},'audit-report',)"
|
||
|
target="_blank" class="navi-link_new" style="color: #000000;"><img
|
||
|
src="{%static '/media/download-icon-img.png'%}">
|
||
|
Audited
|
||
|
Report
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
{% elif k.iscomplete == "F" %}
|
||
|
<Button class="card-link edit-btnn cpointerrr" onclick=redirectToScriptPad('{{k.scriptid}}')>
|
||
|
<img src="{%static '/media/pencil.png'%}" class="pencil_image" width="19">
|
||
|
{% trans "Edit" %}
|
||
|
</Button>
|
||
|
<Button class="card-link cpointerrr" type="button" data-bs-toggle="dropdown"
|
||
|
aria-expanded="false">Download</Button>
|
||
|
<ul class="dropdown-menu ul_list">
|
||
|
<li>
|
||
|
<a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#downloadpopclose"
|
||
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
|
||
|
onclick="original_script({{k}},'script-original','{{k.confirmkey}}')"><img
|
||
|
src="{%static '/media/download-icon-img.png'%}">
|
||
|
2</a>
|
||
|
</li>
|
||
|
<li><a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#downloadpopclose"
|
||
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
|
||
|
onclick="original_script({{k}},'script-docx','{{k.confirmkey}}')" target="_blank"
|
||
|
class="navi-link_new" style="color: #000000;"><img
|
||
|
src="{%static '/media/download-icon-img.png'%}">
|
||
|
Audited
|
||
|
Script (DOCX) </a>
|
||
|
</li>
|
||
|
<li><a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#downloadpopclose"
|
||
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
|
||
|
onclick="original_script({{k}},'script-pdf','{{k.confirmkey}}')" target="_blank"
|
||
|
class="navi-link_new" style="color: #000000;"><img
|
||
|
src="{%static '/media/download-icon-img.png'%}">
|
||
|
Audited
|
||
|
Script (PDF) </a>
|
||
|
</li>
|
||
|
<li><a class="dropdown-item" href="#"
|
||
|
onclick="original_script({{k}},'audit-report',)" target="_blank"
|
||
|
class="navi-link_new" style="color: #000000;"><img
|
||
|
src="{%static '/media/download-icon-img.png'%}">
|
||
|
Audited
|
||
|
Report
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
{% endif%}
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
{% if k.iscomplete == "R" %}
|
||
|
<div id="script_con_card_expected" class="script_con_card_expected active">
|
||
|
<div>
|
||
|
<p>Your script is in progress.</p>
|
||
|
<p>Please wait.We will notify you when it's complete.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% if k.iscomplete == "F" %}
|
||
|
<div id="script_con_card_expected" class="script_con_card_expected active">
|
||
|
<div>
|
||
|
<p>For some reason the Screenplay could not be completed</p>
|
||
|
|
||
|
<p>We will investigate it and revert to you.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
{% else %}
|
||
|
<div class="text-center my-3">
|
||
|
<h2 style=" font-size: 24px; font-weight: 700;">My Audited Scripts</h2>
|
||
|
</div>
|
||
|
<div class="row align-items-center justify-content-center my-5">
|
||
|
<div class="col-md-8">
|
||
|
<div class="card text-center">
|
||
|
<div class="card-body bgcolor">
|
||
|
<h5 class="card-title">Oops! You are yet to Audit your first script!!</h5>
|
||
|
<div class="card-btn">
|
||
|
<!-- {% comment %} <a href="#" onclick="window.location.replace('/audit/home')" class="btn btn-primary sample-btn">Audit a
|
||
|
Sample
|
||
|
Script</a> {% endcomment %} -->
|
||
|
<a href="#" onclick="window.location.replace('/audit/home')" class="btn btn-primary btnn">Audit your
|
||
|
script
|
||
|
Now</a>
|
||
|
|
||
|
</div>
|
||
|
<p class="card-texts">P.S. - if you uploaded your script for Audit and are not yet seeing the Audited
|
||
|
script
|
||
|
OR<br>
|
||
|
had some difficulty in uploading your script, please" <a href="/contact" class="link-ds">
|
||
|
contact us</a>.
|
||
|
</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
{% endif %}
|
||
|
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
|
||
|
<script>
|
||
|
document.addEventListener('DOMContentLoaded', function () {
|
||
|
// Select all elements with class .formattedDate
|
||
|
var formattedDateElements = document.querySelectorAll('.formattedDate');
|
||
|
|
||
|
// Loop through each element and format the date
|
||
|
formattedDateElements.forEach(function (element) {
|
||
|
// Get the original date string from the element's content
|
||
|
var dateString = element.textContent.trim();
|
||
|
// Parse the date string
|
||
|
var originalDate = new Date(dateString);
|
||
|
// Format the date
|
||
|
var formattedDate = new Intl.DateTimeFormat('en-US', {
|
||
|
year: 'numeric',
|
||
|
month: 'short',
|
||
|
day: 'numeric',
|
||
|
hour: 'numeric',
|
||
|
minute: 'numeric',
|
||
|
hour12: true
|
||
|
}).format(originalDate);
|
||
|
|
||
|
// Update the element with the formatted date
|
||
|
element.textContent = formattedDate;
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
<script>
|
||
|
|
||
|
function deleteFile(filename) {
|
||
|
var xhr = new XMLHttpRequest();
|
||
|
var url = 'data-url';
|
||
|
var params = 'filename=' + encodeURIComponent(filename);
|
||
|
|
||
|
xhr.open('DELETE', url, true);
|
||
|
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
||
|
|
||
|
xhr.onreadystatechange = function () {
|
||
|
if (xhr.readyState === XMLHttpRequest.DONE) {
|
||
|
if (xhr.status === 200) {
|
||
|
console.log('File deleted:', filename);
|
||
|
} else {
|
||
|
console.error('Error deleting file:', filename);
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
xhr.send(params);
|
||
|
}
|
||
|
|
||
|
function deletescript() {
|
||
|
var fileNameToDelete = 'example-file.txt';
|
||
|
deleteFile(fileNameToDelete);
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
|
||
|
<script>
|
||
|
|
||
|
// Handling Footer as per scrollbar - Aris
|
||
|
// Check if the browser has a scrollbar
|
||
|
function hasVerticalScrollbar() {
|
||
|
const page = document.querySelector(".split-pane-component");
|
||
|
return page.scrollHeight > window.innerHeight;
|
||
|
}
|
||
|
// Function to toggle the footer's position
|
||
|
// Call the function when the page loads and when it resizes
|
||
|
</script>
|
||
|
|
||
|
<script>
|
||
|
function redirectToScriptPad(id) {
|
||
|
window.location.href = window.location.origin + "/scriptpad#/" + id;
|
||
|
}
|
||
|
function openURL() {
|
||
|
let idd = document.getElementById('transaction_iddetails').innerText
|
||
|
var url = "https://mumbai.polygonscan.com/tx/" + idd;
|
||
|
window.open(url, "_blank");
|
||
|
}
|
||
|
function original_script(key_value, script_format, confirmkey) {
|
||
|
let scriptid = `${key_value.scriptid}`;
|
||
|
var accessToken = localStorage.getItem("accessToken");
|
||
|
// var apiEndpoint = window.location.origin + '/audit/download?' + 'script_id=' + scriptid + '&type='
|
||
|
// + script_format;
|
||
|
location.href = apiEndpoint;
|
||
|
}
|
||
|
let script_completed_val = '';
|
||
|
function delete_script_card(vall) {
|
||
|
script_completed_val = vall;
|
||
|
document.getElementById('d-delete').style.display = 'block';
|
||
|
var elements = document.getElementsByClassName("shadowpop");
|
||
|
elements[0].classList.add("show");
|
||
|
elements[0].classList.add("modal-backdrop");
|
||
|
document.getElementById('delete').style.display = 'block';
|
||
|
var elements = document.getElementsByClassName('card-height');
|
||
|
}
|
||
|
//function delete_script_confirm() {
|
||
|
const deleteBtn = document.getElementById("delete_auideted_script");
|
||
|
|
||
|
deleteBtn.addEventListener("click", async () => {
|
||
|
const csrftoken = '{{csrf_token}}';
|
||
|
// This line seems to be a template placeholder, replace it with the actual value of the CSRF token
|
||
|
const accessToken = localStorage.getItem("accessToken");
|
||
|
try {
|
||
|
const response = await fetch(`/audit/delete_scripts/${script_completed_val}`, {
|
||
|
method: "DELETE",
|
||
|
headers: {
|
||
|
'X-CSRFToken': csrftoken,
|
||
|
'Authorization': `Bearer ${accessToken}`
|
||
|
},
|
||
|
body: JSON.stringify({ id: script_completed_val })
|
||
|
});
|
||
|
console.log(response);
|
||
|
if (response.ok) {
|
||
|
console.log("Deleted successfully");
|
||
|
window.location.reload();
|
||
|
} else {
|
||
|
console.error("Error in deletion process:", response.statusText);
|
||
|
}
|
||
|
} catch (error) {
|
||
|
console.error("An error occurred during deletion:", error);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
function delete_script_btn() {
|
||
|
document.getElementById("delete").style.display = "none";
|
||
|
document.getElementById("delete").removeAttribute("role");
|
||
|
document.getElementsByClassName("modal")[0].classList.remove("show");
|
||
|
document.getElementsByClassName("modal")[0].removeAttribute("aria-modal");
|
||
|
document.getElementsByClassName("modal")[0].setAttribute("aria-hidden", "true");
|
||
|
document.getElementsByClassName("cpointer")[0].click();
|
||
|
var elements = document.getElementsByClassName("modal-backdrop");
|
||
|
elements[0].classList.remove("show");
|
||
|
var elements = document.getElementsByClassName("modal-backdrop");
|
||
|
elements[0].classList.add("shadowpop");
|
||
|
var fade_elements = document.getElementsByClassName("modal-backdrop");
|
||
|
fade_elements[0].classList.remove("modal-backdrop");
|
||
|
}
|
||
|
|
||
|
function downloadpopupClose() {
|
||
|
let myModal = new bootstrap.Modal(document.getElementById('downloadpopclose'));
|
||
|
myModal.hide();
|
||
|
|
||
|
}
|
||
|
|
||
|
function latest_auditapi_dowload() {
|
||
|
let scriptid = document.getElementById('scriptid').innerText;
|
||
|
alert("1");
|
||
|
let script_format = document.getElementById('script_format').innerText;
|
||
|
alert("2");
|
||
|
var accessToken = localStorage.getItem("accessToken");
|
||
|
alert("3");
|
||
|
var apiEndpoint = window.location.origin + '/audit/download?' + 'script_id=' + scriptid + '&type='
|
||
|
+ script_format
|
||
|
location.href = apiEndpoint;
|
||
|
alert("4");
|
||
|
|
||
|
}
|
||
|
async function auditapi_dowload() {
|
||
|
let scriptid = document.getElementById('Script_idd').innerText;
|
||
|
let primary_key_value = document.getElementById('primary_key_value_get').value;
|
||
|
let script_format = document.getElementById('confirmkey_details').innerText;
|
||
|
primary_key_value = primary_key_value.trim();
|
||
|
if (primary_key_value != '') {
|
||
|
//let script_format = document.getElementById('script_format').innerText;
|
||
|
var accessToken = localStorage.getItem("accessToken");
|
||
|
var apiEndpoint = window.location.origin + '/audit/downloadScriptFromBlockchain?type='
|
||
|
+ script_format + '&script_id=' + scriptid + '&privatekey=' + primary_key_value;
|
||
|
fetch(apiEndpoint)
|
||
|
.then((response) => {
|
||
|
console.log(response)
|
||
|
return response.json(); // Parse JSON data
|
||
|
})
|
||
|
.then((data) => {
|
||
|
console.log(data.download_link);
|
||
|
// Access the parsed data
|
||
|
location.href = `${data.download_link}?filename=${data.file_name}`;
|
||
|
|
||
|
})
|
||
|
.catch((error) => {
|
||
|
console.error('Error:', error);
|
||
|
alert("Somthing Went Worng")
|
||
|
});
|
||
|
|
||
|
|
||
|
} else {
|
||
|
alert("Please enter a valid primary key ");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
<script>
|
||
|
{% comment %} function showmodal(script_idd, format, tx_hash) {
|
||
|
document.getElementById('popupShow').style.display = "block";
|
||
|
document.getElementById('Script_idd').innerHTML = script_idd;
|
||
|
document.getElementById('transaction_iddetails').innerHTML = tx_hash;
|
||
|
document.getElementById('confirmkey_details').innerHTML = format;
|
||
|
document.body.style.overflow = "hidden";
|
||
|
} {% endcomment %}
|
||
|
function hidemodal() {
|
||
|
document.getElementById('popupShow').style.display = "none";
|
||
|
document.body.style.overflow = "scroll";
|
||
|
document.getElementById("primary_key_value_get").blur();
|
||
|
}
|
||
|
</script>
|
||
|
{% comment %} feedback {% endcomment %}
|
||
|
<script>
|
||
|
function showfeebbkmodal(script_idd, format, tx_hash) {
|
||
|
document.getElementById('feedback').style.display = "block";
|
||
|
window.scrollTo(0, 0);
|
||
|
document.body.style.overflow = "hidden";
|
||
|
document.getElementById("primary_key_value_get").focus();
|
||
|
document.getElementById('Script_idd').innerHTML = script_idd;
|
||
|
document.getElementById('transaction_iddetails').innerHTML = tx_hash;
|
||
|
document.getElementById('confirmkey_details').innerHTML = format;
|
||
|
}
|
||
|
let overall_ = document.getElementById('overall_Experience');
|
||
|
let accuracy_ = document.getElementById('accuracy_translation');
|
||
|
let contextual_ = document.getElementById('contextual_relevance');
|
||
|
let download_btn = document.getElementById('download_output');
|
||
|
download_btn.disabled = true;
|
||
|
|
||
|
function overallrating(vall) {
|
||
|
overall_.value = vall;
|
||
|
if (overall_.value != '' && overall_.value != '' && contextual_.value != '') {
|
||
|
document.getElementById('suggestions_msg').style.display = "block";
|
||
|
document.getElementById('view_skip').style.display = "none";
|
||
|
}
|
||
|
}
|
||
|
function accuracyrating(vall) {
|
||
|
accuracy_.value = vall;
|
||
|
if (overall_.value != '' && overall_.value != '' && contextual_.value != '') {
|
||
|
document.getElementById('suggestions_msg').style.display = "block";
|
||
|
document.getElementById('view_skip').style.display = "none";
|
||
|
}
|
||
|
}
|
||
|
function contextualrating(vall) {
|
||
|
contextual_.value = vall;
|
||
|
if (overall_.value != '' && overall_.value != '' && contextual_.value != '') {
|
||
|
document.getElementById('suggestions_msg').style.display = "block";
|
||
|
document.getElementById('view_skip').style.display = "none";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function rating(idd, iddd, sh1, sh2, sh3, sh4, sh5, hd1, hd2, hd3, hd4, hd5) {
|
||
|
document.getElementById('download_output').removeAttribute("disabled");
|
||
|
let arr = [iddd, sh1, sh2, sh3, sh4, sh5];
|
||
|
arr.forEach(element => {
|
||
|
document.getElementById(element).style.display = "inherit";
|
||
|
});
|
||
|
let arrhd = [idd, hd1, hd2, hd3, hd4, hd5];
|
||
|
arrhd.forEach(element => {
|
||
|
document.getElementById(element).style.display = "none";
|
||
|
});
|
||
|
}
|
||
|
function feedback_message() {
|
||
|
document.getElementById('popupShow').style.display = "block";
|
||
|
document.getElementById('download_output').disabled = true;
|
||
|
document.getElementById('view_skip').style.display = "inline";
|
||
|
|
||
|
let arr = ['overall_EXP', 'overall_EXPb', 'overall_EXPn', 'overall_EXPg', 'overall_EXPvg', 'overall_EXPex', 'accuracy_EXP', 'accuracy_EXPb', 'accuracy_EXPn', 'accuracy_EXPg', 'accuracy_EXPvg', 'accuracy_EXPex', 'contextual_EXP', 'contextual_EXPb', 'contextual_EXPn', 'contextual_EXPg', 'contextual_EXPvg', 'contextual_EXPex']
|
||
|
let arr2 = ['suggestions_msg','feedback', 'overall_exp_vb', 'overall_exp_b', 'overall_exp_n', 'overall_exp_g', 'overall_exp_vg', 'overall_exp_ex', 'accuracy_exp_vb', 'accuracy_exp_b', 'accuracy_exp_n', 'accuracy_exp_g', 'accuracy_exp_vg', 'accuracy_exp_ex', 'contextual_exp_vb', 'contextual_exp_b', 'contextual_exp_n', 'contextual_exp_g', 'contextual_exp_vg', 'contextual_exp_ex']
|
||
|
arr.forEach(element => {
|
||
|
document.getElementById(element).style.display = "inherit";
|
||
|
})
|
||
|
arr2.forEach(element => {
|
||
|
document.getElementById(element).style.display = "none";
|
||
|
})
|
||
|
var value_reset_arr = ['overall_Experience', 'accuracy_translation', 'contextual_relevance'];
|
||
|
value_reset_arr.forEach(elements => {
|
||
|
document.getElementById(elements).value = "";
|
||
|
})
|
||
|
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|
||
|
{% endblock content %}
|