Skip to content

Instantly share code, notes, and snippets.

@ivmartel
ivmartel / add-tool-example.html
Last active April 19, 2024 01:47
Add external tool example
<!DOCTYPE html>
<head>
<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif;
}
html, body {
height: 99%;
}
</style>
@ivmartel
ivmartel / fiddle-dwv-disp-ex.1.html
Last active October 20, 2023 07:18
DWV display example #1
<!DOCTYPE html>
<html>
<head>
<title>DWV display example #1</title>
<meta charset="UTF-8">
<!-- dwv -->
<script type="text/javascript" src="https://github.com/ivmartel/dwv/releases/download/v0.30.4/dwv-0.30.4.min.js"></script>
<!-- Launch the app -->
<script>
document.addEventListener('DOMContentLoaded', function (/*event*/) {
@ivmartel
ivmartel / wp-appgui_init.js
Last active August 30, 2016 08:28
Dicom-support Wordpress plugin differences between v0.3 and v0.4
// special wp initialisation
// 'wp.pluginsUrl' is set by wordpress
dwv.wp = dwv.wp || {};
dwv.wp.init_was_called = false;
dwv.wp.init = function ()
{
// avoid multiple calls
if ( dwv.wp.init_was_called ) {
return;
}
@ivmartel
ivmartel / index.html
Created April 28, 2016 20:54
Angular test
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Angular test</title>
<style>
.sortorder:after {
content: '\25b2';
}
@ivmartel
ivmartel / draw.js
Last active April 4, 2016 21:32
Fixed sized rectangle
// namespaces
var dwv = dwv || {};
/** @namespace */
dwv.tool = dwv.tool || {};
//external
var Kinetic = Kinetic || {};
/**
* Draw group command.
* @constructor
@ivmartel
ivmartel / dwv.lua
Created January 26, 2014 23:21
dwv.lua for v0.5.1
--
-- DICOM Web Viewer (DWV) lua script for integration in a Conquest PACS server.
--
-- Usage
-- In the dicom.ini of your web server, create the dwv viewer:
-- >> [dwv]
-- >> source = viewers\dwv.lua
-- And set it as the default viewer:
-- >> [webdefaults]
-- >> ...