Difference between revisions of "Prosecute a case"

From cm2.liecourt.com
(Fill database)
(Fill database)
Line 21: Line 21:
 
   font-weight: 600;
 
   font-weight: 600;
 
}
 
}
#case-form input, #case-form textarea, #case-form select{
+
#case-form input, #case-form textarea{
 
     border-radius: 30px;
 
     border-radius: 30px;
 
     background: #f2f2f2;
 
     background: #f2f2f2;
    border: none;
 
 
     padding-left: 24px;
 
     padding-left: 24px;
     box-shadow: none;
+
}
 +
select:not([multiple]) {
 +
    padding: 0 1.5em;
 +
    background-color: #f2f2f2;
 +
     border-radius: 30px;
 +
    -webkit-appearance: none;
 +
    -moz-appearance: none;
 +
    background-position: right 50%;
 +
    background-position-x: right;
 +
    background-position-y: 50%;
 +
    background-repeat: no-repeat;
 +
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDZFNDEwNjlGNzFEMTFFMkJEQ0VDRTM1N0RCMzMyMkIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDZFNDEwNkFGNzFEMTFFMkJEQ0VDRTM1N0RCMzMyMkIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0NkU0MTA2N0Y3MUQxMUUyQkRDRUNFMzU3REIzMzIyQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0NkU0MTA2OEY3MUQxMUUyQkRDRUNFMzU3REIzMzIyQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuGsgwQAAAA5SURBVHjaYvz//z8DOYCJgUxAf42MQIzTk0D/M+KzkRGPoQSdykiKJrBGpOhgJFYTWNEIiEeAAAMAzNENEOH+do8AAAAASUVORK5CYII=);
 +
    line-height: 1;
 
}
 
}
 
