This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var str = "{-Variable.article_for_js-}"; | |
str = str.substr(0, 2000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// берем из переменной текст, который надо искать | |
var textContains = project.Variables["gamefortext"].Value; | |
// получаем таблицу, в которой будем искать | |
var sourceTable = project.Tables["screenshots"]; | |
// ищем в каждой строчке в таблице | |
lock(SyncObjects.TableSyncer) | |
{ | |
for(int i=0; i < sourceTable.RowCount; i++) | |
{ | |
// читаем строку из таблицы (это будет массив ячеек) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string str = project.Variables["keyword"].Value; | |
return str.Replace(" ", ""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('div').mouseenter(function() { | |
$('div').fadeTo('fast',1); | |
}); | |
$('div').mouseleave(function(){ | |
$('div').fadeTo('fast',0.5); | |
}) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string str = project.Variables["keyword"].Value; | |
var resultHttpPost = ZennoPoster.HttpPost("https://lc-api.sdl.com/translate", str, "application/json", "", "utf-8", ZennoLab.InterfacesLibrary.Enums.Http.ResponceType.HeaderAndBody, 30000, "", "", true, 5, new[] { "Authorization: LC apiKey=" }); | |
return resultHttpPost; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var captcha__get = project.Variables["captcha_file"].Value; | |
var image = System.Drawing.Image.FromFile(@captcha__get); | |
string base64String = String.Empty; | |
using (System.IO.MemoryStream ms = new System.IO.MemoryStream()) | |
{ | |
image.Save(ms, System.Drawing.Imaging.ImageFormat.Png); | |
byte[] imageBytes = ms.ToArray(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var uri = "{-Variable.result_url-}"; | |
decodeURIComponent(uri); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = project.Variables["url"].Value; | |
var data = System.Web.HttpUtility.UrlEncode(url); | |
return data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* GravityView doesn't trigger the `gform_after_submission` action when editing entries. This does that, | |
* but ONLY FOR FORM #20. | |
* | |
* @param array $form | |
* @param int $entry_id ID of the entry being updated | |
* @param GravityView_Edit_Entry_Render $object | |
* |