.checkinput-button input[type="radio"]:checked + span {
 
.checkinput-button input[type="radio"]:checked + span {
Line 124: Line 135:
  
  
<h1>Prosecute a case</h1><!--
+
<h1>Prosecute a case</h1><!--  
-->{{#vardefine:@spent|{{#ask:[[Class::Workflow]][[Filed by::User:{{CURRENTLOGGEDUSER}}]]|link=none|format=count}} }}<!--
+
--><div class="row"><div class="col-12 col-lg-8">The Internet Court of Lies is meant to create a global community of people who work to provide evidence-based understanding of Fiat Lies and a means by which Social Media and other media can develop their own content curation based on results of the court.<br><br>Submit your prepared suit, to be accepted by the Court. A Judge is assigned, and if he accepts your suit, Jurors may be assigned. You, the Judge, and Jurors can now try your case by editing your suit page further. Finally, the Judge will declare your suit settled, and the suit is done<!--
 +
-->{{#if:{{CURRENTLOGGEDUSER}}|{{#vardefine:@spent|{{#ask:[[Class::Workflow]][[Filed by::User:{{CURRENTLOGGEDUSER}}]]|link=none|format=count}} }}<!--
 
-->{{#vardefine:@bought|{{#arraymap:{{#ask:[[Class::Order]][[User::User:{{CURRENTLOGGEDUSER}}]][[Transaction::+]]|?Tokens|format=array|link=none}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
 
-->{{#vardefine:@bought|{{#arraymap:{{#ask:[[Class::Order]][[User::User:{{CURRENTLOGGEDUSER}}]][[Transaction::+]]|?Tokens|format=array|link=none}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
 
-->{{#vardefine:@sent|{{#arraymap:{{#ask:[[Class::Transaction]][[User::User:{{CURRENTLOGGEDUSER}}]][[To::!None]]|?Tokens|link=none|format=array}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
 
-->{{#vardefine:@sent|{{#arraymap:{{#ask:[[Class::Transaction]][[User::User:{{CURRENTLOGGEDUSER}}]][[To::!None]]|?Tokens|link=none|format=array}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
 
-->{{#vardefine:@recieved|{{#arraymap:{{#ask:[[Class::Transaction]][[To::User:{{CURRENTLOGGEDUSER}}]]|?Tokens|link=none|format=array}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
 
-->{{#vardefine:@recieved|{{#arraymap:{{#ask:[[Class::Transaction]][[To::User:{{CURRENTLOGGEDUSER}}]]|?Tokens|link=none|format=array}}|,|@@@|{{#explode:@@@|<PROP>|1}}|+}} }}<!--
-->{{#vardefine:@balance|{{#expr:{{#if:{{#var:@bought}}|{{#var:@bought}}|0}} + {{#if:{{#var:@recieved}}|{{#var:@recieved}}|0}} - {{#expr:{{#if:{{#var:@spent}}|{{#var:@spent}}|0}} + {{#if:{{#var:@sent}}|{{#var:@sent}}|0}} }} }} }}
+
-->{{#vardefine:@balance|{{#expr:{{#if:{{#var:@bought}}|{{#var:@bought}}|0}} + {{#if:{{#var:@recieved}}|{{#var:@recieved}}|0}} - {{#expr:{{#if:{{#var:@spent}}|{{#var:@spent}}|0}} + {{#if:{{#var:@sent}}|{{#var:@sent}}|0}} }} }} }}</div><div class="col-12 col-lg-4"><div class="info-box mt-0 pb-4">
 +
<h2>Your TruthToken balance</h2><span class="truth-token">{{fa|gavel}}</span>× <span class="nr pb-4">{{#var:@balance}}</span><br><br>Prosecuting a case  = 1 TruthToken </div></div>|{{#vardefine:@balance|0}} }}</div>
 
{{#ifexpr:{{#var:@balance}} > 0|
 
{{#ifexpr:{{#var:@balance}} > 0|
  
Line 187: Line 200:
 
{{#widget:Check input |type=radio |name=Type |text=no |id=truthno |value=Individual  |checked=checked }}
 
{{#widget:Check input |type=radio |name=Type |text=no |id=truthno |value=Individual  |checked=checked }}
 
</div>
 
</div>
}}
+
}}<!--
 +
-->
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=
 
|1=
 
|2=
 
|2=
 
<wsfield type="textarea" name="Markup" id="real-field" class="d-none" />
 
<wsfield type="textarea" name="Markup" id="real-field" class="d-none" />
<wsfield type="button" class="btn btn-green  float-right" onclick="submitRealField()">Prosecute</wsfield>
+
<wsfield type="button" class="btn btn-green  float-right" onclick="submitRealField()">Prosecute*</wsfield>
 
 
 
<wsfield type="submit" id="real-submit" class="d-none" value="niks" />
 
<wsfield type="submit" id="real-submit" class="d-none" value="niks" />
}}
+
}}<!--
 +
--><small>*By clicking "Prosecute" you agree to tell the Truth, the Whole Truth, and Nothing but the Truth, in their participation in a case. If you lie as a case participant with a Fiat Lie, you risk being banned from further participation in the ICoL.</small>
 
</wsform>
 
</wsform>
 
{{#tag:html|<script>
 
{{#tag:html|<script>
Line 250: Line 264:
  
 
</script>}}|<div class="m-5 alert alert-primary">0 TruthTokens, please buy TruthTokens on your profile page</div>
 
</script>}}|<div class="m-5 alert alert-primary">0 TruthTokens, please buy TruthTokens on your profile page</div>
<wsform>
+
<wsform id="case-form">
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>What is the Lie?</h3>
 
|1=<h3>What is the Lie?</h3>
|2=<wsfield type="text" class="form-control mt-2" name="Lie" placeholder="Lie title" value="{{{Lie|}}}" />
+
|2=<wsfield type="text" class="form-control mt-2" name="Lie" placeholder="Lie title" value="{{{Lie|}}}" readonly="readonly" />
 
}}
 
}}
  
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>Lie topic</h3>
 
|1=<h3>Lie topic</h3>
|2=<wsselect name="Topic" placeholder="Placeholder" class="form-control">
+
|2=<wsselect name="Topic" placeholder="Placeholder" class="form-control" readonly="readonly">
 
<wsfield type="option" value="Environment">Environment</wsfield>
 
<wsfield type="option" value="Environment">Environment</wsfield>
 
<wsfield type="option" value="Topic2">Topic 2</wsfield>
 
<wsfield type="option" value="Topic2">Topic 2</wsfield>
Line 267: Line 281:
 
|1=<h3>Description of the lie </h3>
 
|1=<h3>Description of the lie </h3>
 
|2=
 
|2=
<wsfield type="textarea" class="form-control mt-2" name="Description" placeholder="Description" value="{{{Description|}}}" />
+
<wsfield type="textarea" class="form-control mt-2" name="Description" placeholder="Description" value="{{{Description|}}}" readonly="readonly" />
 
}}
 
}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<h3>Markup Lie and Thruth parts</h3>
 
|1=<h3>Markup Lie and Thruth parts</h3>
|2=<wsfield type="button" class="btn btn-red btn-mark" onclick="document.execCommand('bold', false, null)">{{fa|highlighter}} Mark Lie</wsfield>  
+
|2=<wsfield type="button" class="btn btn-red btn-mark" readonly="readonly" onclick="document.execCommand('bold', false, null)">{{fa|highlighter}} Mark Lie</wsfield>  
<wsfield type="button" class="btn btn-green btn-mark " onclick="document.execCommand('italic', false, null)">{{fa|highlighter}} Mark Truth</wsfield><wsfield type="button" class="btn btn-gray btn-mark " ">{{fa|highlighter}} Clear mark</wsfield>   
+
<wsfield type="button" class="btn btn-green btn-mark " readonly="readonly" onclick="document.execCommand('italic', false, null)">{{fa|highlighter}} Mark Truth</wsfield><wsfield type="button" class="btn btn-gray btn-mark " ">{{fa|highlighter}} Clear mark</wsfield>   
 
{{#Widget:Markup}}
 
{{#Widget:Markup}}
 
}}
 
}}
Line 279: Line 293:
 
|1=<h3>Lie locations</h3>
 
|1=<h3>Lie locations</h3>
 
|2=<div class="original"><div class="d-flex">
 
|2=<div class="original"><div class="d-flex">
<wsfield type="text" class="form-control mt-2" name="Locations[]" placeholder="Location" value="{{{Locations|}}}" /><span class="add-more locations">{{fa|plus}}</span></div></div>
+
<wsfield type="text" class="form-control mt-2" name="Locations[]" placeholder="Location" value="{{{Locations|}}}" readonly="readonly" /><span class="add-more locations">{{fa|plus}}</span></div></div>
 
}}
 
}}
  
Line 288: Line 302:
 
{{#vardefine:@pagecontent|<nowiki>{{File for case|Case file=</nowiki>1234-132525-767967-3865381265853<nowiki>|Uploaded by=</nowiki>{{CURRENTLOGGEDUSER}}<nowiki>}}</nowiki>}}
 
{{#vardefine:@pagecontent|<nowiki>{{File for case|Case file=</nowiki>1234-132525-767967-3865381265853<nowiki>|Uploaded by=</nowiki>{{CURRENTLOGGEDUSER}}<nowiki>}}</nowiki>}}
 
<wslabel for="file-upload" class="attachment">{{fa|paperclip}}
 
<wslabel for="file-upload" class="attachment">{{fa|paperclip}}
<wsfield class="d-none" type="file" name="File" id="file-upload" verbose_id="hiddendiv" target="{{#var:@filename}}" pagecontent="{{#var:@pagecontent}}" /></wslabel>
+
<wsfield class="d-none" type="file" name="File" id="file-upload" verbose_id="hiddendiv" target="{{#var:@filename}}" pagecontent="{{#var:@pagecontent}}" readonly="readonly" /></wslabel>
 
<div class="upload-preview hidden" id="hiddendiv"></div></div>
 
<div class="upload-preview hidden" id="hiddendiv"></div></div>
 
  }}
 
  }}

Revision as of 13:34, 18 May 2020


Prosecute a case

The Internet Court of Lies is meant to create a global community of people who work to provide evidence-based understanding of Fiat Lies and a means by which Social Media and other media can develop their own content curation based on results of the court.

Submit your prepared suit, to be accepted by the Court. A Judge is assigned, and if he accepts your suit, Jurors may be assigned. You, the Judge, and Jurors can now try your case by editing your suit page further. Finally, the Judge will declare your suit settled, and the suit is done
0 TruthTokens, please buy TruthTokens on your profile page